Show Bid Request
New Sorting Objects
Bid Request Id: 32932
|
|
|
Description:
reading data from text file
sorting objects instead of numbers
more pull down menus
inheritance
action handling
exceptions
full javadocs
and a few modifications to the code provided.
Deliverables: Document the following:
Comment all the methods in all classes, have them package or public accessible.
Comment any new fields, use protected access.
Add one sentence description for all inner classes if you have any.
Generate Javadocs for all non-private methods and fields.
Give your design in a Javadoc that describes all public and protected interfaces. Make all the methods you write protected and your fields that your children do not need access to private. This way you can generate a Javadocs which describes all you methods and only a subset of the fields.
Document your new classes (action handlers, dialog boxes, etc).
Use clear variable, method and class names. Do not use magic numbers. Comment all code blocks. Beautify your code. Indent correctly, do not exceed 90 characters per line, have spaces around arithmetic and logic operators, etc.
Modify Look and Feel
1. Change title on JFrame to "Object Sorting by Bob" . Remove button panel.
2. Add pull down menus to the application. Use the notepad approach. The root menu should have:
File, Look and Feel,Sort, Stop, Algorithm
File - List of four data files. Look and Feel - 1. Set speed. Have the three speeds as a submenu. 2.Select which fields to graph (X, Y, Z) using check boxes. The user can graph one, two or all the attributes.
Sort - select the attribute on which you sort (what the compareTo() will compare) and start sorting 1.X 2.Y 3.Z
4. Stop - stop sorting
5. Algorithm - select sort algorithm 1. List sort algorithms
Note: X, Y, and Z are attributes of an object of the SortData class. I could have just as easily called the attributes height, weight, and age and the class EmployeeRecord 3. Associate an action with each menu item. Each action shall print an identifying message to System.out. (The following examples include code to construct a toolbar. Because of this the constructor includes an ImageIcon. You can leave that formal parameter out.)
Use an abstract action created with an inner class as below
//first button and menu item Action leftAction = new AbstractAction("Go left", new ImageIcon(getURL("./images/left.gif"))) { public void actionPerformed(ActionEvent e) { /////////////////////////////////////// // place your code here to handle the action ////////////////////////////////////// } }; // construct button for toolbar button = toolBar.add(leftAction); button.setText(""); //an icon-only button button.setToolTipText("This is the left button"); // add item to menu menuItem = mainMenu.add(leftAction); menuItem.setIcon(null); //arbitrarily chose not to use icon in menu
or create a class and instantiate
class FindAction extends AbstractAction { CustomDialog customDialog;
FindAction(ImageIconicon) { // sets NAME field do action can be identified super("Find", icon); }
public void actionPerformed(ActionEvent e) { // place your code here to handle the action } }
Action findAction = new FindAction( getURL("./images/find.gif")); // construct button for toolbar button = toolBar.add(findAction ); button.setText("Find"); button.setToolTipText("Find me some text");
// add item to menu menuItem = mainMenu.add(findAction );
1 - Implement a status bar using the example at The Swing Connection (http://java.sun.com/products/jfc/tsc/articles/actions/) to display the current actions. 2 - Implement a file chooser as in Notepad or in How to Use File Choosers (http://java.sun.com/docs/books/tutorial/
Platform:
Java
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Oct 29, 2002 10:04:29 PM EDT
|
10
(Excellent)
|
|
|
I will enjoy doing it |
|
|
|
|
|