Results 1 to 2 of 2
- 04-12-2010, 02:12 PM #1
Dynamically adding JPanels to the JTabbedPane !!
Hey guys... i am trying to add jpanels to the jtabbedpane dynamically.. Initially at startup the JTabbedPane will have no tabs. but i need to add panels equal to the number of entries in the table (dynamic) in the database..:confused:
please suggest. thnxThe Quieter you become the more you are able to hear !
- 04-12-2010, 05:54 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Did you read the API documentation for the JTabbedPane class? I bet not because you would've read about its add( ... ) method that adds a single tab to the component. Imagine that method inside a while loop where you're fetching data from your database. That doesn't take rocket science. Read the API documentation before you start asking for the obvious answers.
kind regards,
Jos
Similar Threads
-
How to expand the JPanels dynamically?...
By Vin in forum New To JavaReplies: 6Last Post: 01-27-2010, 12:58 PM -
Adding contents inside the JTabbedPane
By javanewbie in forum New To JavaReplies: 1Last Post: 05-27-2009, 12:02 PM -
Problem Adding Content To JTabbedPane
By JDCAce in forum AWT / SwingReplies: 5Last Post: 10-18-2008, 09:45 AM -
Adding JPanels to JFrames based on x-y co-ordinates
By aneesahamedaa in forum AWT / SwingReplies: 4Last Post: 07-24-2008, 10:41 PM -
Adding Tabs to JTabbedPane
By blackstone in forum AWT / SwingReplies: 2Last Post: 11-14-2007, 03:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks