• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding jdbc

 
usv choudhary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am working on swing and awt concepts of java
i have created a jtable which retrieved data from mysql database

now i want this jtable class file to load when i click on the previous java file Jbutton
in a supply chain system
say a supplier login to his home page then after to his to view the status he click on the get status button which retrieves data from the database(mysql)but on clicking on this button my program automatically ends that is the supplier cannot view the status
so please help me in this regard
i am preparing this project
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Please tell us how much you already know about JDBC access, Swing etc., then we can better help you.
 
usv choudhary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using mysql as a database i know how to configure with java and know all data manipulation statments eg-create,insert,update etc
regarding swing i know about different basic components such as jbutton,jframe etc
so please help me in this regard
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by usv choudhary:
but on clicking on this button my program automatically ends that is the supplier cannot view the status


You really haven't given us much to go on. So the program ends? Do you mean, the application exits unexpectedly or do you mean something else? Please Tell The Details.
 
usv choudhary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to say in order the view the current status supplier clicks on the get status (JButton) which on clicking must proceed to show the current status but it automatically ends
this is the coding of supplier

so please help me in this regard
[ October 24, 2008: Message edited by: Rob Prime ]
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use Code Tags in the future. It preserves your formatting. I've added them for you this time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic