Professional Documents
Culture Documents
Java > Java SE, EE, ME > javax > swing > JOptionPane
javax.swing
Class JOptionPane
java.lang.Object
extended by java.awt.Component
extended by java.awt.Container
extended by javax.swing.JComponent
extended by javax.swing.JOptionPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
See Also:
Top Examples, Source Code, XMLEncoder, JInternalFrame
public static final int CANCEL_OPTION
Geek's Notes:
Description Add your codes or notes Search More Java Examples
[885]How to do the codes for the cancel button of a input option dialog
By ngpamela { at } hotmail { dot } com (Pamela) on 2005/02/28 17:48:20 Rate
if ( JOptionPane.CANCEL_OPTION == true ) {
JOptionPane.showOptionDialog ( null, "Please choose an option", "Library
System",
JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, choice,
"List Borrowers" ) ;
}
How to do the codes for the cancel button of a input option dialog and return t
o the main option dialog pane?
[1989]How to cancel information in the database with the use of java program
By dearie_sweet { at } yahoo { dot } com { dot } ph on 2009/01/27 03:32:36 Rate
please help!
public static final int CLOSED_OPTION
Geek's Notes:
Description Add your codes or notes Search More Java Examples
}
public void KeyReleased ( KeyEvent e )
{
char souji;
souji=e.getKeyChar ( ) ;
[127]If you have a component (JPanel, JButton, etc) and want to find the frame i
t is contained in
By Anonymous on 2003/01/09 08:55:06 Rate
If you have a component ( JPanel, JButton, etc ) and want to find the frame it
is contained in.
This is a very simple example, but I have found this method very
usefull when creating custom dialog boxes and only have access to
a component. Look in JOptionPane code to see how the Frame is
found using the component.
public Icon getIcon()
See Also:
setIcon(javax.swing.Icon)
Geek's Notes:
Description Add your codes or notes Search More Java Examples
[506]Message Dialog
By arbaken on 2004/05/28 04:40:07 Rate
JOptionPane op = new JOptionPane ( textGraph1 ) {
public int getMaxCharactersPerLineCount ( ) {
return 5;
}
} ;
op.showMessageDialog ( null,textGraph1 ) ;
public Object getMessage()
See Also:
setMessage(java.lang.Object)
Geek's Notes:
Description Add your codes or notes Search More Java Examples
[1380]_
By Anonymous on 2005/04/05 13:57:51 Rate
JFrame frame=new JFrame ( ) ;
JOptionPane.showMessageDialog ( frame,"test" ) ;
public JOptionPane(Object message)
Geek's Notes:
Description Add your codes or notes Search More Java Examples
System.out.println ( b1.paramString ( ) ) ;
myFrame.add ( myApplet ) ;
myFrame.setVisible ( true ) ;
myFrame.addWindowListener ( new WindowAdapter ( ) {
public void windowClosing ( WindowEvent e )
{
System.exit ( 0 ) ;
} } ) ;
}
}
public static final int PLAIN_MESSAGE
Geek's Notes:
Description Add your codes or notes Search More Java Examples
import javax.swing.JOptionPane;
public class smsg
{
private FlowLayout layout;
private Container c;
private JButton left;
}
public static final int YES_OPTION
Geek's Notes:
Description Add your codes or notes Search More Java Examples
A to Z: JavaDoc & Examples Daily Java News & Articles Open Source Codes Free Com
puter Books
Free Books Women & Bad Boys Downloading MP3 Online Video Free Magazines
Dating Chat Rooms 121 WOW!
Java API By Example, From Geeks To Geeks. | Our Blog | Conditions of Use | A
bout Us | © 2002-2006, KickJava.com.