aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes why is my JTable not showing up? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "why is my JTable not showing up?" Watch "why is my JTable not showing up?" New topic
Author

why is my JTable not showing up?

ben riches
Ranch Hand

Joined: Nov 08, 2002
Posts: 126
Hello All,
Why is my Jtable not showing up?
Thanks
Ben
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
Has it EVER shown up? You should probably put in some dummy/test values to begin with to see if your table shows up - once you confirm that it does, THEN try getting the data from a DB.
Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
ben riches
Ranch Hand

Joined: Nov 08, 2002
Posts: 126
Originally posted by Brian Pipa:
Has it EVER shown up? You should probably put in some dummy/test values to begin with to see if your table shows up - once you confirm that it does, THEN try getting the data from a DB.
Brian


Yes I have got it to show with the ComBoxes showing all that I need but when one of the Table Names is not accepted it thows 1 Exception when I choose that Table Name, then thows the same Exception again when I go back into the ComboBox to change the table name.
Why do you think this is?

Thanks
Ben
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Hi Ben,
I got your code to work straight away when I connected to one of my own databases by adjusting your connect statement. "Column A" comboboxes show the table names and "Column B" comboboxes show field names.

Yes I have got it to show with the ComBoxes showing all that I need but when one of the Table Names is not accepted it thows 1 Exception when I choose that Table Name, then thows the same Exception again when I go back into the ComboBox to change the table name

All my tables show up without any exceptions. What exceptions are you seeing? I am not sure how you would change the table name? Perhaps if you
explain exactly what you expect to see I can help you.
Ed
[ March 22, 2004: Message edited by: Eddie Vanda ]

The nice thing about Standards is that there are so many to choose from!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why is my JTable not showing up?