Results 1 to 3 of 3
Thread: JTable to JTextField?
- 06-02-2012, 07:30 AM #1
Member
- Join Date
- Apr 2012
- Location
- Pakistan
- Posts
- 20
- Rep Power
- 0
JTable to JTextField?
Hello Guys!!!
I have JFrame with 2 JTable and 4 JTextField inside it. I want to display the selected row data on 4 individual JTextField. JTable has 4 columns and i created 4 corresponding JTextField. When user selects row it should display the data on JTextField. How can i accomplish this task? Any help is greatly appreciated. Thanks!!!
- 06-02-2012, 08:16 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 698
- Rep Power
- 6
Re: JTable to JTextField?
Hello,
Can you post the code so that we can see what have you done so far? Please post only the code that related to your problem. Do you know how to get the selected rows on a JTable? Or you just need to know how to extract data from the selected row?Website: Learn Java by Examples
- 06-02-2012, 08:23 AM #3
Similar Threads
-
Press enter on JTextField to make focus on next JTextField?
By userno69 in forum AWT / SwingReplies: 3Last Post: 11-14-2011, 05:13 AM -
Jtable And Jtextfield / Sql Problems
By Dcalladi in forum AWT / SwingReplies: 0Last Post: 10-20-2011, 04:25 PM -
Jtable and JTextField
By ehsan in forum AWT / SwingReplies: 3Last Post: 08-14-2011, 05:37 PM -
JTable vs JTextField - which to use for creating "Search" screen
By tashimoto in forum AWT / SwingReplies: 6Last Post: 11-19-2010, 07:44 PM -
how to access jTextField of one JFrame1 from JFrame2 & Modify JTextField contents
By sumit1mca in forum AWT / SwingReplies: 1Last Post: 01-30-2009, 06:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks