aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Using jbutton to write to jtextfield values to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using jbutton to write to jtextfield values to database" Watch "Using jbutton to write to jtextfield values to database" New topic
Author

Using jbutton to write to jtextfield values to database

Bobby Fitzgerald
Greenhorn

Joined: May 23, 2011
Posts: 1
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

Joined: May 03, 2008
Posts: 4664
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

And welcome to the Ranch!


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using jbutton to write to jtextfield values to database