This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes  to point a cursor into a particular column in Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark " to point a cursor into a particular column in Table" Watch " to point a cursor into a particular column in Table" New topic
Author

to point a cursor into a particular column in Table

maliny ramu
Greenhorn

Joined: May 14, 2007
Posts: 10
the scenario
When adding a new row in the table,the cursor should point to the particular column.Could you help me out with solution with example.?
I'm using Table Model Listener whereby when i double clicked the cursor will be there.
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
ok
as per you explained it if you want to point to a particular row of the table you must use a Object[][] data
as a argument to the table model and pass the data to table,you want to point to a particular row than data[i][j] in a for loop,than keep changing i & j value [0][0],[0][1] and so on.hope this may be helpful to you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: to point a cursor into a particular column in Table
 
Similar Threads
refreshing the page when radio button clicked
java swings
JTable and mouse cursor
setting mouse cursors to default in windows NT and Solaris
to point a cursor into a particular column in Table