aspose file tools*
The moose likes JDBC and the fly likes i want to send data from swings to oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "i want to send data from swings to oracle" Watch "i want to send data from swings to oracle" New topic
Author

i want to send data from swings to oracle

liyakhat mohammed
Greenhorn

Joined: Jun 12, 2007
Posts: 2
Hello i am havig 2 java files named maptextdata.java and mapsql.java
i want to send data from maptextdata which is swing type.

when i type some data in JTextField in maptextdata and when i click enter the data should be inserted in oracle database.

can anyone tell me how to do it..
liyakhat mohammed
Greenhorn

Joined: Jun 12, 2007
Posts: 2
im even sendiNg the maptextdata.java file.. see it
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3274
When you click on the enter button the actionlistener code for that button (i.e. actionPerformed(...) method)should extract the input text and pass it to a business layer java class, which makes use of a DAO (Data Access Object layer - use JDBC, Hibernate etc) java class to insert.


To insert any data into a database look at a JDBC (Java DataBase Connectivity) tutorial.

http://w2.syronex.com/jmr/edu/db/oracle-and-java


http://www.jdbc-tutorial.com/

http://www.cs.unc.edu/Courses/wwwp-s98/members/thornett/jdbc/


500+ Java Interview Questions and Answers | Java job hunting know how & Java resumes
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: i want to send data from swings to oracle