State true or false :- A component subclass that has executed enableEvents( ) to enable processing of a certain kind of event cannot also use an adapter as a listener for the same kind of event.
A) TrueB) False
A) java.util.eventObject
Latest Answer: Event types are encapsulated in a class hierarchy rooted at java.util.EventObject. An event is propagated from a "Source" object to a "Listener" object by invoking a method on the listener and passing in the instance of the event subclass which defines ...
A) java.awt.AWTEventB) java.awt.EventC) java.util.eventObjectD) javax.swing.ObjectExplanation: The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy.
Latest Answer: This is kind of a dicy question:But in Java the event heirarchy goes like :java.lang.object -> java.util.EventObject -> java.awt.AWTEvent.So the java.util.EventObject is the superclass of all events.But java.awt.AWTEvent is the superclass of all ...
A) paint( )B) repaint( )C) draw( )D) redraw( )
Latest Answer: Ans) A) paint() and B) repaint() both are used to perform paint and repaint operations ...
A) A Canvas objectB) A Graphics objectC) An Image objectD) A paint object
Latest Answer: Answer : > B) A Graphic Objecte.g public void paint(Graphics g) { g.drawString(20,20,"Hello"); } ...
A) CanvasB) ImageC) FrameD) Graphics
Latest Answer: Canvasimage ...
A) drawRect( )B) drawImage( )C) drawPoint( )D) drawString( )
Latest Answer: A,B,D ...
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
Latest Answer: A,B,C ...
A) CardLayoutB) BorederLayoutC) FlowLayoutD) GridLayout
Latest Answer: The correct answer is: DGrid Layout divide the container in a tabular fashion. ...
An application has a frame that uses a Border layout manager. Why is it probably not a good idea to put a vertical scroll bar at North in the frame?
A) The scroll bar’s height would be its preferred height, which is not likely to be enough.B) The scroll bar’s width would be the entire width of the frame, which would be much wider than necessary.C)
View page << Previous 1 2 3 [4] 5 6 7 8 Next >>

Go Top