Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Stretching panel expands tabbed pane

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've narrowed my problem down to a panel that's dynamically filled with some check boxes, which is located inside a pane of my tabbed pane-component. I suspect the problem is related to the items below the panel that contains the check boxes. Because the tabbed pane expands in height equal to the size of the panel with the check boxes. Is there any way of letting the subsequent components utilize the available space instead of acquiring more space (there's plenty of room, so there's no need for it to expand)?. I also want the user to be able to maximize the window, so I can't just use a fixed size either.

Since I'm using the NetBeans GUI builder, posting the code isn't really an option. I know this gets very abstract without screenshots or code, but I hope I've made my problem clear enough for you to understand my problem.

Update: I actually solved this as I was writing the post, but I decided to post it anyway, so that maybe anyone else encountering the same problem as me could find a solution here. Anyway, here's what I did: I put my subsequent components in a panel, then setting the bottom space around the component to default and also ticking off the "resizable" check box belonging to it. I also made sure that the panel containing the check boxes doesn't have vertical auto resizing, but instead attached a BoxLayout to it.
 
Greenhorn
Posts: 4
IntelliJ IDE Ruby Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if you can't paste code, a screenshot would be nice.
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic