}
);
/***********************************************************************/
/*This section creates the Buttons which will allow the user
to choose between pre-programmed patterns. */
//PATTERN 1
JButton pattern1 = new JButton("Pattern 1");
pattern1.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent ev) {
doPattern1();
}
});
gbcon.gridx = 0;
gbcon.gridy = 1;
gblay.setConstraints(pattern1, gbcon);
s.add(pattern1);
//PATTERN 2
JButton pattern2 = new JButton("Pattern 2");
pattern2.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent ev) {
doPattern2();
}
});
gbcon.gridx = 1;
gbcon.gridy = 1;
gblay.setConstraints(pattern2, gbcon);
s.add(pattern2);
autonomous.add(s, BorderLayout.CENTER);
/************************************************************************/
/*
VideoStream vid = new VideoStream("file:SE3015.mpg");
main.add(vid, BorderLayout.SOUTH);
*/
/************************************************************************/
/* Tabs are created to display three windows: Control window, Auto window
and Status window */
Komentarze do niniejszej Instrukcji