Proxim RangeLAN2 7920 Bedienungsanleitung Seite 83

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 103
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 82
68
gbcon.gridx = 3;
gbcon.gridy = 4;
gblay.setConstraints(Dcourse,gbcon);
q.add(Dcourse);
Dcourse.setEditable(true);
autonomous.add(q, BorderLayout.NORTH);
/************************ STATUS *******************************/
JLabel label9 = new JLabel(" Robot Status ");
gbcon.gridx = 0;
gbcon.gridy = 0;
gblay.setConstraints(label9, gbcon);
p.add(label9);
RobotStatus = new JTextField(25);
gbcon.gridx = 0;
gbcon.gridy = 1;
gblay.setConstraints(RobotStatus,gbcon);
p.add(RobotStatus);
RobotStatus.setEditable(false);
autonomous.add(p, BorderLayout.SOUTH);
/******************* BUTTONS ********************************************/
JButton Update = new JButton(" Update ");
gbcon.gridx = 0;
gbcon.gridy = 0;
gblay.setConstraints(RobotStatus,gbcon);
s.add(Update);
JButton Go = new JButton(" Navigate ");
gbcon.gridx = 1;
gbcon.gridy = 0;
gblay.setConstraints(RobotStatus,gbcon);
s.add(Go);
JButton StopNav = new JButton(" Stop Navigation ");
gbcon.gridx = 0;
gbcon.gridy = 3;
gblay.setConstraints(RobotStatus,gbcon);
s.add(StopNav);
Update.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent ev) {
//GET NEW HEADING, LATITUDE AND LONGITUDE
//NETWORKING for CLIENT/SERVER
try {
Headsock = new Socket("131.120.101.81", 2001);
HeadIn = new BufferedReader(new InputStreamReader(Headsock.getInputStream()));
Seitenansicht 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 102 103

Kommentare zu diesen Handbüchern

Keine Kommentare