13. Graphical user interfaces Flashcards
If A extends B, do instances of A have the properties of those of B, plus more, or vice versa?
ss
When does the main thread end? When does the virtual machine exit?
ss
What does the GUI event thread usually spend most of its time doing?
ss
How does event driven programming differ from the style used in the main method?
ss
What sort of information is held in ActionEvent objects?
ss
What is returned by getSource() method?
ss
What is the purpose of the Container class?
ss
What argument is given to Container: add() method?
ss
How to we specify the constraint in the Container: add() method?
ss
What kind of argument does Container: setLayout() have?
ss
How do we specify the label when we create a JButton?
ss
What type is the parameter in the JButton: addActionListener() method?
ss
What type is the method argument in JButton: setEnabled() method?
ss
What type is the method argument in JButton: setText() method?
ss
What part of a GUI does javax.swing.JFrame correspond to?
ss
Where does the given title typically appear (when using JFrame: setTitle() method)?
ss
What is the return type of the JFrame: getContentPane() method?
ss
What four choices do we have as arguments to the JFrame: setDefaultCloseOperation() method?
ss
When should JFrame: pack() method be called and what does it do?
ss
What type of argument is given to the JFrame: setVisible() method?
A boolean type
What is the purpose of the JLabel class?
ss
What type is the method parameter in the JLabel: setText() method?
ss
What arguments can we give to the constructor when using JTextArea?
ss
What happens if the given String contains new line characters in the JTextArea: setText() method?
ss