File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Implementing GUI 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 "Implementing GUI" Watch "Implementing GUI" New topic

Implementing GUI

Samual Harvey
Ranch Hand

Joined: Aug 06, 2002
Posts: 119
While implementing GUI should we use the sample TableMap and TableSorter code from java to implement JTable sorting feature?

Samual Harvey<br />SCJP2<br />SCJD2
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Samual,
Well I had sorting in my table, but I developed my own code. I don't think it is necessary to have sorting but it won't hurt either. So it's your call.
Hope this helps,
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

I'd skip the sorting, not necessary to get a perfect score.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ray Cheeny
Ranch Hand

Joined: Aug 21, 2002
Posts: 74
When I design the GUI ,I use the ComboBox for user to choose the origin and dest.But need I get the item(such as sfo,lhr ) from the RemoteData or just write it directly.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Ray,
I would say you probably need to pull it from the db and not assume the list of airports will be constant. I used a Set to hold each criterion for the search mechanism. Everytime the table data was updated, the new data was sent to these Sets and added, keeping them up to date.
Hope this helps,
Michael Morris
I agree. Here's the link:
subject: Implementing GUI
It's not a secret anymore!