Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting tabbed pane to work with my Jtable  RSS feed

 
Jimmy Bua
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all!
I asked for help on another Java forum but did not get any responses.. Anyways, I'm having a hard time getting two tabs to show in my Tabbed pane in my test GUI... I'm not getting any errors with the following code but no Tab's are showing in the Jtable..

Here's my code:


Any help will be greatly appreciated!
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest putting something which is actually visible into your tabs. Empty tables are invisible, so when you look at them you can't tell whether they are present or not.
 
Jimmy Bua
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It pulls from 2 files "JtableTestDB.txt" and "JtableTestDB2.txt"

Here is what the files look like:

 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what that means, if it was supposed to be in response to my post. Here's your code:



Here you are creating an empty JTable and putting it in the first tab. Any other code you have which gets data from files, or whatever, has nothing to do with this line of code. What you'll see on the screen is that empty JTable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!