Declare Variables
Previous    Next    Home    Source Code    Package

Notes
  1. Now we want to reference the objects created in the last example so we can do things with them. In this example we change the name of the button, add items to the JComboBox, and make the textfield uneditable. This is possible due to the variables
       JButton button;
       JTextField text;
       JTextArea area;
       JComboBox combo;
    
    that were created.