This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Seeking help with Jtabs  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fully understand this is a novice question but its stummped me :S

I've just added Jtabs panes to my program thus making it store more information in a smaller GUI etc..
but the problem beggings when it makes things like my JTextArea/Field's smaller, anyone know a solution?

Thanks a lot
 
Sheriff
Posts: 21330
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What layout manager and constraints are you using?
 
Jamie Vaugh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's using 'Absolute Positioning' but it wasn't scrambled or small like that before I added them to tabs
 
Rob Spoor
Sheriff
Posts: 21330
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Absolute Positioning' is always a bad idea, but it looks like you're actually using a FlowLayout (horizontally centered, components on each row centered on that row). You do know that the JTabbedPane has its children, and if those are panels they need their own layout manager? If you don't provide one, JPanels get a FlowLayout which does explain the current layout.
 
Jamie Vaugh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Rob Spoor
Sheriff
Posts: 21330
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to read http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!