Results 1 to 1 of 1
-
Adding custom buttons - JOptionPane.showOptionDialog(...)
You can display buttons of your choice while using showOptionDialog(...). Review the code below:
Java Code:String[] choices = {"Java", "C++", "VB", "COBOL"}; int response = JOptionPane.showOptionDialog( null , "Which is your favourite programming language?" , "Language Poll" , JOptionPane.YES_NO_OPTION , JOptionPane.PLAIN_MESSAGE , null , choices , "None of your business" );
Similar Threads
-
GUI buttons question...
By glenrowan in forum New To JavaReplies: 3Last Post: 01-18-2011, 05:23 PM -
Adding command buttons on MIDLet Forms
By Java Tip in forum Java TipReplies: 0Last Post: 11-22-2007, 09:57 AM -
Next, Finish Buttons !!!
By pele in forum SWT / JFaceReplies: 1Last Post: 07-14-2007, 05:22 PM -
Adding custom highlight to JEditorPane
By andrewb in forum AWT / SwingReplies: 0Last Post: 06-22-2007, 06:48 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks