Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

i want to send data from swings to oracle

 
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
 
Author
Posts: 3445
  • 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/
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic