Java GUI and Event Handling
Tests knowledge of Java Foundation Classes (JFC), Abstract Window Toolkit (AWT), event handling, and GUI components
Questions
Which is the basic GUI tool kit shipped with all versions of the JDK and is the part of JFC in java?
- Java Foundation Class
- Abstract Window Toolkit
- Drag and Drop
- Javax. accessibility
- Javax.swing
Which contains classes for implementing various painting styles, complex shapes, fonts and colours in Java?
- Accessibility API
- Javax.accessibility
- Abstract Window Toolkit
- 2D API
- Javax.swing
Which implement the corresponding listener interfaces containing more than one method in Java?
- Java Foundation Class
- Anonymous Classes
- Adapter Classes
- Inner Classes
- Javax.swing.event
Which is one of the more common metaphor used in graphical interfaces today in Java?
- Javax.swing
- Javax.accessibility
- 2D API
- Accessibility API
- Drag and Drop
Which is a suit of libraries design to assist programmer in creating enterprise applications with java?
- Java Foundation Class
- Anonymous Class
- Inner Classes
- Adapter Classes
- ThebKeyEvent Class
Which provides an interface that allow assistive technologies to interact and communicate with JFC and AWT components in java?
- 2D API
- Abstract Window Toolkit
- Accessibility API
- Javax.swing
- Javax.swing.border
Which are the classes that are not named in Java and the classes when you declare in a method do not need a name?
- Anonymous Classes
- Java Foundation Classes
- Inner Classes
- Adapter Classes
- Event Object
Which classes are declared within other classes and provide additional clarity to programs in Java?
- Anonymous Classes
- Inner Classes
- Adapter Classes
- The KeyEvent Class
- KEY_TYPED Event
Which class defines the integer constants that can be used to identify them and is a subclass of InputEvent class in Java?
- The Window Event Class
- Javax.swing.event
- Javax.swing
- Java Foundation Class
- The MouseEvent Class
Which event class defines integer constants that can be used to identify them and subclass of ComponentEvent class in Java?
- Java Foundation Class
- Javax.swing.event
- Javax.swing
- The WindowEvent Class
- Inner Class
Which is generated when a component gains or loses input focus and is subclass of ComponentEvent class in java?
- The FocusEvent Class
- The InputEvent Class
- The ItemEvent Class
- The KeyEvent Class
- The MouseEvent Class
Which classes instance describe text events which are generated by text fields and text areas when characters are entered by a user or program in java?
- The MouseEvent Class
- The TextEvent Class
- The WindowEvent Class
- Javax.swing.event
- Javax.swing
Which event is generated when a check box or a list item is clicked or when a checkable menu item is selected or deselected in Java?
- The KeyEvent Class
- The MouseEvent
- The ItemEvent Class
- Javax.swing.event
- Javax.swing
Which abstract class is a subclass of ComponentEvent and is the superclass for component input events in Java?
- The ItemEvent Class
- The KeyEvent Class
- The MouseEvent Class
- The InputEvent Class
- Javax.swing.event
Which event is generated when keyboard input occurs in Java?
- The KeyEvent Class
- The MouseEvent Class
- The WindowEvent Class
- Javax.swing.event
- Java Foundation Class