Top "Joptionpane" questions

JOptionPane is a Java class that makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.

How to close message dialog programmatically?

I have a question about joptionpane. Using JOptionPane.showMessageDialog(...), we can create a message dialog. But how to close it …

java swing user-interface joptionpane
Remove icon from JOptionPane

How to remove icon from JOptionPane? ImageIcon icon = new ImageIcon(image); JLabel label = new JLabel(icon); int result = JOptionPane.showConfirmDialog((…

java image swing joptionpane imageicon
JOptionPane Cannot Find Symbol

I am trying to create a simple calculator using JOptionPane. I have encountered compiling errors. import javax.swing.JOptionPane; public …

java compiler-errors joptionpane cannot-find-symbol
Get the return value of JOptionPane

My JOptionPane code is as follows: selectedSiteName = JOptionPane.showInputDialog("Enter the name of the new site:"); This renders out an …

java joptionpane
When I try to use HTML with `JOptionPane`, HTML tags are printed instead of HTML formatting

For some weird reason when I try to use HTML with JOptionPane, HTML tags are printed instead of HTML formatting. …

java html swing joptionpane
Validate Input Dialog box

HI, I feel rather stupid asking this as I should be able to do it but I can't! I have …

java swing joptionpane
About ComboBox in JOptionPane using dialog

I would like to get a dialog box using joptionpane as a Combobox where I want to accept the values …

java netbeans combobox dialog joptionpane
Closing A JOptionPane Programmatically

I am working on a project in which I would like to close a generic JOptionPane programmatically (by not physically …

java swing joptionpane
Disable ok button on JOptionPane.dialog until user gives an input

I need the user to input a name and I want to disable the ok button until some input is …

java swing joptionpane
Cannot find symbol println

I just started a new java project today, and I'm having a problem with println. Here's my main method: public …

java joptionpane println