Some common lightweight component features supported

This preview shows page 2 - 5 out of 8 pages.

18.Some common lightweight component features supported by JComponent include:
19._________ provides the basic attributes and behaviors of a window—a title bar at the top of the window, and buttons to minimize, maximize and close the window.
20.Which of the following statements about a JLabel is false?
21.Method __________ can be used to set the layout manager of a container.
22.A JLabel can be attached to a JFrame using method:
23.Which method sets the text that's displayed when the user hovers over a JLabel?
24.Which of the following expressions creates a JLabel that displays the text "Here is what I look like!"? The JLabel should display Icon object face, and the JLabel’s contents should be left aligned.
25.Which expression returns the location of a file as a URL?
26.Which JFrame constant indicates that the program should terminate when the window is closed by the user?
27.Which of the following is false?
28.Which of the following most completely describes the steps for setting up event handling for a GUI component?
D) Create a class that represents the event handler, implement an appropriate event-listener interface and register the event handler. ********29.When the user presses Enter in a JPasswordField, the GUI component generates an ________, whichis processed by an object that implements the interface _______.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture