[gui] Some (random) AWT and Swing fixlets

Mark Wielaard mark@klomp.org
Sun Feb 13 16:17:00 GMT 2005


Hi,

While trying to get FreeMind (http://freemind.sf.net) working I made the
following changes to some AWT and Swing classes. It still doesn't really
work, but at least it starts up with this.

2005-02-13  Mark Wielaard  <mark@klomp.org>

     * java/awt/AWTKeyStroke.java (getAWTKeyStroke): Return null when
     the given String is null or cannot be parsed.

     * javax/swing/JRootPane.java (setJMenuBar): Remove current menubar
     if one is installed. Only install the given menubar is not null.

     * javax/swing/JViewport.java (getViewSize): Return an empty
     Dimension when the view isn't set.

     * javax/swing/ViewportLayout.java (preferredLayoutSize): Return an
     empty Dimension when there is no view set.
     (minimumLayoutSize): Likewise.
     (layoutContainer): Don't try to layout when there is no view.

I don't really have the intention to work on this much more. But if it
doesn't look bad I would like to commit it. Comments?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: awtsingfixes.patch
Type: text/x-patch
Size: 4775 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050213/98087213/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050213/98087213/attachment.sig>


More information about the Java-patches mailing list