• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
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: 65113
247
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!