⚡FREE AI Live Master Session: Teach AI to See! Build Your Own AI Image Classifier

    Register for Free →
    CBSE Class 11 IT (Subject Code 802) • Unit 5

    Fundamentals of Java Programming

    Master Java GUI Rapid Application Development (RAD) with NetBeans IDE: Swing Palette controls (JFrame, JButton, JTextField, JRadioButton, JComboBox, JOptionPane), OOP principles, type casting (Integer.parseInt, Double.parseDouble), control structures, and board-level GUI projects.

    NetBeans IDE & Rapid Application Development (RAD)

    NetBeans is an integrated development environment (IDE) for Java that enables Rapid Application Development (RAD). Rather than coding hundreds of lines of UI geometry manually, developers visually drag-and-drop Swing components onto a JFrame form.

    Visual Layout

    Design View

    Interactive canvas where buttons, text boxes, and labels are dropped and positioned.

    Logic Editor

    Source View

    Java code editor where event handling code (e.g. btnCalculateActionPerformed) is written.

    Component Toolbox

    Swing Palette

    Provides drag-and-drop UI components categorized into Containers, Controls, Menus, and Windows.

    Configuration

    Properties Window

    Configures component properties: text, font, background, enabled.

    Swing GUI Controls, Properties & Methods

    ComponentKey PropertiesEssential MethodsPrimary Use Case
    JLabeltext, font, foreground, icongetText(), setText(String)Displays non-editable descriptive titles or status labels
    JTextFieldtext, editable, columnsgetText(), setText(String), setEditable(boolean)Single-line alphanumeric user input (e.g. name, marks)
    JPasswordFieldechoChar (default '*')getPassword() returns char[]Masked secret credential input
    JTextArealineWrap, wrapStyleWord, rows, columnsgetText(), setText(String), append(String)Multi-line text input/output (e.g. student report card, address)
    JButtontext, enabled, mnemonicsetEnabled(boolean), setText(String)Clickable action triggers (Calculate, Submit, Clear, Exit)
    JRadioButtonselected, text, buttonGroupisSelected(), setSelected(boolean)Mutually exclusive single choice (e.g. Gender Male/Female)
    JCheckBoxselected, textisSelected(), setSelected(boolean)Independent multi-select choices (e.g. Hobbies, Facilities)
    JComboBoxmodel, selectedIndexgetSelectedItem(), getSelectedIndex(), addItem()Drop-down selection list (e.g. Stream Science/Commerce)
    // Displaying JOptionPane Dialogs in Event Handlers:
    JOptionPane.showMessageDialog(this, "Calculation Successful!", "Status", JOptionPane.INFORMATION_MESSAGE);
    int choice = JOptionPane.showConfirmDialog(this, "Are you sure you want to exit?", "Confirm", JOptionPane.YES_NO_OPTION);
    if (choice == JOptionPane.YES_OPTION) System.exit(0);