[5299] in java-interest
RE: How do I specify rows/columns for GridBagLayout?
daemon@ATHENA.MIT.EDU (Amy Fowler)
Mon Feb 5 16:27:20 1996
Date: Mon, 5 Feb 1996 12:23:02 -0800
From: Amy.Fowler@Eng.Sun.COM (Amy Fowler)
To: Amy.Fowler@Eng.Sun.COM, java-interest@java.Eng.Sun.COM,
java@java.Eng.Sun.COM, john@insightnews.com, jug@jug.org,
gnicaj@iu.net
>>
>>Is it possible to use a GridBagLayout to draw Images?
>>When I draw an image I need to specify the coordinates, but the GridBagLayout
doesn't allow that - you just add it..
>>How can I get an Image on the GridBagLayout?
I would recommend creating a subclass of Canvas (ImageCanvas
or something) which knows how to render the image on the
canvas, and then just add the canvas to your GridBagLayout.
Regards,
Amy Moore-Fowler
Java Products Group
Sun Microsystems, Inc.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com