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!

resize JScrollPane

843805Jan 18 2006 — edited Jan 19 2006
hi,
I have a JEditorPane inside a JScrollPane, and the JScrollPane is inside a JFrame. I made the JFrame resizable, but the JScrollPane does not resize, i read through this link http://forum.java.sun.com/thread.jspa?threadID=528867&messageID=2543208 , and i would like to ask the following:

1) can i resize the JScrollPane if i use
container.setLayout(null);
2) How do i make a JScrollPane resize in 1 direction only, like only horizontally and vertically, when the JFrame resizes?

Thanks in advance

Regards,
yiming
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2006
Added on Jan 18 2006
6 comments
795 views