Results 1 to 4 of 4
- 10-19-2011, 09:40 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 27
- Rep Power
- 0
Filling Text Field from information from JTable
Hi i am currently doing some work for university. i have a JTable populated from a SQL Database i am looking for a way when i select the row all of the information is set into some JTextFields. then obviously when i select a different row the new information will be put into the
JTextFields . i know ill have to have some kind of listener but any advice or snippets of code or links to something that might help would be
very appreciated
Thank you
-
Re: Filling Text Field from information from JTable
get the JTable's ListSelectionModel via its getSelectionModel() method and add a ListSelectionListener to the model.
- 10-20-2011, 02:26 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 27
- Rep Power
- 0
Re: Filling Text Field from information from JTable
Thank you, i managed to work it out in the end but then a bunch of other problems appeared. :)
-
Re: Filling Text Field from information from JTable
Similar Threads
-
Filling a JTable
By aborgeld in forum Advanced JavaReplies: 0Last Post: 01-08-2011, 01:37 PM -
insert data from text field to jtable
By mackinas in forum New To JavaReplies: 2Last Post: 06-09-2010, 04:30 AM -
Problems getting JTable to display information
By Gatts79 in forum AWT / SwingReplies: 2Last Post: 11-08-2008, 02:35 AM -
Getting class field information using Reflection
By Java Tip in forum Java TipReplies: 0Last Post: 01-24-2008, 03:20 PM -
Adding information to a JTable in a JTabbedPane
By bigpappatrader in forum AWT / SwingReplies: 0Last Post: 12-05-2007, 07:09 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks