• 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

regarding jdbc

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please Use Code Tags in the future. It preserves your formatting. I've added them for you this time.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic