About 59 results
Open links in new tab
  1. java - How to use JOptionPane? - Stack Overflow

    Apr 9, 2024 · I've try to use an JOptionPane class but the warning doesn't appears after clicking the button. It appears in the end of program.

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

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

  4. Creating a JOptionPane with custom actions on buttons

    May 27, 2017 · JOptionPane has its own concept of what the buttons should do, which you are setting via the OK_CANCEL_OPTION. All of the options result in the popup window closing. Technically, …

  5. java - Customize JOptionPane Dialog - Stack Overflow

    Jun 19, 2015 · Customize JOptionPane Dialog Ask Question Asked 13 years, 7 months ago Modified 10 years, 10 months ago

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

  7. java - JOptionPane, exemplo? - Stack Overflow em Português

    Aug 18, 2014 · Bem, o JOptionPane precisa de todos esses complementos: JOptionPane.showOptionDialog(parentComponent, message, title, optionType, messageType, icon, …

  8. No se me abre el cuadro de diálogo con JOptionPane (JAVA)

    Apr 3, 2024 · En este caso, estaba tratando de acceder a la clase javax.swing.JOptionPane desde la clase Entrada_Ejemplo2, pero parece que el módulo en el que estaba el programa no tenía acceso …

  9. Java - How to add a JOptionPane for Yes and No options

    Java - How to add a JOptionPane for Yes and No options Asked 14 years, 2 months ago Modified 8 years, 7 months ago Viewed 48k times

  10. How to use JOptionPane with many options? java - Stack Overflow

    I was experimenting with different JOptionPane and I came across having different options in a array and then using it on JOptionPane. However I am finding it hard to use the given options, so for …