Proxim RangeLAN2 7920 Uživatelský manuál Strana 86

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 103
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 85
71
}
);
/***********************************************************************/
/*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 */
Zobrazit stránku 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 102 103

Komentáře k této Příručce

Žádné komentáře