title: display a label after the Button is clicked in Java swing
body: <p>I want to display a label, when a button is clicked. I am using Eclipse Juno. I have the label added and  setting the visible part...</p>
  
  <pre><code>wLabel = new JLabel("YOu and Me");
      wLabel .setVisible(false);
      wLabel .setBounds(80, 35, 100, 25);
      wLabel .setFont(new Font("Meiryo", Font.PLAIN, 9));
      wLabel .setForeground(new Color(255, 102, 21));
      add(wLabel);
  </code></pre>
  
  <p>the button</p>
  
  <pre><code>wButton = new JButton("W");
      wButton .setActionCommand("myButton");
      wButton .addActionListener(this);
      wButton .setFont(new Font("Meiryo UI", Font.PLAIN, 11));
      wButton .setBounds(10, 33, 70, 35);
      wButton .setBackground(new Color(102, 51, 20));
      add(wButton);
  </code></pre>
  
  <p>and here is the actionPerformed. I already implemented ActionListener</p>
  
  <pre><code>public void actionPerformed(ActionEvent e) {
      // TODO Auto-generated method stub
      if (e.getActionCommand().equals("myButton")) {
          wLabel.setVisible(true);
  
      }
  }
  </code></pre>