Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

database application problem with jtable binding  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a bit of trouble understanding the creation of a database application using netbeans and i hope someone could clear things up a little for me. I created 2 tables using sql named "staff" and "cars"(just random) and each has few attributes. What i would like to do is create an application where i can add,edit,delete staff and cars but do that on separate forms. I did a tutorial on netbeans where these 2 things were done on the same form (it had 2 jtables on the first page of the application). I want to separate this so in one jdialog i have staff jtable and i have a second jdialog which contains jtable about the cars. I tried to put a button on the first jdialog (the one created from the wizard when i created the project)which when clicked will open the second jdialog and it works until i bind my jtable on the second jdialog ( i bind it by clicking on the Import Data to Form and then selecting my database and the table).


this is the generated code which opens the first jpanel. Does anyone have any idea what am i doing wrong in the biding process as this seems to be the problem?
The error i get when i click on the button that should display the second jdialog is

Exception in thread "AWT-EventQueue-0" java.lang.Error: java.lang.reflect.InvocationTargetException
at org.jdesktop.application.ApplicationAction.actionFailed(ApplicationAction.java:859)
at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(ApplicationAction.java:665)
at org.jdesktop.application.ApplicationAction.actionPerformed(ApplicationAction.java:698)


Thanks in advance and sorry if im completely on the wrong track
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!