File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S GUI like the Microsoft Excel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S GUI like the Microsoft Excel " Watch "B&S GUI like the Microsoft Excel " New topic
Author

B&S GUI like the Microsoft Excel

William Silva
Greenhorn

Joined: Jul 24, 2003
Posts: 23
Hi,
Is it ok to make the GUI like the Microsoft Excel ?
It would be only with a editable JTable (Remove, Add, Update) and a menu with this options plus a search menuItem.

Thanks.


-----------------------<br />William W Silva<br />SCJP<br />SCWCD<br />SCBCD
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11479
    
  94

Hi William,

It is possible - might be a bit more complex than you really want to implement though.

Check your instructions - you may not be required to have create or delete functionality in your GUI - removing them could simplify your GUI.

Having a large, editable table implies that a user might be able to book multiple records simultaneously - it is usually simpler to only allow a single record to be updated.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
William Silva
Greenhorn

Joined: Jul 24, 2003
Posts: 23
Hi Andrew,
My specification says :
" - It must be composed exclusively with components from the Java Foundation Classes (Swing components).
- It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
- It must present search results in a JTable.
- It must allow the user to book a selected record, updating the database file accordingly"

I must provide a search, present the results in a JTable, and the user can select one record and book it ? Only this ? No delete, no create and no "unbook" ?

Thanks.
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
I must provide a search, present the results in a JTable, and the user can select one record and book it ? Only this ? No delete, no create and no "unbook" ?
Yep. That's it. Sun only requires a very simple GUI for the assignment.


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: B&S GUI like the Microsoft Excel