Create a gui front end for your bubble sort program

Assignment Help JAVA Programming
Reference no: EM13941772

Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user (assume the user will not input duplicates).

Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.

Create a GUI front end for your bubble sort program. The result should look something like that presented in Figure 1. You may use any graphic element to create your display - JOptionPanes are the easiest and most basic tools available to you, but you may also experiment with additional GUI controls such as JFrames, JPanels, etc. I would advise you to use objects from the Swing library (those objects begin with 'J') as opposed to objects from the AWT library - Swing objects are a little easier to use and are ultimately more flexible and robust than AWT objects.

In the example below, there are 10 text fields on a JFrame background to allow input of array elements (remember that for each text field you must press the carriage return key to invoke the listener). When the array has been populated, we press the start button, at which point the given array is output as a label. We then sort the result and output the sorted array.

Hint: Do not attempt to make the GUI too sophisticated. Just concentrate on producing a working result (although sound programming techniques should still be applied).

2184_pp.png

Figure 1: Bubble sort GUI (partial example)

Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.

As with all programs I write, I should provide a well-structured solution that is easy to read. I should use meaningful identifier names and I should provide useful comments.

Reference no: EM13941772

Questions Cloud

Ferraris of work design : Edwin Lawler, Management Professor at the University of Southern California, states, "Teams are the Ferraris of work design. They're high performance but high maintenance and expensive." Do you agree? Why or why not?
Drawbacks or risks of living in flat world of globalisation : What would be some of the key drawbacks or risks of living in the flat world of Globalisation 3.0 as Friedman describes it?
Creating a gui front end for a pizza ordering program : Kindly remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Please remember also that by convention, class names commence with a capital letter.
Applied or theoretical concept of e-business : Your essay will address an applied or theoretical concept of e-business.. The suggested length is approximately 3-4 pages
Create a gui front end for your bubble sort program : Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user (assume the user will not input duplicates).
Describing the legal and ethical issues tied to the case : Research an organization that has had a lawsuit filed against them for wrongful termination. Write a 350-word summary describing the legal and ethical issues tied to the case
Summary on the importance of employee rights : Select the best actions to take. Write a 350-word summary on the importance of employee rights
How do native americans accept the dawes act : How do Native Americans accept the Dawes Act? What are their primary issues or complaints concerning the act and what is the final impact of the Dawes Act on Indian populations?
Johnstone company manufactures two products : Johnstone Company manufactures two products, Board 12 and Case 165. Johnstone's overhead costs consist of setting up machines, $1,600,000; machining, $3,600,000; and inspecting, $1,200,000.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Assignment 2 descriptionyou are a mighty warrior and armed

assignment 2 descriptionyou are a mighty warrior and armed with your trusty bow and 3 arrows you enter the caves in

  Changed to value-receiving and value-returning

The methods are to be changed to value-receiving, value-returning and a combination thereof. Therefore, when you call these methods make sure you send the correct arguments and properly process the value that is returned.

  Write a java application that calculates the internet cost

Write a java application that calculates and displays the internet cost and GST (10% Goods & Services Tax) for N customers. N should be declared as a constant and it should be equal to the largest digit of your student ID number.

  Write a java servlet to validate the data

Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.

  Modify the numbers guessing game program

Modify the numbers guessing game program. Suppose that the variable num and guess are as declared and the diff is an int variable.

  Implementation of memory management

Implementation of memory management

  Pacman style game with clara

The major assignment involves producing a Pacman style game with Clara using the Greenfoot files that are given to you.

  1obtaining the new script download and save the attached

1.obtaining the new script download and save the attached comment cgi mailer script form-mail.pl to your servers

  Write a bag class with a generic type

Write a Bag class with a generic type. Write a class such as item that has a name and price - Add objects of item to the bag and find the average and the total of the price of all items in the bag.

  Program that translates a letter grade into a number grade

Write a Java program that translates a letter grade into a number grade

  Determine the decision of java

Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..

  Concepts of polymorphism

This lab introduces students to the concepts of polymorphism, early binding, late binding, abstract classes, and virtual class functions. This will be done in the context of performing calculations on basic geometrical shapes

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd