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

  Write a fraction class called fraction.java

Write a Fraction class called Fraction.java that implements these methods: add - This method receives a Fraction parameter and adds the parameter fraction to the calling object fraction. multiply - This method receives a Fraction parameter and multip..

  What is jsp and why do we need it?

What is JSP and why do we need it?

  Java program to write-read data from user using i-o function

Write java program to write and read data from user using I/O functions. Describe class with data members name[20],emp_id,basic pay,net pay.calculate all the allowances.

  Find and fix the bug that is creating the exception error

Find and fix the bug that is creating the exception error message in the program in our AVL tree implementation. Make sure to explain the bug and how to fix it.

  List data structures to be used in solution

write a program that will prompt the user for an input file name to read from. The Input file will consist of records made up of first name, last name and an account balance of individuals and store the individuals in an ArrayList.

  Write a void function this passed three integers

1. Write a void function this passed three integers by reference. The function should rearrange the parameter values so that the first parameter will get the smallest value; the second parameter the middle value; and the third parameter the largest v..

  Arguments a minimum value and a maximum value

Write a function that takes as arguments a minimum value and a maximum value and plots sin(x) from the specified minimum to the specified maximum.

  Write java program using array list object

Write a java program (using eclipse) using ArrayList object to allow the professor to enter student's name, his or her's four test scores.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Write a program in java to implement the adt binary tree

Write a program in Java to implement the ADT Binary Tree part of whose definition is given below. You are also to write a driver program that demonstrates the correctness of your implementation by way of taking a series of commands from a text fil..

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  Java graphics-write an application that extends jframe and

java graphics-write an application that extends jframe and that displays a phrase in every font size from 6 through

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