This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Hiden field in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Hiden field in JTable" Watch "Hiden field in JTable" New topic
Author

Hiden field in JTable

Hal Wayne
Greenhorn

Joined: Jan 16, 2003
Posts: 3
Can anyone show me how to include the rec number into the table as a hiden field? Thanks,
Hal
Bernhard Woditschka
Ranch Hand

Joined: Sep 16, 2002
Posts: 89
What do you need this field for? The primary key (i.e. flight number) should be enough to rcognize the entry in the flight table.
Bern
[ January 18, 2003: Message edited by: Bernhard Woditschka ]
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

Can anyone show me how to include the rec number into the table as a hiden field?

You don't want to do this. Conceptially, JTable is just a rendering tool to display the data. It should know nothing about the underlying mechanisms of where and how this data is stored. This is a universal OO principle of separating responsibilities among the appropriate objects/classes/components .
Eugene.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Hiden field in JTable
 
It's not a secret anymore!