On Sat, 05 Oct 2013 08:19:20 +0200
Michael Vehrs <[email protected]> wrote:
> Unfortunately, swing does not follow the platform's UI conventions with 
> regard to button placement, which means that the new dialogs place their 
> buttons incorrectly. MigLayout does the right thing, but only if the 
> buttons are tagged appropriately.

Tagging the buttons is not available within the JOptionPane, and I do not
think we can control the placement much either.  Not without
reimplementing much of JOptionPane that is.  However I think the order
can be changed --- JOptionPane makes a button out of each member of an
array of Objects passed to its constructor, so it is probably just a matter
of changing the array order.  If the new buttons are backwards, that is my
fault.  Following the discussion about modal/non-modal dialogs I thought it
would be best if the "back out and think about it" option (usually
"Cancel") was always the default, and it seemed better to have that always
on the right.  I can switch it back easy enough if you have a clear
preference.

I am not even sure we have any UI conventions in force for the new dialogs.
FreeColDialog is now a JOptionPane inside a JDialog, for which there is
no entry in FreeColLookAndFeel.  This may be difficult if plaf requires a
JComponent, as JDialog is not on that branch of the tree.

Cheers,
Mike Pope

Attachment: 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

Reply via email to