gf3
asked on
different actionPerformed() for a button
Hi there, I'm fairly new to java and i need some help. I have a TextFiled and a Button and i want eh buton to do a different actionPerformed than the TextField. How would I go about doing that? Here was my random try but it didnt work! :(
//Buttons
clear = new Button("Clear");
clear.addActionListener( new ComponentAdapter() {
public void actionPerformed (ActionEvent ae) {
//TextArea Clear
recv.setText("");
}
});
add(clear, "East");
thanks in advance,
gf3
gf3@bm3.org
//Buttons
clear = new Button("Clear");
clear.addActionListener( new ComponentAdapter() {
public void actionPerformed (ActionEvent ae) {
//TextArea Clear
recv.setText("");
}
});
add(clear, "East");
thanks in advance,
gf3
gf3@bm3.org
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
8-)
ASKER