We have a Swing application with a lot of input dialogs showing ok and cancel buttons.
I noticed that in JOptionPane, the order of the ok and cancel buttons changes depending on the platform. On Windows this is normal / undo, while on Unix it is undo / normal.
If we added our own ok and cancel buttons, I would like their order to match the order they show in JOptionPane to ensure consistency.
I was wondering if there is a way to poll UIManager to find out what the correct order should be for the current look and platform.
Thanks in advance. Matt
source
share