Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Resizing In Beans?

843805Mar 4 2007 — edited Mar 4 2007
Hello all,

I am developing a bean for my home work. The bean should work under BDK.

My bean extends JPanel class. It has a JScrollPane and JList as member variables.

The problem is, when someone changes the size of the bean on the screen, only the size of the JPanel changes. I also want the size of the JScrollPane and JList to be changed.

I tried overriding the setSize function of the JPanel, unfortunately this function is not called when someone changes the size of the bean.

I would be glad if someone could show me a way to do it.
Thanks alot.
Sincerely yours.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2007
Added on Mar 4 2007
2 comments
92 views