File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes help needed on the java focus... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

help needed on the java focus...

Aurelien Faillon
Greenhorn

Joined: Jul 07, 2004
Posts: 9
hi,

First of all, excuse my poor english...

I want to create a java-swing application with JTable and where you have to press a JButton to send the elements which are in the JTable to a database... but when I press the button the last cell that I have complete in the JTable seems to be not recorded... the object inside is "null"...

so I think I have to add a focus for change it and validate the record in the JTable, but I don't know how...

could you help me?


....A...............N<br />B.......T.......A....<br />............M........
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
This would seem to have more to do with GUIs and programming logic than testing.

I'm moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
...and then we discover that this thread has a duplicate.

Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.
 
jQuery in Action, 2nd edition
 
subject: help needed on the java focus...
 
Similar Threads
Focus traversal problem in JTable
JTable(!!!)
JTable and JButton - Focus issue
JTable
JTable focus issue