Introduction to Abstract Windowing Toolkit(AWT) & Swings
- Get link
- X
- Other Apps
Quiz
- Implement the Listener interface and overrides its methods is required to perform in event handling.
- True
- False
- Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfield etc?
- Window
- Frame
- Panel
- Container
- These two ways are used to create a Frame
1. By creating the object of Frame class (association)
2.By extending Frame class (inheritance)- True
- False
- Give the abbreviation of AWT?
- Applet Windowing Toolkit
- Abstract Windowing Toolkit
- Absolute Windowing Toolkit
- None of the above
- Which method is used to set the graphics current color to the specified color in the graphics class?
- public abstract void setFont(Font font)
- public abstract void setColor(Color c)
- public abstract void drawString(String str, int x, int y)
- None of the above
- The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of desktop applications.
- True
- False
- In Graphics class which method is used to draws a rectangle with the specified width and height?
- public void drawRect(int x, int y, int width, int height)
- public abstract void fillRect(int x, int y, int width, int height)
- public abstract void drawLine(int x1, int y1, int x2, int y2)
- public abstract void drawOval(int x, int y, int width, int height)
- Which object can be constructed to show any number of choices in the visible window?
- Labels
- Choice
- List
- Checkbox
- Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
- Window
- Panel
- Frame
- Container
- Which class is used for this Processing Method processActionEvent( )?
- Button,List,MenuItem
- Button,Checkbox,Choice
- Scrollbar,Component,Button
- None of the above
- Which method can set or change the text in a Label?
- setText()
- getText()
- All the above
- None of the above
- Which is a component in AWT that can contain another components like buttons, textfields, labels etc.?
- Window
- Container
- Panel
- Frame
- AWT has more powerful components like tables, lists, scroll panes, color chooser, tabbed pane etc.
- True
- False
- Which are passive controls that do not support any interaction with the user?
- Choice
- List
- Labels
- Checkbox
- The ActionListener interface is not used for handling action events.
- True
- False
- Get link
- X
- Other Apps
Comments
Post a Comment