This site requires JavaScript, please enable it in your browser!
Greenfoot back
Nosson1459
Nosson1459 wrote ...

2017/2/13

JTabbedPane

Nosson1459 Nosson1459

2017/2/13

#
Is there any way that I can change the size of a tab at the top of the window from a JTabbedPane (besides for making spaces when I set the text for the tab) or something like that so that my three tabs will take up the exact amount of space as the width of the window, now I have a big tab and a small tab but with a lot of extra space.
danpost danpost

2017/2/13

#
Nosson1459 wrote...
Is there any way that I can change the size of a tab at the top of the window from a JTabbedPane (besides for making spaces when I set the text for the tab) or something like that so that my three tabs will take up the exact amount of space as the width of the window, now I have a big tab and a small tab but with a lot of extra space.
I could be mistaken; but, from what I can gather, adding a bunch of spaces to the title of one tab may cause all tabs to increase in size.
Nosson1459 Nosson1459

2017/2/13

#
I guess I could add spaces to the names on the tabs to make them wider, but is there a way to make it automatically fill all the space that's on top of the window frame?
danpost danpost

2017/2/14

#
Nosson1459 wrote...
I guess I could add spaces to the names on the tabs to make them wider, but is there a way to make it automatically fill all the space that's on top of the window frame?
Honestly, I did not find any methods that would help in that regard.
Nosson1459 Nosson1459

2017/2/14

#
Thanks anyway.
You need to login to post a reply.