Test 2 on Java Swings
Description: Test your knowledge of Java Swings | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Swings Programming Java Structure Unions and Enumerations |
If a checkbox Group object is passed in a program and in return a false condition is obtained, then what will be its output on the screen?
Which of the following objects in Java is notified when an event occurs?
The following program is written to create a frame. The program seems to be correct but when it is compiled, the compiler is not accepting it. Why?
class Myframe {
public static void main(string_args[]) {
Frame f = new frame("My frame");
f.setsize(300, 250);
f.setvisible(true);
}
}
Which of the following constants in AdjustmentEvent class acts as a button used at the end of the scroll bar to decrease its value?
Which of the following interfaces in event listener interface defines one method to recognize when a text value changes?
Which of the following terminologies in FontMetrics class defines the distance from the baseline to the top of a character?
Which of the following methods of Font class returns the name of the font family to which the invoking font belongs?
Classes Http Servlet and Generic Servlet implement the ________ interface.
The life cycle of a Servlet is
Which method of ItemEvent can be used to obtain reference to the ItemSelectable objects that generate an event?
Which event is generated when a component gains or loses input focus?
In Java Programming Language, which classes implement the corresponding listener interfaces containing more than one method?
A connection object is initialized using the ___________ method.
______________ is generated by text fields and text areas when characters are entered by a user or program.
Which method of MouseEvent obtains the number of mouse clicks for the event?