• Post Reply Bookmark Topic Watch Topic
  • New Topic

Seeking help with Jtabs  RSS feed

 
Jamie Vaugh
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
 
Rob Spoor
Sheriff
Posts: 21092
85
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: 21092
85
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: 21092
85
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!