It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes Could you please help me with this ?!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Could you please help me with this ?!!!" Watch "Could you please help me with this ?!!!" New topic

Could you please help me with this ?!!!

sandhya raviprasad

Joined: Feb 23, 2001
Posts: 6
Hi I've designed a bean and it is inside an applet.The bean comprises of a JScrollPane which has a JTable in it. The bean also has some buttons and labels in it. My problem is when I resize the bean, only the buttons and labels are getting resized, but the JTable and JscrollPane don't get resized properly. Could anyone help me with this?!!
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
So now I am dying to know how to fix this (you really have been asking nicely - I just don't know the answer).

"JavaRanch, where the deer and the Certified play" - David O'Meara
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
I think you problem is related to one of two things.
1. Layout of your bean. If it has a BorderLayout or GridLayout then it should resize.
2. Layout of your applet. If your applet layout is not set then the default is flowLayout which doesn't resize on its own.
I agree. Here's the link:
subject: Could you please help me with this ?!!!
jQuery in Action, 3rd edition