Browsing index pages (3 articles)
↧
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 ArticleAnswer 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 ArticleAnswer 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
Browsing index pages (3 articles)