About 488,000 results
Open links in new tab
  1. 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.

  2. java - Customize JOptionPane Dialog - Stack Overflow

    Jun 19, 2015 · Customize JOptionPane Dialog Asked 13 years, 1 month ago Modified 10 years, 4 months ago Viewed 50k times

  3. 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 …

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

    Oct 13, 2013 · How do I display all of this information here in just one dialog? Every time I run the file different dialog boxes appears, I really need them to appear in just one dialog box with all …

  5. java - JOptionPane : change the Icon - Stack Overflow

    Furthermore, the BasicOptionPaneUI.getIcon() method appears to retrieve a default icon any time it finds that null was specified for the icon. So how can calling any of the JOptionPane …

  6. How do you change the size and font of a joptionpane?

    Aug 17, 2018 · Can you change the font and size of the text of a JOptionPane? I tried it and it works only if I "run file" on that specific java class. If you start the whole project it does not …

  7. java - Add Image to JOptionPane - Stack Overflow

    Dec 20, 2012 · From the javadoc on JOptionPane: public static void showMessageDialog(Component parentComponent, Object message, String title, int …

  8. 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.

  9. 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 …

  10. java - JOptionPane Yes or No window - Stack Overflow

    Dec 6, 2011 · I am trying to create a message with a Yes or No button. Then a window will appear with a certain message that depends on if the user clicked Yes or No. Here is my code: public …