I'm porting a Mac Classic app to Java Swing to make it cross platform. I'm
following the old Mac UI Guidelines and putting meaningful labels on the dialog
buttons (e.g., "Save" and "Don't Save" instead of "Yes" and "No"). It turns
out that on OS X, JOptionPane.showOptionDialog() displays the buttons in the
reverse order of the array in which they are provided, while other platforms
seem to present them in normal order.
Anyway, I'm trying to figure out what order I should put the buttons in. So
does anyone know:
1. Has this been changed in Java 1.4 on the Mac (I'm currently using 1.3)?
2. Does the reversal make sense for the platforms - that is, I know that on
the Mac, the "safe" button is supposed to go in the lower right hand corner; is
it supposed to be on the left on Windows?
3. did Apple reverse the order on purpose, perhaps in view of (2) above?
Thanks,
Warren J. Dew
Powderhouse Software
Eric Albert - 02 Jan 2004 09:40 GMT
> I'm porting a Mac Classic app to Java Swing to make it cross
> platform. I'm following the old Mac UI Guidelines and putting
[quoted text clipped - 8 lines]
>
> 1. Has this been changed in Java 1.4 on the Mac (I'm currently using 1.3)?
I'm not sure. I'd suggest writing a test case and running it under 1.4
(which should be easy for you to do).
> 2. Does the reversal make sense for the platforms - that is, I know
> that on the Mac, the "safe" button is supposed to go in the lower
> right hand corner; is it supposed to be on the left on Windows?
Yes.
> 3. did Apple reverse the order on purpose, perhaps in view of (2) above?
Probably.
Hope this helps a little,
Eric

Signature
Eric Albert ejalbert@stanford.edu
http://rescomp.stanford.edu/~ejalbert/