February 2014
Beginner
1248 pages
62h 25m
English
a) JMenu.
b) addSeparator.
c) stateChanged, ChangeListener.
d) anchor.
a) False. A JFrame does not require any menus.
b) False. The variable fill belongs to the GridBagConstraints class.
c) True.
d) True.
a) JMenubar should be JMenuBar.
b) The first argument to the constructor should be SwingConstants.HORIZONTAL or SwingConstants.VERTICAL, and the keyword new must be used after the = operator. Also, the minimum value should be less than the maximum and the initial value should be in range.
c) The constant should be either BOTH, HORIZONTAL, VERTICAL or NONE.
d) paintcomponent should be paintComponent, and the method should call super.paintComponent(g) as its first statement.
e) The JFrame’s setSize ...
Read now
Unlock full access