• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

getting errors in fetching values from mysql to j table can you guys help??  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i am working on a project i am totally noob in java need some serious help!
i have attached netbeans design and database table in attachment
any help would be appreciated
getting errors in fetching values from mysql to j table can you guys help??

code-

db-table.PNG
[Thumbnail for db-table.PNG]
design-table.PNG
[Thumbnail for design-table.PNG]
 
Marshal
Posts: 64171
215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch I have added you to our databases forum.

Please check how the code button works; I have corrected your use of the code tags, and doesn't your post look better Unfortunately it shows problems, some lines (e.g. No 128) being much too long, incorrect indentation in just about everything you wrote, and commented‑out code which we don't need to see. The long lines were written automatically by NetBeans because you used a GUI builder.
I can also see a serious design problem: you have one class which tries to do everything (bad) and which extends JFrame (also a bad idea).
Please start by telling us the full details of what is happening, including all the error messages. Unfortunately I think you are going to have to start from scratch. Start with a class that reads the database and prints the results to screen. Only when you have got that working should you consider a GUI.
 
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!