Article View: borland.public.jbuilder.java.swing
Article #11692JTabbedPane Tab tittle setting ?
From: Sohan Mendis
Date: Tue, 20 Apr 1999 00:00
Date: Tue, 20 Apr 1999 00:00
44 lines
1397 bytes
1397 bytes
I have created a JTabbedPane bean with property name Tag which is a string
holds the names for panels(tabs)
At design time I add panels to the Jtabbedpane. To give tab titles I change
the Tag propoperty. Within the SetTag() I call setTittleAt() to set the tabs
tittles. It work OK. I can see the code update in the jbinit(). But when I
rebuiled the project. It gets changed to previous state.
Code is like
jbinit()
{
.....
/// it seems after each rebuild tabs getting set to this and
jTabbedpane1.addtab("tab1",jpanel1);
jTabbedpane1.addtab("tab2",jpanel2);
.......
// this is not effective
jTabbedpane1.setTag("101 102");
//// even if i call setTittleAt() at this point is not going to effect why
?
}
....
SetTag(String tabstring)
{
// tokenize the string
// and fro each token I call
setTittleAt(i,newTabname);
}
}
Technical Details
Message-ID:
<7fgb4g$905@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7493fe91a33961eb,start X-Google-Attributes: gid111d45,public From: "Sohan Mendis" <sohan@maxtrak.com> Subject: JTabbedPane Tab tittle setting ? Date: 1999/04/20 Message-ID: <7fgb4g$905@forums.borland.com> X-Deja-AN: 468495500 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing