Kamis, 05 November 2009

Gui Robot Pemrograman IV

package  gui;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import latih.*;
import java.util.Random;

public class guiRobot extends JPanel implements KeyListener, ActionListener{
Icon iconStart = new ImageIcon ("side_arrow.gif");
Icon iconStop = new ImageIcon ("stop.gif");
Icon iconRight = new ImageIcon ("next.gif");
Icon iconUp = new ImageIcon ("up.gif");
Icon iconDown = new ImageIcon ("down.gif");
Icon iconPrev = new ImageIcon ("prev.gif");
Icon iconAcak = new ImageIcon ("directional.gif");
Icon gambar = new ImageIcon("Cross.gif");
Timer timer;
String digit;
JTextArea txPosisi = new JTextArea();
JLabel lbWaktu = new JLabel("00:00");
JButton btLeft = new JButton(iconPrev);
JButton btRight = new JButton(iconRight);
JButton btUp = new JButton(iconUp);
JButton btDown = new JButton(iconDown);
JButton btAcak = new JButton(iconAcak);
JButton btStart = new JButton(iconStart);
JButton btStop = new JButton(iconStop);

Related Posts Plugin for WordPress, Blogger...