Professional Documents
Culture Documents
Arranges the components as a deck of cards such that only one component is
9 visible at a time
A) CardLayout B) BorderLayout C) GridLayout D) GridBagLayout
removeAll()
13 All Component on Container can be removed by calling following method
Arranges the components as a deck of cards such that only one component is
14 CardLayout
visible at a time
Using
16 How To Apply Image To Button ?
ImageIcon
public abstract
In Graphics class Which method is used to set the graphics current color to void
17
the specified color? setColor(Colo
r c)
18
Which of the following component class cannot be add on applet Menu
What is the name of the Swing class that is used for frames?
20 A) Window B) Frame C) JFrame D) Panel
Which of these packages contains all the classes and methods required for
22 event handling in Java?
A) java.awt B) java.event C) java.applet D) java.awt.event
Which of these class is super class of all the events?
23 A) EventObject B) EventClass C) ActionEvent D) temEvent
A________is Componenet that represents a hierarchical view of data
A) JBuuton B) Jtree C) JList D) JCheckbox
24
Which of these events will be generated if we close an applet’s window?
25 A) ActionEvent B) ComponentEvent
C) AdjustmentEvent D)WindowEvent
Default orientation of progress bar is:
26 A) Horizontal B) Vertical C) Left D) Bottom
Panel is used for __________ components
27 A) Muliple B) Single C) Grouping D) both a and b
CardLayout() // First
39 The CardLayout class defines the following constructors: Cardlayout(int hor, int ver)
//second