• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i want to send data from swings to oracle

 
liyakhat mohammed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im even sendiNg the maptextdata.java file.. see it
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic