Results 1 to 6 of 6
Thread: Setting jTable cell?
- 04-21-2010, 04:51 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 23
- Rep Power
- 0
- 04-21-2010, 05:50 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,145
- Rep Power
- 5
I have no idea what a renderer has to do with anything. When you click on a row you need to know the index of the selected row, which you can determine by looking at the methods of the JTable API. Then you update each text field with code like:
Java Code:textField0.setText( table.getValueAt(row, 0) ); textField1.setText( table.getValueAt(row, 1) );
- 04-21-2010, 05:54 PM #3
And how is that question related to Java2D?
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 04-22-2010, 04:25 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I've move to the correct place. @OP, please choose the correct sub-forum next time when you posting again.
- 04-22-2010, 08:34 AM #5
Uhm Eranga, don't you think this is a Swing question?
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 04-22-2010, 05:33 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Seems to me this is more like to simple Java. Because he just asking about how to handle some resources (methods) in Java, even it's comes from Swing.
Similar Threads
-
JTable Cell Merg
By anilkumar_vist in forum AWT / SwingReplies: 8Last Post: 04-25-2011, 09:32 AM -
Jtable and cell coordinates
By rattaman in forum AWT / SwingReplies: 2Last Post: 11-17-2009, 05:48 PM -
add a check box to only one cell in a JTable
By aruna1 in forum New To JavaReplies: 4Last Post: 04-03-2009, 06:28 PM -
Color cell in JTable
By ippacciani in forum AWT / SwingReplies: 3Last Post: 03-25-2009, 11:53 AM -
set different font for each cell in JTable
By success21061985 in forum AWT / SwingReplies: 3Last Post: 09-10-2008, 02:06 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks