Reply
Tabbed Pane in Java
Old 10-19-2005, 06:26 AM Tabbed Pane in Java
abeMING's Avatar
Novice Talker

Posts: 9
Hi all, i tried to create tabbed pane in java GUI, as we know we should use this function : JTabbedPane(), but i dont know how to use it..would somebody here help me..
abeMING is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-19-2005, 02:33 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
See the Swing API reference here:
http://java.sun.com/j2se/1.5.0/docs/...abbedPane.html

Code:
Container cp = the content pane of your JFrame or JApplet

JTabbedPane thePane = new JTabbedPane();
thePane.add("Tab1", new JPanel());
thePane.add("Tab2", new JPanel());
cp.add(thePane);
That should get you a basic Tabbed Pane with two tabs.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Tabbed Pane in Java
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10865 seconds with 12 queries