I'm looking for some help with the below code, As far as i can gather the code for the clip board is correct as i have it working in simple Jframe and it is working right. I just cant get it to wotk on the code below, i had other methods in the action preformed, but i've taken them out so its easier to read. If any one can see the problem it would be great. The only error that i am getting is for the dimension size, but it jframe runs fine even with that.
/*int rows = 20; int cols = 30; textarea = new JTextArea("Initial Text", rows, cols);*/
public String a = "Router A"; public String b = "Router B"; public String a_b = "A-B = 20 \nA-D-B = 30 \nA-C-B = 40 \nA-C-D-B = 50 \nA-D-E-C-B = 60"; public String b_a = "B-A / B-C-A / B-D-A / B-D-E-C-A / B-C-D-E-A"; public int a_b1 = 100; public int b_a1 = 200; public int A_B = 100; public int A_D_B = 300; public int A_C_B = 250; public int A_C_D_B = 400; public int A_D_E_C_B = 500;
//set components properties b2.setToolTipText ("Allows the User to exit the Application"); b1.setToolTipText ("Returns the User to the Main Menu"); ta1.setToolTipText ("Shows a List of all Available Routes"); ta2.setToolTipText ("Progress of Routing Algorthnm"); ta3.setToolTipText ("Tells the User whats Going on"); t1.setToolTipText ("Shows the size of the E-Mail Created Earlier"); t3.setToolTipText ("The Destination of the Router");
//adjust size and set layout setPreferredSize (new Dimension (750, 480)); setLayout (null);