[gui][PATCH] TextArea and GtkTextAreaPeer fixes
Thomas Fitzsimmons
fitzsim@redhat.com
Sat Jun 12 13:00:00 GMT 2004
Hi,
This patch fixes some problems with sizing TextAreas constructed without
row and column information. They should be given row and column values
of zero, and their bounds should be set to sensible values by the peer.
This patch also properly sets the peer's editable state. I committed
this to java-gui-branch.
Tom
2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
DEFAULT_COLS): New variables.
(create): Don't allow 0 rows or 0 columns. Instead, set the
values to DEFAULT_ROWS or DEFAULT_COLS.
(getMinimumSize): Likewise.
(getPreferredSize): Likewise.
(minimumSize): Likewise.
(preferredSize): Likewise.
(create): Set peer's editable state.
* java/awt/TextArea.java (TextArea()): Set rows and columns to
zero. Update javadocs.
(TextArea(String)): Likewise.
(TextArea(int,int)): Fix javadocs.
(TextArea(String,int,int,int)): Only throw exception if one of
rows or columns is zero. Fix javadocs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textarea-rows-and-cols-zero.patch
Type: text/x-patch
Size: 6373 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040612/c8c6bbad/attachment.bin>
More information about the Java-patches
mailing list