-
-
Which TextComponent method is used to set a TextComponent to the read-only state ?
A) setReadOnly()B) setEditOnly()C) setEditable()D) setTextReadOnly()
-
Which of the following (is)are true?
A) A Dialog can have a MenuBar.B) MenuItem extends Menu.C) A MenuItem can be added to a Menu.D) A Menu can be added to a Menu.
-
How do you indicate where a component will be positioned using Flowlayout?
A) North, South, East, WestB) Assign a row/column grid referenceC) Pass a X/Y percentage parameter to the add methodD) Do nothing, the FlowLayout will position the component
-
-
Which layout should you use to organize the components of a container in a tabular form?
A) CardLayoutB) BorederLayoutC) FlowLayoutD) GridLayout
-
Which of the following options are correct regarding the organization of layouts (Select Multiple)
A) FlowLayout : The elements of a FlowLayout are organized in a top to bottom, left to right fashion.B) BorderLayout : The elements of a BorderLayout are organized at the borders (North, South, East and West) and the center of a container.C) CardLayout : The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.D) GridBagLayout : The elements of a GridLayout are of equal...
-
Which of the following are methods of the Graphics class? (Select Multiple)
A) drawRect( )B) drawImage( )C) drawPoint( )D) drawString( )
-
Which of the following are passed as an argument to the paint( ) method?
A) A Canvas objectB) A Graphics objectC) An Image objectD) A paint object
-
Which of the following methods are invoked by the AWT to support paint and repaint operations?
A) paint( )B) repaint( )C) draw( )D) redraw( )
-
Fill in the blanks :- The meaning of ‘x’ in javax.swing is _______________
A) Extension of java
-
State true or false :-Images can be displayed in swings
A) TrueB) False
-
What is the difference between scrollbar and scrollpane(Select Multiple)
A) Scrollbar is a component while scrollpane is a containerB) Scrollbar handles its own events while scrollpane does notC) Scrollpane handles its own events and performs its own scrolling.D) All of the above.
-
Using a FlowLayout Manager, which of the following is the correct way to add elements to a container. (Select Multiple)
A) add(component);B) set(component);C) add(x,y, component);D) add(“Center”,component);
-
The layout of a container can be altered by using which of the following methods :-
A) setLayout(aLayoutManager)B) layout(aLayoutManager)C) addLayout(aLayoutManager)D) setLayoutManager(aLayoutManager)
-
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
-
What are the restrictions imposed by the security manager on applets. (Select Multiple)
A) Cannot start any program on the host that is executing it.B) Cannot read some system properties.C) Cannot load libraries or define native methods.D) Cannot read or write files on the host that is executing it.
-
What are invisible componants in swings ? (Select Multiple)
A) Componants which take space in the GUI on the client interface.B) Componants which cannot perform painting operation.C) Componants which can perform painting operation.D) The componants that are visible but no componants can be added in it.
-
What are the borders provided by swings (Select Multiple)
A) SimpleB) MatteC) TitledD) AggregateExplanation: the fourth one is Compound