Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Java Swing Dialogs

eggsyeggsy Member Posts: 40
Could anyone tell me how to create basic dialog boxes using Swing.

EG Just one frame and when the user clicks the button a dialog(Message) box is displayed.

Also what imports will I need to do this?

Any sample code would be great

Thanks all

Comments

  • : Could anyone tell me how to create basic dialog boxes using Swing.
    :
    : EG Just one frame and when the user clicks the button a dialog(Message) box is displayed.
    :
    : Also what imports will I need to do this?
    :
    : Any sample code would be great
    :
    : Thanks all
    :

    Use the javax.swing.JOptionPane.showXXXDialog(...) methods. For a documentation: http://java.sun.com/j2se/1.4.1/docs/api/ in the "javax.swing" package.

    tron.
Sign In or Register to comment.