-
-
SetSelectionInterval and addSelectionInterval
Can somebody let me know what is the difference between setSelectionInterval and addSelectionInterval with example?
-
-
-
-
Swing Background Color
How to change default background color in Swing?
-
-
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
-
How to assign different reference into an another reference.
suppose i have 4 JFrames in my project and i want to use single JDialog for all the JFrames, in such situation i have to pass the current JFrame class ie "this" keyword , the problem to receive different reference in the same class in different JFrames.
I have already tried by using Object class ,but it was not acceptedmy be through abstract classes or interfaces -
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.
-
Java Swing Interview Qustions
Ans