Java DropDown Menu Value Selection
<p>I have a drop down menu in java with 3 options and right next to it a run button.
I am using eclipse in java and using apache wicket and html to run the program in a web browser. my question is, if i choose print data from the drop down and click on the run button it should print printing successful in the console. i have tried various methods, and its compiling but just not showing me the message that it should do according to the system.out.println statement.</p>

<pre><code>    Button b = new Button("Ausführen");
    b.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e) {
        if(role.getValue().equals("Print Data")) {
          System.out.println("Printing successfull!");
        }
      }

    });

    form.add(b);
</code></pre>

<p>any ideas why?</p>
