[GUI] fixes for JMenuBar and JToolBar layout

Roman Kennke roman@ontographics.com
Thu Jul 8 12:05:00 GMT 2004


Hi list,

I have put together two small fixes for JMenuBar and JToolBar. ATM these
are laid out using GridBagLayout and BoxLayout, which is very unusual
IMO. I have changed this to use FlowLayout in both cases, which looks
much better.

Please check and approve these patches. I am in the assignment process
and should hopefully finish this soon. These patches are minimal, so I
think they should go in. :)

Cheers, Roman



2004-07-08  Roman Kennke  <roman@ontographics.com>

        * javax/swing/plaf/basic/BasicMenuBarUI.java:
          (installUI): Fixed layout for javax.swing.JMenuBar to use
          java.awt.FlowLayout.
        * javax/swing/plaf/basic/BasicToolBarUI.java:
          (installUI): Fixed layout for javax.swing.JToolBar to use
          java.awt.FlowLayout.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: JMenuBar.diff
Type: text/x-patch
Size: 1166 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040708/bd341e19/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JToolBar.diff
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040708/bd341e19/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040708/bd341e19/attachment.sig>


More information about the Java-patches mailing list