-
-
-
-
-
-
All swing components are light weight componants except for (Select Multiple)
A) JWindow, JFrameB) JDialogC) JAppletD) JPanel
-
-
Which classes and interfaces does Applet class consist? (Select Multiple)
A) The Applet classB) AppletContext Interface.C) AppletStub InterfaceD) AudioClip Interface
-
-
The command ‘codebase’ is used in applets when
A) When the applet class file is not in the same directoryB) When the applet class file is in the same directoryC) When we need to get the parameters of the appletD) None of the above
-
Which of the following are true about MouseListenerInterfaces? (Select Multiple)
A) The MouseListener interface defines methods for handling mouse clicks.B) The MouseMotionListener interface defines methods for handling mouse clicks.C) The MouseClickListener interface defines methods for handling mouse clicks.D) The MouseListenerInheritance interface defines methods for handling the clicking of a button.
-
Which of the following are true? (Select Multiple)
A) The AWT automatically causes a window to be repainted when a portion of a window has been minimized and then maximized.B) The AWT automatically causes a window to be repainted when a portion of a window has been covered and then uncovered.C) The AWT automatically causes a window to be repainted when application data is changed.D) The AWT does not support repainting operations.
-
Lightweight components differ from heavy weight componants not because of one of the following reasons
A) A heavyweight component have transparent pixels which lightweight have opaque.B) A lightweight can appear to be non-rectangular while heavyweight are always rectangular.C) Mouse events on light weight componants fall through its parents while in the heavyweight it doesn’t.D) On overlapping of the lightweight component over the heavy weight component the heavy weight component is always on top.Explanation:...
-
What are the borders provided by swings (Select Multiple)
A) SimpleB) MatteC) TitledD) AggregateExplanation: the fourth one is Compound
-
What are the immediate super classes of the following classes? (Select Multiple)
A) Container - ComponentB) MenuComponent - ObjectC) Dialog - WindowD) Applet - Panel
-
A text field has a variable-width font. It is constructed by calling new TextField("iiiii"). What happens if you change the contents of the text field to "wwwww"? (Bear in mind that is one of the narrowest characters, and w is one of the widest.)
A) The text field becomes wider.B) The text field becomes narrower.C) The text field stays the same width; to see the entire contents you will have to scroll by using the ß and à keys.D) The text field stays the same width; to see the entire contents you will have to scroll by using the text field’s horizontal scroll bar.
-
-
Fill in the blank :- the default look and feel of a swing component is _____________
A) Java Look and Feel
-
Fill in the blanks :- The highest-level event class of the event-delegation model is _____
A) java.util.eventObject
-
Heavyweight componants are not handled properly when they are placed inside the JScrollpane’s viewport because(Select Multiple)
A) JScrollPane is a lightweight component.B) Viewport of JScrollPane which clips its scrollable child, is lightweightC) None of the aboveD) Either of the above.
Java Swing Interview Qustions
Ans