> i should have wrote this before but
> i also need to put images on those buttons
[quoted text clipped - 3 lines]
> so isn't there a way by which the buttons adjust automatically to the
> size of the imageicon
Yes, but not with a GridLayout -- the very purpose of which it is to
have uniformed grid cells.
> this way the design would become simpler
<http://java.sun.com/docs/books/tutorial/uiswing/index.html>
and more especially:
<http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html>

Signature
DF.
to reply privately, change the top-level domain
in the FROM address from "invalid" to "net"
K Gaur - 04 Jul 2008 10:12 GMT
> Yes, but not with a GridLayout
thanks but i really would like to know that way
please help
RedGrittyBrick - 04 Jul 2008 10:27 GMT
>> Yes, but not with a GridLayout
> thanks but i really would like to know that way
Did you read the tutorials Daniele pointed out to you?
Which bit of those tutorials are you having problems with?
> please help
Post an SSCCE (http://sscce.org/) using one of the other layouts.
e.g. One of GridBagLayout, nested BoxLayouts, ...
If you do that, I'll certainly spend some time looking into whatever
problem you have.

Signature
RGB
K Gaur - 08 Jul 2008 08:21 GMT
well thanks
but i got the prob solved
just that i had to make a custom layout manager