Quantcast
Browsing latest articles
Browse All 3 View Live

Answer by Hovercraft Full Of Eels for How to use JOptionPane with many...

Why not simplyString[] options = new String[] {"Go ahead", "Go back", "Go forward", "close me"};int option = JOptionPane.showOptionDialog(null, "Title", "Message", JOptionPane.DEFAULT_OPTION,...

View Article


Answer by Sambhav for How to use JOptionPane with many options? java

Just see option is of int type. Hence JOptionPane.showOptionDialog(null, "Title", "Message", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE,null, options, options[0]) is returning an integer...

View Article


How to use JOptionPane with many options? java

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

View Article
Browsing latest articles
Browse All 3 View Live