About 2,990,000 results
Open links in new tab
  1. java - How to use JOptionPane? - Stack Overflow

    Apr 9, 2024 · I'm learning Java and in one of my exercise I have to do a logging frame which displays warning after push cancel button, before typing id or password. import javax.swing.JOptionPane; …

  2. java - JOptionPane to get password - Stack Overflow

    Jan 16, 2012 · JOptionPane can be used to get string inputs from user, but in my case, I want to display a password field in showInputDialog. The way I need is the input given by the user should be …

  3. java - Customize JOptionPane Dialog - Stack Overflow

    Jun 19, 2015 · Customize JOptionPane Dialog Asked 13 years, 3 months ago Modified 10 years, 5 months ago Viewed 50k times

  4. java - JOptionPane Input to int - Stack Overflow

    I am trying to make a JOptionPane get an input and assign it to an int but I am getting some problems with the variable types. I am trying something like this: Int ans = (Integer) JOptionPane.

  5. java - JOptionPane - input dialog box program - Stack Overflow

    Oct 10, 2012 · Write a program that uses input dialog boxes to read three test marks, each out of 100. The program discards your lowest mark and shows the average of the two higher marks in a …

  6. How do display multiple lines in JOptionPane? - Stack Overflow

    Oct 13, 2013 · How do display multiple lines in JOptionPane? Asked 12 years, 1 month ago Modified 7 years, 2 months ago Viewed 21k times

  7. How to handle cancel button in JOptionPane - Stack Overflow

    Jul 15, 2012 · I had created a JOptionPane of type showInputDialog. When it opens it, it shows me two buttons: OK and Cancel. I would like to handle the action when I push on Cancel button, but I don't …

  8. java - How to do a custom JoptionPane - Stack Overflow

    Mar 3, 2014 · A textfield and two radio buttons should be small enough to fit into a JOptionPane, so perhaps it's best to keep using that. Add the JTextField with the two radio buttons to a JPanel, and …

  9. java - JOptionPane YES NO OPTION - Stack Overflow

    Apr 6, 2013 · I got an JOptionPane and yes and no buttons. But, whichever button you click it still exists. HELP! Heres the code: int dialogButton = JOptionPane.YES_NO_OPTION; JOptionPane.

  10. Can I use a Java JOptionPane in a non-modal way?

    JOptionPane is a convenience class to pop up pre-fabricated dialogs using simple calls to static methods. I don't think it allows much leeway for the tinkering with modality.