Results 1 to 1 of 1
- 10-16-2008, 07:48 AM #1
Member
- Join Date
- Aug 2007
- Posts
- 40
- Rep Power
- 0
Event after comit the value in cell editor
Sub.: Event after comit the value in cell editor after pressing 'Return'/'Enter' key
I am creating my own EditableTable (Bean component) which extends JTable. This table will bring us to next editable cell with editor focused when user press Enter key.
I have 3-problems:-
1. How can I invoke my source code when user press 'Enter' (Return) key.
Which function should be overriden by me.
2. I want to restrict my Table so that it has at least one row. i.e. User can not remove all rows.
{Is overriding of setRowCount() for this requirement is sufficient OR need more}
3. I want that my table has one fix column at left most. But still first column should be accessed by User (that will use my bean component) using index "0"
So if U have already done this work, then give me idea.
Thanks
GAJESH TRIPATHI
Similar Threads
-
set different font for each cell in JTable
By success21061985 in forum AWT / SwingReplies: 3Last Post: 09-10-2008, 02:06 PM -
jTable Cell editing
By mahaling_m in forum AWT / SwingReplies: 0Last Post: 06-23-2008, 08:17 AM -
Jframe In Jtable cell
By Clarion in forum AWT / SwingReplies: 4Last Post: 06-23-2008, 04:42 AM -
Select specific cell
By Echilon in forum New To JavaReplies: 1Last Post: 01-01-2008, 07:47 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks