点击下拉列表改变事件,当点击改变时,设置文本框为空,给你给列子自己看看,不明白给我消息
public void jComboBox1_actionPerformed(ActionEvent e) {
String temp = this.jComboBox1.getSelectedItem().toString();
if(temp.trim().equals("文本显示,你点击了我"))
{
this.jTextArea1.setText("文本显示,你点击了我");
}else{
this.jTextArea1.setText("");
}
}
}
判断里面的值