title: Java making a label move?
body: <p>I made a calculator and once I get my answer i want the label <code>l4</code> to move around the screen continuously. Can anyone show me how to make it move because I cant figure it out.  </p>
  
  <pre><code>import java.awt.*;
  import java.awt.event.*;
  import java.awt.Label;
  import java.awt.Font;
  import javax.swing.*;
  
  class DanielCalculator implements ActionListener {
  
  Timer t = new Timer(5, this);
  int x = 300;
  int y = 50;
  DanielCalculatorFrame f = new DanielCalculatorFrame();
  Label l1 = new Label("First Number");
  Label l2 = new Label("Second Number");
  Label l3 = new Label("Result: ");
  TextField t1 = new TextField();
  TextField t2 = new TextField();
  Label l4 = new Label("0");
  Button b1 = new Button("Add");
  Button b2 = new Button("Subtract");
  Button b3 = new Button("Multiply");
  Button b4 = new Button("Divide");
  DanielCalculator()
  {
      l1.setBounds(20, 70, 100, 20);
      l2.setBounds(240, 70, 100, 20);
      l3.setBounds(70, 168, 100, 50);
      t1.setBounds(120, 70, 100, 20);
      t2.setBounds(360, 70, 100, 20); 
      b1.setBounds(230, 130, 50, 20); //3
      b2.setBounds(330, 130, 50, 20); //4
      b3.setBounds(30, 130, 50, 20);  //1
      b4.setBounds(130, 130, 50, 20); //2
      f.add(l1);
      f.add(l2);
      f.add(l3);
      f.add(t1);
      f.add(t2);
      f.add(l4);
      f.add(b1);
      f.add(b2);
      f.add(b3);
      f.add(b4);
      b1.addActionListener(this);
      b2.addActionListener(this);
      b3.addActionListener(this);
      b4.addActionListener(this);
      f.setLayout(null);
      f.setVisible(true);
      f.setSize(600,450);
      Font myFont = new Font("Serif",Font.BOLD,26);
      l4.setFont(myFont);
      l3.setFont(myFont);
      l4.setBounds(200, 170, x, y);
  }
  public void actionPerformed(ActionEvent e)
  {
      double continuee;
      Double n1=Double.parseDouble(t1.getText());
      Double n2=Double.parseDouble(t2.getText());
      if(e.getSource() == b1) {
          l4.setText(String.valueOf(n1+n2));\
      }
      if(e.getSource() == b2) {
          l4.setText(String.valueOf(n1-n2));
      }
      if(e.getSource() == b3) {
          l4.setText(String.valueOf(n1*n2));
      }
      if(e.getSource() == b4) {
          l4.setText(String.valueOf(n1/n2));
      }
  
  
  }
  public static void main (String[] args) {
      new DanielCalculator();
      }   
  }
  </code></pre>