Search code examples
javajlabeljoptionpane

JOptionPane with two labels


I would like to create in Java a JOptionPane which should contain two different labels, Is it possible? If so, how to do it?


Solution

  • JOptionPane do not consist of labels. It's a built in component for showing a standard pop up box with various buttons. You might wish to implement your own JFrame, that looks identical to a normal JOptionPane, with however way/many text included.