Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    4,978

    Re: Events on JOptionPane dialogs

    Again, I will point you back to the API - JOptionPane.NO_OPTION is defined as 1...and I will leave it up to you to look up what JOptionPane.YES_OPTION is defined as (hint: the other value you are...
  2. Replies
    6
    Views
    4,978

    Re: Events on JOptionPane dialogs

    The following link should have code examples for you to use.
    How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    Just check the returned int against...
  3. Replies
    6
    Views
    4,978

    Re: Events on JOptionPane dialogs

    See the API for JOptionPane
    JOptionPane (Java Platform SE 6)

    No listener necessary, this method returns an integer value corresponding to which selection was chosen (JOptionPane.CANCEL_OPTION,...
Results 1 to 3 of 3