BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trouble displaying jTabbedPane tabs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues
View previous topic :: View next topic  
Author Message
Jacques Chaurette
Guest





PostPosted: Thu Nov 03, 2005 11:06 pm    Post subject: trouble displaying jTabbedPane tabs Reply with quote



I am using jBuilder 9 personal. My jtabbedpane is behaving erratically,
sometimes one of the panes does not appear in the designer window and it
also does not appear in the running program but it has before.

I have these instructions in the main class:

JPanel jPanel1 = new JPanel();
JTabbedPane jTabbedPane1 = new JTabbedPane();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();

and these instructions in the private void jbInit() throws Exception {:

jPanel1.add(jTabbedPane1, null);
jTabbedPane1.add(jPanel2, "Basic");
jTabbedPane1.add(jPanel3, "More");

All jPanes are defined as null layout.

Any help appreciated. Thanks.

Jacques
Back to top
Jacques Chaurette
Guest





PostPosted: Fri Nov 04, 2005 1:35 am    Post subject: Re: trouble displaying jTabbedPane tabs Reply with quote



Think I got it. jPanel2 and jPanel 3 have to be added to jPanel1 and jPanel1
is the onethat has the jTabbedpane.

Jacques

"Jacques Chaurette" <jacques.chaurette (AT) sympatico (DOT) ca> wrote in message
news:436a51aa$1 (AT) newsgroups (DOT) borland.com...
Quote:
I am using jBuilder 9 personal. My jtabbedpane is behaving erratically,
sometimes one of the panes does not appear in the designer window and it
also does not appear in the running program but it has before.

I have these instructions in the main class:

JPanel jPanel1 = new JPanel();
JTabbedPane jTabbedPane1 = new JTabbedPane();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();

and these instructions in the private void jbInit() throws Exception {:

jPanel1.add(jTabbedPane1, null);
jTabbedPane1.add(jPanel2, "Basic");
jTabbedPane1.add(jPanel3, "More");

All jPanes are defined as null layout.

Any help appreciated. Thanks.

Jacques
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.