I AM NEW INTHIS FORUM, PLEASE HELP

HI; ? I AM NEW IN THIS FORUM AND I JUST GOT MY MP3 CREATIVE ZEN MICRO... I AM HAVING A PROBLEM BECAUSE I WAS LISSTENING TO THE MUSIC, THEN IT STOPS AND NOW IS IN THE LCD IS SHOWING[color="#ff0000"] FIRMWARE PROBLEM, SO IF ANY OF YOU COULD HELP ME PLEASE... ? THANKS...

this might be one way
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Testing extends JFrame
  int[] coords = {200,150,200,150};
  Graphics g_drawPanel;
  public Testing()
    setSize(400,300);
    setLocation(200,100);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    String[] btnText = {"North","South","East","West"};
    JButton[] btn = new JButton[btnText.length];
    JPanel bottom = new JPanel();
    for(int x = 0; x < btn.length; x++)
      final int selection = x;
      btn[x] = new JButton(btnText[x]);
      btn[x].addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent ae){
          if(selection == 0) coords[3] -= 10;
          else if(selection == 1) coords[3] += 10;
          else if(selection == 2) coords[2] += 10;
          else if(selection == 3) coords[2] -= 10;
          drawOnThePanel();}});
      bottom.add(btn[x]);
    JPanel drawPanel = new JPanel();
    getContentPane().add(drawPanel,BorderLayout.CENTER);
    getContentPane().add(bottom,BorderLayout.SOUTH);
    setVisible(true);
    g_drawPanel = drawPanel.getGraphics();
  public void drawOnThePanel()
    g_drawPanel.drawLine(coords[0],coords[1],coords[2],coords[3]);
    coords[0] = coords[2];
    coords[1] = coords[3];
  public static void main(String[] args){new Testing().setVisible(true);}
}

Similar Messages

Maybe you are looking for