| | |
tabbedpane
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2009
Posts: 8
Reputation:
Solved Threads: 0
i am working with a JTabbedPane and am facing a problem. i want to change the title of a tabbedpane. i am using the setTitleAt() method. however there is no change in the top corner where the name of the tab is displayed. however when i am using getTitleAt() method i am getting the changed title. can anyone please help.
aveek,
Java Syntax (Toggle Plain Text)
.... JTabbedPane tp=new JTabbedPane(); tp.addTab("one",new JPanel()); tp.addTab("two",new JPanel()); tp.setTitleAt(0,"New Title"); // New title for 1st tab
![]() |
Similar Threads
- Source Code that don't work? (Java)
- Hey check out my prog. It has an error can u find it? (Java)
- Swing Problem (Java)
- Help with a reservation program! GUI Messed XD (Java)
- How to position buttons/boxes in a JTabbed Pane? (Java)
- polynomials (Java)
Other Threads in the Java Forum
- Previous Thread: Filling a ComboBox....
- Next Thread: Key Listener
| Thread Tools | Search this Thread |
Tag cloud for Java
android animated api appinventor apple applet application arguments array arrays automation binary bluetooth c++ chat chatprogramusingobjects chooser class classes client code codesnippet compare compiler component coordinates database doctype draw eclipse editor error event exception file fractal freeze game givemetehcodez graphics gui guidancer health helpwithhomework html ide image input int integer j2me java javaprojects jmf jni jpanel jtable julia linux list login loop map method methods mobile netbeans newbie nonstatic number oracle page plazmic print problem program programming project recursion scanner screen sell server set sharepoint size sms socket sort sourcelabs sql string swing system test testautomation threads time tree windows






