wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes jtabbedpane is a pain in the butt; how do I place labels and move them around? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtabbedpane is a pain in the butt; how do I place labels and move them around?" Watch "jtabbedpane is a pain in the butt; how do I place labels and move them around?" New topic
Author

jtabbedpane is a pain in the butt; how do I place labels and move them around?

Dick Hammer
Greenhorn

Joined: Jan 28, 2012
Posts: 18
I am pretty new to Eclipse windows builder and Java and I created these tabs with Labels and buttons, but I am not able to move them around? Anyone know why not? If I put a label in a jframe, and I select absolute coordinates, I am able to move them as I wish, but not when I put them in in a tabbed pane? Also wheneever I add another label or button, it creates another pane!



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The normal thing to do would be to add JPanel objects to your JTabbedPane. Then you can put whatever you like into those JPanels in whatever layout you like.

If you're asking how to do that in your window builder, sorry, I don't know. I could move the question to the forum about IDEs if you think that would be a better place for a question about an IDE feature.
Dick Hammer
Greenhorn

Joined: Jan 28, 2012
Posts: 18
No need to move it. You answered the question for me. Thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jtabbedpane is a pain in the butt; how do I place labels and move them around?
 
Similar Threads
Create panel depending on which tab is clicked in Swing
JTabbedPane with Keyevents
JTabbedPane
Problems using JTabbedPane In a GUI application
Issue with JTabbedPane