How to present a vertical showOptionDialog button

I would like to present my buttons vertically and here is my code:

this is the shortcut code of my buttons:

String[] choices = {"31", "63", "127", "255", "511", "1023", "2047", " ... or Quit"}; 

and here are the options for the dialog box:

 while (true) { int response = JOptionPane.showOptionDialog( null , "Please select the sequence-length you want ...\n" , "Gold Code generator" , JOptionPane.YES_NO_OPTION , JOptionPane.PLAIN_MESSAGE , null , choices , "None of your business" ); 

therefore ... can it be represented in a vertical way instead of a common horizontal path?

+4
source share
1 answer

JOptionPane does not have a vertical button orientation option; you will need to create your own dialog by subclassing JDialog.

+2
source

All Articles