Menu

[Solved]Formate Output Looking Want Make Program Java Uses Window Builder Create Gui Program Also Q37115131

Browse ID Sort products.csv Sorted File Original File 3221, 2.99, iphone, smart phone 3291, 1.99, apple iphone, regular phone

This the formate of output that I am looking for. Write a program with GUI to allow the user to perform the following tasks: 1. Choose a file (by cliking on browse buttorn 2.Note: productsList is an arraylist I used to store prodcuts You will need another class that you can name it ShoppingCartGUI.

I want you to make a program in java which uses window builder,create a GUI program. I also want you to sort id, price, and namewhen the user selects.

Browse ID Sort products.csv Sorted File Original File 3221, 2.99, iphone, smart phone 3291, 1.99, apple iphone, regular phone 3210, 3.99, android iphone, agreat phone 2221, 299.99, windows iphone, better phone 6221, 0.99, blackberry iphone, super phone 1221, 17.99, nokia iphone, cool phone Write a program with GUI to allow the user to perform the following tasks: 1. Choose a file (by cliking on browse buttorn 2. Select how to sort (based on the id, price, name, or description) the data 3. There are two JtextArea in the gui. Use the Original File area to display the 4. After you sort the file dislay its content into the Sorted area, you will also se ser stored in the file. I have attaced products.csv file to test your program. original content of the file and the Sorted File area to display the sorted file need to save the sorted products into another file called sortedProducts.csv Note: use .csv extention. You will need to design a class named Product that contains name: name of the item (String) uid: unique id of the item (int) description: description of the itme (String) price: price of the item (double) mutator and accessor of name, uid, description and price toStringO method returing details on an item in the following format ” * – ” ” o uid +”” name your Produt class need to make use of Comparator interface to be able to sort using the sort method defined in the Collections class. Here is an example of how you can enable sorting the Product class based on the id description +”, ” price * public static Comparator<Product> CompareByld new Comparator<Product @Override public int compare(Product p1, Product p2) return p1.id p2.id; Here is how you would call sort method in Collections class to sort products based on their id: Note: productsList is an arraylist I used to store prodcuts You will need another class that you can name it ShoppingCartGUI. Here are some of the functionalities that this class wil have: read all items from the user’s selected file ” ” sort all items based on the user’s selected choice (id, price, name, or description) write all sorted list back to the file (sortedProducts.csv) and Sorted File text area * ” Since this is your gui, it should contain all the components and listeners. Sample Run: See attached zip file What to turn in: In eclipse create a New Java Project named PA5 Expand PA5 and under src right click and add a new package and call it (edu.century.pa5) ” * Add all the classes (Product and ShoppingCartGUI) to “edu.century.pa5” package * Right click on your project (PA5)click on “Export” -> Under “general” click on “Archive File” “Finish”. click “Browse” to specify where to store your zip click Show transcribed image text Browse ID Sort products.csv Sorted File Original File 3221, 2.99, iphone, smart phone 3291, 1.99, apple iphone, regular phone 3210, 3.99, android iphone, agreat phone 2221, 299.99, windows iphone, better phone 6221, 0.99, blackberry iphone, super phone 1221, 17.99, nokia iphone, cool phone
Write a program with GUI to allow the user to perform the following tasks: 1. Choose a file (by cliking on browse buttorn 2. Select how to sort (based on the id, price, name, or description) the data 3. There are two JtextArea in the gui. Use the Original File area to display the 4. After you sort the file dislay its content into the Sorted area, you will also se ser stored in the file. I have attaced products.csv file to test your program. original content of the file and the Sorted File area to display the sorted file need to save the sorted products into another file called sortedProducts.csv Note: use .csv extention. You will need to design a class named Product that contains name: name of the item (String) uid: unique id of the item (int) description: description of the itme (String) price: price of the item (double) mutator and accessor of name, uid, description and price toStringO method returing details on an item in the following format ” * – ” ” o uid +”” name your Produt class need to make use of Comparator interface to be able to sort using the sort method defined in the Collections class. Here is an example of how you can enable sorting the Product class based on the id description +”, ” price * public static Comparator CompareByld new Comparator Under “general” click on “Archive File” “Finish”. click “Browse” to specify where to store your zip click

Expert Answer


Answer to This the formate of output that I am looking for. I want you to make a program in java which uses window builder, creat… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *