【发布时间】:2012-12-19 02:06:18
【问题描述】:
JButton 不会显示 SHORT_DESCRIPTION,setEnabled 也不起作用。
...
ButtonAction action = new ButtonAction();
command.addActionListener(action);
class ButtonAction extends AbstractAction{
public ButtonAction(){
putValue(Action.SHORT_DESCRIPTION, "Comnine the two value");
setEnabled(false);
}
public void actionPerformed(ActionEvent event){
}
}
【问题讨论】:
-
请编辑您的问题,在sscce 中包含您所描述的问题。