Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 9
Trades: 0
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
 
 
Register now for full access!
Old 10-19-2005, 02:33 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
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';

Please login or register to view this content. Registration is FREE
(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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09753 seconds with 12 queries