On Sun, 06 Oct 2013 12:50:59 +0200 Michael Vehrs <[email protected]> wrote: > What's the rationale for using JOptionPane rather than extending JDialog > directly?
Seemed-like-a-good-idea-at-the-time. It looked like the "standard" way of doing things, there were good examples of how to use it, it handles a certain amount of tedium, and its shortcomings were not immediately apparent. > JOptionPane provides shortcuts for several standard dialogs, > but since our UI differs considerably from that of JOptionPane, it might > not be worth the trouble. We are a fair way down that road. > The point is not that I prefer the OK button to be at the right, but > that I expect it to be there because I use Gnome, and Gnome places the > OK button on the right. As far as I understand, other desktop > environments (Windows, for example) do it the other way around. > MigLayout takes care of that nicely. In order to keep that feature, we > would need to compile a list of rules for different desktop environments > and sort the buttons accordingly. OK, more that I did not understand about MigLayout. Button placement is not something I am looking for consistency on ATM, as I am in transition from KDE to something lighter (either razor-qt or LXDE, TBD). Of course, 90% of the time, my "desktop environment" is emacs:-). > I think it can be done via the BasicOptionPaneUI. It might even be > possible to trick JOptionPane into using MigLayout using the > BasicOptionPaneUI, specifically the addButtonComponents method. OK, I will look at that. Cheers, Mike Pope
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________ Freecol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freecol-developers
