How to make JTabbedPane autoresize to fit page dimensions?

Posted by teamon on Stack Overflow See other posts from Stack Overflow or by teamon
Published on 2010-03-24T18:13:34Z Indexed on 2010/03/24 18:33 UTC
Read the original article Hit count: 323

Filed under:
|
|

I have only JTabbedPane inside JFrame. JTabbedPane sets its dimensions to biggest page width/height. As pages has different size is it possible to force JTabbedPane to change its dimensions when selecting other page?

http://grab.by/3hIg

Top one is how it behave now and bottom one is how i want it to behave (i resized frame by hand)

© Stack Overflow or respective owner

Related posts about java

Related posts about swing