Help Needed! Trying to display my output from one class in the GUI TextArea!

well i am trying to create a GUI for my insertion sort code

The code was originally created in BlueJ and then imported each class to Netbeans in order to make a GUI.


Basically The code when implemented, asks the user to enter their required size of the array, which i want displayed in my GUI and then a range for the array to be sorted also which i want displayed in my GUI, the code then randomly generates numbers within the required size, and then insertion sort is implemented and then displays the before list and after list which i want to be displayed?


my Code:

[ Binary Class]

////////////////////////////////////////////////////////////////////////////////
////////////////// Insertion Sort Algorthim ////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

import java.io.*; //java input/output


public class InsertionSort //class name

////////////////////////////////////////////////////////////////////////////////
////////////////// Constructor ////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

{
public static void main(String[] args) throws IOException //constructor
{

////////////////////////////////////////////////////////////////////////////////
////////////////// Variables //////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

String inputa = "";
String inputb = "";

////////////////////////////////////////////////////////////////////////////////
////////////////// System Message Print ///////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

System.out.println("Enter the AMOUNT of integers for the array: ");
InputStreamReader converter = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(converter);
System.out.println("");
//message to print

inputa = in.readLine();
int r = Integer.parseInt(inputa);
System.out.println("Enter the RANGE of integers for the array: ");
System.out.println("");
inputb = in.readLine();
int t = Integer.parseInt(inputb);
System.out.println("");
//this shows the message on the interface and allows the user to enter a number for the range

int[] a = ArrayUtil.randomIntArray(r,t);
ArrayUtil.print(a);
SortingProcess sorter = new SortingProcess(a);
sorter.sort();
ArrayUtil.print(a);
System.out.println("");
//this shows the list of random numbers and the sorted list on the interface

////////////////////////////////////////////////////////////////////////////////
////////////////// Running Time of Algorithm ///////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

long StartTime, EndTime, ElapsedTime;
StartTime=System.nanoTime();
sorter.sort();
EndTime=System.nanoTime(); //the time after the run
ElapsedTime= EndTime- StartTime; //calculates the difference between time after run and start
System.out.println("InsertionSort Algorithm running time (ns): " + ElapsedTime +"ns"); //this prints the time

long StartTime1, EndTime1, ElapsedTime1;
StartTime1=System.currentTimeMillis();
sorter.sort();
EndTime1=System.currentTimeMillis(); //the time after the run
ElapsedTime1= EndTime1- StartTime1; //calculates the difference between time after run and start
System.out.println("InsertionSort Algorithm running time (ms): " + ElapsedTime1 +"ms"); //this prints the time
//this shows the time taken for the list to be sorted
}
}

////////////////////////////////////////////////////////////////////////////////
////////////////// End of Insertion Sort Algorthim //////////////////////////
/////////////////////////////////////////////////////////////////////////////////


[SortingProcess Class]

public class SortingProcess //contructors the insertion sorter
{

public SortingProcess(int[] anArray)//constructor
{
a = anArray; //intialises 'a' to get the list of array
}

private int minimumPosition(int from)
{
int minPosition = from; //finds the smallest element in the array
for (int u = from + 1; u < a.length; u++) //compares the first position in a array
if (a[u] < a[minPosition]) minPosition = u;
return minPosition; //returns the position of the smallest element in the array
}

public void sort()
{
for (int u = 0; u < a.length - 1; u++)
{
int minPosition = minimumPosition(u);
swap(minPosition, u);
//this code swaps/sorts the 2 values and puts them in position
}
}

private void swap(int u, int s)
{
int temp = a[u]; //swaps two figures in the array
a[u] = a[s]; //u is the first position

a[s] = temp; //s is the second position
}

private int[] a;
}

[RandomInteger Class]

import java.io.*; //input/output
import java.util.Random;
import java.util.LinkedHashSet;

////////////////////////////////////////////////////////////////////////////////
////////////////// RandomInteger ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

class RandomInteger{

private int size; //size of the random list
private int number; //quantity of the random list

public void Random(int y, int z){
int[] a = new int[y];
Random gen = new Random();
LinkedHashSet lhs = new LinkedHashSet();

int i;
do{
for(i=0; i<a.length; i++){
a[i] = gen.nextInt(z) + 1;
lhs.add(new Integer(a[i]));
//generates a random list of numbers to be sorted by the sorting process
}
}
while(lhs.size() < y);
System.out.println(lhs);
}}

[ ArrayUtil Class]

import java.util.Random;
////////////////////////////////////////////////////////////////////////////////
////////////////// ArrayUtil //////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

public class ArrayUtil {

////////////////////////////////////////////////////////////////////////////////
////////////////// Random Integer Generation ///////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

public static int[] randomIntArray(int length, int n)
{int[] a = new int[length];
Random gen = new Random(); //creates/generates an array filled with random numbers

////////////////////////////////////////////////////////////////////////////////
////////////////// Array Length ////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

for (int i = 0; i < a.length; i++) //length of array
a[i] = gen.nextInt(n); //n is the num of possible random values, generates the next num
return a; //return a array
}

////////////////////////////////////////////////////////////////////////////////
////////////////// Print Array /////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

public static void print(int[] a)
{
for (int i = 0; i < a.length; i++)
System.out.print(a[i] + " "); //prints all the elements in an array
System.out.println();
}
}

////////////////////////////////////////////////////////////////////////////////
////////////////// End ArrayUtil ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


AND MY GUI So FAR: (From NetBeans)



public class InsertionStart extends javax.swing.JFrame{
TextArea AmountInput = new TextField();
TextArea RangeInput = new TextField();
TextArea ShowCode = new TextField();
TextArea ShowCode2 = new TextField();
Button Ok = new Button();
Button Quit = new Button();
}
/** Creates new form InsertionStart */

public InsertionStart() {
initComponents();



// }

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();
Quit = new javax.swing.JButton();
About = new javax.swing.JButton();
Amount = new javax.swing.JLabel();
Range = new javax.swing.JLabel();
Enter = new javax.swing.JButton();
Range1 = new javax.swing.JLabel();
Range2 = new javax.swing.JLabel();
Range3 = new javax.swing.JLabel();
ShowCode2 = new javax.swing.JTextField();
ShowCode3 = new javax.swing.JTextField();
Range4 = new javax.swing.JLabel();
RangeInput = new javax.swing.JScrollPane();
try {
jTextArea2 =(javax.swing.JTextArea)java.beans.Beans.instantia te(getClass().getClassLoader(), "InsertionStart_jTextArea2");
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (java.io.IOException e) {
e.printStackTrace();
}
jScrollPane5 = new javax.swing.JScrollPane();
jTextArea5 = new javax.swing.JTextArea();
jScrollPane6 = new javax.swing.JScrollPane();
DisplayUnsorted = new javax.swing.JTextArea();
jScrollPane1 = new javax.swing.JScrollPane();
AboutCode = new javax.swing.JTextPane();
jScrollPane2 = new javax.swing.JScrollPane();
AboutCode1 = new javax.swing.JTextPane();
jScrollPane3 = new javax.swing.JScrollPane();
AboutCode2 = new javax.swing.JTextPane();
jScrollPane4 = new javax.swing.JScrollPane();
AboutCode3 = new javax.swing.JTextPane();
RangeInput1 = new javax.swing.JScrollPane();
AmountInput = new javax.swing.JTextArea();

setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
setAlwaysOnTop(true);
setBackground(new java.awt.Color(0, 0, 0));
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setForeground(java.awt.Color.white);
setName("Form"); // NOI18N
setResizable(false);

jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Insertion Sort Algorithm");
jLabel1.setName("jLabel1"); // NOI18N

Quit.setText("Quit");
Quit.setName("Quit"); // NOI18N
Quit.addActionListener(this);

About.setText("About");
About.setHorizontalAlignment(javax.swing.SwingCons tants.LEADING);
About.setHorizontalTextPosition(javax.swing.SwingC onstants.CENTER);
About.setInheritsPopupMenu(true);
About.setName("About"); // NOI18N
About.addActionListener(this);

Amount.setForeground(new java.awt.Color(255, 255, 255));
Amount.setText("Enter AMOUNT of Integers in Array:");
Amount.setName("Amount"); // NOI18N

Range.setForeground(new java.awt.Color(255, 255, 255));
Range.setText("Enter Range of Integers in Array:");
Range.setName("Range"); // NOI18N

Enter.setText("Enter");
Enter.setName("Enter"); // NOI18N
Enter.addActionListener(this);

Range1.setForeground(new java.awt.Color(255, 255, 255));
Range1.setText("Unsorted Array:");
Range1.setName("Range1"); // NOI18N

Range2.setForeground(new java.awt.Color(255, 255, 255));
Range2.setText("Sorted Array:");
Range2.setName("Range2"); // NOI18N

Range3.setForeground(new java.awt.Color(255, 255, 255));
Range3.setText("InsertionSort Running Time (ns):");
Range3.setName("Range3"); // NOI18N

ShowCode2.setEditable(false);
ShowCode2.setName("ShowCode2"); // NOI18N
ShowCode2.addActionListener(this);

ShowCode3.setEditable(false);
ShowCode3.setName("ShowCode3"); // NOI18N
ShowCode3.addActionListener(this);

Range4.setForeground(new java.awt.Color(255, 255, 255));
Range4.setText("InsertionSort Running Time (ms):");
Range4.setName("Range4"); // NOI18N

RangeInput.setName("RangeInput"); // NOI18N
RangeInput.setViewportView(jTextArea2);

jScrollPane5.setName("jScrollPane5"); // NOI18N

jTextArea5.setColumns(20);
jTextArea5.setEditable(false);
jTextArea5.setRows(5);
jTextArea5.setName("jTextArea5"); // NOI18N
jScrollPane5.setViewportView(jTextArea5);

jScrollPane6.setName("jScrollPane6"); // NOI18N

DisplayUnsorted.setColumns(20);
DisplayUnsorted.setEditable(false);
DisplayUnsorted.setRows(5);
DisplayUnsorted.setName("DisplayUnsorted"); // NOI18N
jScrollPane6.setViewportView(DisplayUnsorted);

jScrollPane1.setBorder(null);
jScrollPane1.setName("jScrollPane1"); // NOI18N

AboutCode.setBackground(new java.awt.Color(0, 0, 0));
AboutCode.setBorder(null);
AboutCode.setEditable(false);
AboutCode.setForeground(new java.awt.Color(255, 255, 255));
AboutCode.setName("AboutCode"); // NOI18N
jScrollPane1.setViewportView(AboutCode);

jScrollPane2.setName("jScrollPane2"); // NOI18N

AboutCode1.setBackground(new java.awt.Color(0, 0, 0));
AboutCode1.setBorder(null);
AboutCode1.setForeground(new java.awt.Color(255, 255, 255));
AboutCode1.setName("AboutCode1"); // NOI18N
jScrollPane2.setViewportView(AboutCode1);

jScrollPane3.setBorder(null);
jScrollPane3.setName("jScrollPane3"); // NOI18N

AboutCode2.setBackground(new java.awt.Color(0, 0, 0));
AboutCode2.setBorder(null);
AboutCode2.setForeground(new java.awt.Color(255, 255, 255));
AboutCode2.setName("AboutCode2"); // NOI18N
jScrollPane3.setViewportView(AboutCode2);

jScrollPane4.setName("jScrollPane4"); // NOI18N

AboutCode3.setBackground(new java.awt.Color(0, 0, 0));
AboutCode3.setBorder(null);
AboutCode3.setForeground(new java.awt.Color(255, 255, 255));
AboutCode3.setName("AboutCode3"); // NOI18N
jScrollPane4.setViewportView(AboutCode3);

RangeInput1.setName("RangeInput1"); // NOI18N

AmountInput.setColumns(20);
AmountInput.setRows(5);
AmountInput.setName("AmountInput"); // NOI18N
AmountInput.addInputMethodListener(this);
RangeInput1.setViewportView(AmountInput);

org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap(611, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(Range1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap(24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, Range2)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
.add(jScrollPane4)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane3)
.add(jScrollPane2)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 181, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(75, 75, 75)
.add(About)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(Quit)
.add(49, 49, 49)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
.add(org.jdesktop.layout.GroupLayout.TRAILING, ShowCode2)
.add(org.jdesktop.layout.GroupLayout.TRAILING, ShowCode3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.TRAILING, Range4)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(Range3))))
.add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 685, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(jLabel1)
.add(layout.createSequentialGroup()
.add(24, 24, 24)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.TRAILING)
.add(Amount)
.add(RangeInput1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 264, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(56, 56, 56)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, Range)
.add(org.jdesktop.layout.GroupLayout.TRAILING, RangeInput, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 264, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
.add(104, 104, 104))
.add(layout.createSequentialGroup()
.addContainerGap(636, Short.MAX_VALUE)
.add(Enter)))
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 685, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
.add(25, 25, 25))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.TRAILING)
.add(layout.createSequentialGroup()
.add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(18, 18, 18)
.add(Amount)
.add(18, 18, 18)
.add(RangeInput1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED))
.add(layout.createSequentialGroup()
.add(Range)
.add(18, 18, 18)
.add(RangeInput, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.add(layout.createSequentialGroup()
.add(91, 91, 91)
.add(Enter)))
.add(31, 31, 31)
.add(Range1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(18, 18, 18)
.add(Range2)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.TRAILING)
.add(layout.createSequentialGroup()
.add(Range3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(ShowCode3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(Range4))
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING)
.add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
.add(ShowCode2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(About)
.add(Quit)))
.add(9, 9, 9)
.add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);

pack();
}

// Code for dispatching events from components to event handlers.

public void actionPerformed(java.awt.event.ActionEvent evt) {
if (evt.getSource() == Quit) {
InsertionStart.this.QuitActionPerformed(evt);
}
else if (evt.getSource() == About) {
InsertionStart.this.AboutActionPerformed(evt);
}
else if (evt.getSource() == Enter) {
InsertionStart.this.EnterActionPerformed(evt);
}
else if (evt.getSource() == ShowCode2) {
InsertionStart.this.ShowCode2ActionPerformed(evt);
}
else if (evt.getSource() == ShowCode3) {
InsertionStart.this.ShowCode3ActionPerformed(evt);
}
}

public void caretPositionChanged(java.awt.event.InputMethodEve nt evt) {
}

public void inputMethodTextChanged(java.awt.event.InputMethodE vent evt) {
if (evt.getSource() == jTextArea2) {
InsertionStart.this.jTextArea2InputMethodTextChang ed(evt);
}
else if (evt.getSource() == AmountInput) {
InsertionStart.this.AmountInputInputMethodTextChan ged(evt);
}
}// </editor-fold>

private void QuitActionPerformed(java.awt.event.ActionEvent evt) {
// Exit the System.
System.exit(0);
}

private void EnterActionPerformed(java.awt.event.ActionEvent evt) {

}

private void AboutActionPerformed(java.awt.event.ActionEvent evt) {
AboutCode.setText(" Insertion Sort Algorithm");
AboutCode1.setText(" Created by Sachin Parmar");
AboutCode2.setText(" CS2011 - Mr Zidong Wang");
AboutCode3.setText(" Created 16th Sept 2009");
}

private void ShowCode2ActionPerformed(java.awt.event.ActionEven t evt) {
// TODO add your handling code here:
InputStreamReader converter = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(converter);
String inputa = null;
try {
inputa = in.readLine();
} catch (IOException ex) {
Logger.getLogger(InsertionStart.class.getName()).l og(Level.SEVERE, null, ex);
}
int r = Integer.parseInt(inputa);


}

private void ShowCode3ActionPerformed(java.awt.event.ActionEven t evt) {
// TODO add your handling code here:

}

private void AmountInputInputMethodTextChanged(java.awt.event.I nputMethodEvent evt) {
// TODO add your handling code here:
String inputa = "";

}

private void jTextArea2InputMethodTextChanged(java.awt.event.In putMethodEvent evt) {
String inputb="";
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new InsertionStart().setVisible(true);
}
});
}

// Variables declaration - do not modify
javax.swing.JButton About;
javax.swing.JTextPane AboutCode;
javax.swing.JTextPane AboutCode1;
javax.swing.JTextPane AboutCode2;
javax.swing.JTextPane AboutCode3;
javax.swing.JLabel Amount;
javax.swing.JTextArea AmountInput;
javax.swing.JTextArea DisplayUnsorted;
javax.swing.JButton Enter;
javax.swing.JButton Quit;
javax.swing.JLabel Range;
javax.swing.JLabel Range1;
javax.swing.JLabel Range2;
javax.swing.JLabel Range3;
javax.swing.JLabel Range4;
javax.swing.JScrollPane RangeInput;
javax.swing.JScrollPane RangeInput1;
javax.swing.JTextField ShowCode2;
javax.swing.JTextField ShowCode3;
javax.swing.JLabel jLabel1;
javax.swing.JScrollPane jScrollPane1;
javax.swing.JScrollPane jScrollPane2;
javax.swing.JScrollPane jScrollPane3;
javax.swing.JScrollPane jScrollPane4;
javax.swing.JScrollPane jScrollPane5;
javax.swing.JScrollPane jScrollPane6;
javax.swing.JTextArea jTextArea2;
javax.swing.JTextArea jTextArea5;
// End of variables declaration

}



AND OVERALL IT DOESNT WORK....so ive been struggling to make this work! any help is appriciated!

many thanks sachin