• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why is my JTable not showing up?

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
Why is my Jtable not showing up?
Thanks
Ben
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
ben riches
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic