Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using jbutton to write to jtextfield values to database

 
Bobby Fitzgerald
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i'm trying to write a GUI which can write text from a JTextfield to a MySQL database when the user clicks a jbutton. I'm having errors with the eventhandler code for the button, can anyone take a look at my code for me and explain to me what i'm doing wrong:



I'm really sorry that i've just pasted my code, i'm not aware of how to display it in the right format
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
asdf andf wrote: I'm really sorry that i've just pasted my code, i'm not aware of how to display it in the right format


You'll find the answer to that and many other tips here: How To Ask Questions On Java Ranch. I've added the code tags for you, but it doesn't really help as your code lacks indentation. You might like to edit the post and replace that with properly formatted code copied directly from your source editor.

edit Also go through this, linked on the 'How To' page is Be Forthright When Cross Posting To Other Sites.
 
Rob Spoor
Sheriff
Pie
Posts: 20533
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic