com.imagero.swing.misc
Class InputPopup
java.lang.Object
com.imagero.swing.misc.InputPopup
- public class InputPopup
- extends java.lang.Object
With InputPopup it is possible to show popup with JTextField.
When popup is closed ActionEvent is fired with content of JTextField as action command.
If isCanceled() returns true then contents of action command should be ignored.
Popup is closed if JTextField lose focus or user has pressed escape key - in both cases isCanceled() returns true,
or if user pressed return key - in this case isCanceled() returns false.
|
Constructor Summary |
InputPopup(java.awt.Component owner,
javax.swing.Icon icon,
java.lang.String s)
|
InputPopup(java.awt.Component owner,
java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputPopup
public InputPopup(java.awt.Component owner,
java.lang.String s)
InputPopup
public InputPopup(java.awt.Component owner,
javax.swing.Icon icon,
java.lang.String s)
getWindow
protected javax.swing.JWindow getWindow()
showPopup
public void showPopup()
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
isCanceled
public boolean isCanceled()