Originally posted by Jess Finley:
Is it possible to right justify the components that you pass as options to a JOptionPane, and if so, how? I love the convenience of the JOptionPane.showOptionDialog(...), but I need to have the buttons right aligned instead of centered.
Are you talking about components you pass in as the "message", as "selectionValues", or as "options"? For "message" you can pass in a JPanel with the components aligned as you see fit. For the others it's pretty much up to the UI.
You can try setting the OptionPane.buttonOrientation system property to SwingConstants.RIGHT. See here.