> Hi all,
>
[quoted text clipped - 17 lines]
> I would really appreaciate it if you could help me with my problem.
> Sincerely yours.
From the docs:
JPanel
public JPanel()
Creates a new JPanel with a double buffer and a flow layout.
So it puts the button where it wants to. Just create the JPanel with a
null layout manager. Then you can put it anywhere you want. Of course
if that's all you do you won't be able to see the JButton because it
doesn't have a size. So call setSize(button.getPreferredSize()) to make
it appear correctly, more or less.

Signature
Knute Johnson
email s/nospam/knute/
asd - 07 Feb 2007 03:38 GMT
>> Hi all,
>>
[quoted text clipped - 32 lines]
> have a size. So call setSize(button.getPreferredSize()) to make it appear
> correctly, more or less.
Hello Knute,
I appreciate your help. It worked.
I tried setting layout manager to null before posting here. I was unable to
locate the button on the frame.
Thanx for the detailed information about the size of the button.
Sincerely.
Knute Johnson - 07 Feb 2007 03:42 GMT
>>> Hi all,
>>>
[quoted text clipped - 41 lines]
> Thanx for the detailed information about the size of the button.
> Sincerely.
Those suckers are hard to find when their size is 0x0 :-).

Signature
Knute Johnson
email s/nospam/knute/