Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: get value from jtextfield and set it to jtable in netbeans

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    2
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default get value from jtextfield and set it to jtable in netbeans

    i had a Jtable, textfield, combo box and a Jbutton

    i wan to enter something into textfield, select something on combo box and after clicking the button, the textfield, combo box will draw the data to database and set it to the Jtable. every time i key in something to text field, i want to the data to be appear in Jtable. is this possible? How can i do it??


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: get value from jtextfield and set it to jtable in netbeans

    Yes it's possible, but there's a lot going on in your question, enough to write a few books to answer your questions. Show what you've tried and describe where you're having trouble, ask specific questions, and we'll go from there.

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    2
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: get value from jtextfield and set it to jtable in netbeans

    the thing is i want to add some data to jtable. data taken by text field and combo box. when click the button. and add to the jtable. how can i do it?

  4. #4
    Forum VIP
    Join Date
    Jun 2011
    Posts
    317
    My Mood
    Bored
    Thanks
    47
    Thanked 89 Times in 74 Posts
    Blog Entries
    4

    Default Re: get value from jtextfield and set it to jtable in netbeans

    Big topic, completely doable. Break your problem down into manageable chunks and solve them one by one. Some milestone to consider:

    • Pull information from the TextBox / ComboBox and execute something when the Button is pressed.
    • Write the information to a Database with SQL
    • Pull the information from the Database and place it in a JTable with SQL

Similar Threads

  1. Set JButton's mouse events to JTextField
    By startas in forum AWT / Java Swing
    Replies: 2
    Last Post: September 11th, 2013, 04:08 PM
  2. Replies: 21
    Last Post: November 27th, 2012, 10:58 PM
  3. Java Connect to MySQL using jTextfield, jbuttons in NetBeans
    By Light Mike in forum JDBC & Databases
    Replies: 2
    Last Post: August 11th, 2012, 10:41 PM
  4. netbeans JTable Jbutton
    By Mr.President in forum AWT / Java Swing
    Replies: 6
    Last Post: July 19th, 2010, 08:37 AM
  5. Add or remove a row on a jtable with Netbeans 6.0
    By Pieter in forum Java Theory & Questions
    Replies: 1
    Last Post: July 8th, 2010, 02:40 PM

Tags for this Thread