Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2004



Tip: Looking for answers? Try searching our database.

Java Swing dialog button order question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Warren J. Dew - 31 Dec 2003 02:08 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 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/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.