Java

Topic: Swings

Explain Class Popup in java ?

public class Popupextends ObjectPopups are used to display a Component to the user, typically on top of all the other Components in a particular containment hierarchy. Popups have a very small life cycle. Once you have obtained a Popup, and hidden it (invoked the hide method), you should no longer invoke any methods on it. This allows the PopupFactory to cache Popups for later use.The general contract is that if you need to change the size of the Component, or location of the Popup, you should obtain a new Popup.Popup does not descend from Component, rather implementations of Popup are responsible for creating and maintaining their own Components to render the requested Component to the user.You typically do not explicitly create an instance of Popup, instead obtain one from a PopupFactory.

Browse random answers:

Explain Class JScrollBar.AccessibleJScrollBar?
Explain Class JScrollPane?
Explain Class JScrollPane.AccessibleJScrollPane?
Explain Class JScrollPane.ScrollBar?
Explain Class JSeparator?
Explain Class JSeparator.AccessibleJSeparator?
Explain Class JSlider in java ?
Explain Class JSlider.AccessibleJSlider in java?
Explain Class JSpinner.AccessibleJSpinner in java?
Explain Class JSpinner.DefaultEditor in java?
Explain Class JSpinner.NumberEditor in java ?
Explain Class JSplitPane in java?
Explain Class JSplitPane.AccessibleJSplitPane?
Explain Class JTabbedPane in java?
Explain Class JTabbedPane.AccessibleJTabbedPane in java?
Explain Class JTable in java?
Explain Class JTable.DropLocation in java ?
Explain Class JTextArea in java?
Explain Class JTextArea.AccessibleJTextArea in java ?
Explain Class JTextField.AccessibleJTextField in java?
Explain Class JTextPane in java?
Explain Class JToggleButton in java?
What is Event-Driven-Thread (EDT) in Swing?
Explain Class JToggleButton.AccessibleJToggleButton in java?
Does Swing is thread safe? What do you mean by swing is not thread-safe?
Explain Class JToggleButton.ToggleButtonModel in java?
What are differences between Swing and AWT?
Explain Class JToolBar in java?
Why Swing components are called lightweight component?
Explain Class JToolBar.AccessibleJToolBar in java?
What is difference between invokeAndWait and invokeLater?
Explain  Class JToolTip in java?
Write code for JTable with custom cell editor and custom cell renderer?
Explain Class JToolTip.AccessibleJToolTip in java?
What is the component that lets the user pick a color?
Explain Class JTree in java ?
What is the component that displays an icon, but that doesn't react to user clicks?
Explain Class JTree.AccessibleJTree in java ?
What is the component that looks like a button and that, when pressed, brings up a menu of items for the user to choose from?
Explain Class JTree.AccessibleJTree.AccessibleJTreeNode in java ?
What is the container that looks like a frame, but that appears (usually with other, similar containers) within a real frame?
Explain Class JTree.DropLocation in java?
What is the  container that lets the user determine how two components share a limited amount of space?
Explain Class JTree.DynamicUtilTreeNode in java?
Which method do you use to add a menu bar to a top-level container such as a JFrame?
Explain Class KeyStroke in java?
Which method do you use to specify the default button for a top-level container such as a JFrame or JDialog?
Explain Class LayoutStyle in java?
Which method do you use to enable and disable components such as JButtons? What class is it defined in?
Explain Class MenuSelectionManager in java?
Which Swing components use ListSelectionModel? [Hint: The "Use" link at the top of the specification for each interface and class takes you to a page showing where in the API that interface or class is referenced.]
Explain Class OverlayLayout in java ?
Do those components use any other models to handle other aspects of the components' state? If so, list the other models' types
Explain Class Popup in java ?
Which type of model holds a text component's content?
How to Add a button (JButton) to  Make it the default button?
How to add menubar in java?
Explain Class ScrollPaneLayout in java?
Explain Class ScrollPaneLayout.UIResource in java ?
Explain Class SizeRequirements in java?
Explain Class SizeSequence in java?
Explain Class SpinnerDateModel in java?
Explain Class SpinnerListModel in java?
Explain Class SpinnerNumberModel in java?
Explain Class SwingUtilities in java?
Explain Class ToolTipManager in java?
Explain Class ToolTipManager.outsideTimerAction in java?
Explain Class ToolTipManager.stillInsideTimerAction in java?