JAVAEOC
08-30-2004, 10:46 PM
Hi guys,
import javax.swing.*;
import BreezySwing.*;
public class StudentTestScores extends GBFrame{
JButton Submit, Shuffle;
public StudentTestScores(){
JLabel nameLabel;
JTextField nameField;
Submit = addButton ("Submit" ,1,1,1,1);
Shuffle = addButton ("Suffle" ,1,2,1,1);
for(int i=0; i<=10; i++) {
nameLabel = addLabel ("Name" ,i+2,1,1,1);
nameField = addTextField ("" ,i+2,2,1,1);
}
}
public void buttonClicked (JButton buttonObj){
if (buttonObj == Submit){};
}
public static void main (String[] args){
StudentTestScores theGUI = new StudentTestScores();
theGUI.setSize (200, 800);
theGUI.setVisible(true);
}
}
The above code is the start of one of my little projects, however I need to archive the same GUI window as the above program does, the only thing is i have to be able to refer back to all the textareas...
So how could I do that?
And How could I make everything scroll so it isnt that squeezed...
thanks guys :)
import javax.swing.*;
import BreezySwing.*;
public class StudentTestScores extends GBFrame{
JButton Submit, Shuffle;
public StudentTestScores(){
JLabel nameLabel;
JTextField nameField;
Submit = addButton ("Submit" ,1,1,1,1);
Shuffle = addButton ("Suffle" ,1,2,1,1);
for(int i=0; i<=10; i++) {
nameLabel = addLabel ("Name" ,i+2,1,1,1);
nameField = addTextField ("" ,i+2,2,1,1);
}
}
public void buttonClicked (JButton buttonObj){
if (buttonObj == Submit){};
}
public static void main (String[] args){
StudentTestScores theGUI = new StudentTestScores();
theGUI.setSize (200, 800);
theGUI.setVisible(true);
}
}
The above code is the start of one of my little projects, however I need to archive the same GUI window as the above program does, the only thing is i have to be able to refer back to all the textareas...
So how could I do that?
And How could I make everything scroll so it isnt that squeezed...
thanks guys :)