This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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: 64471
225
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!