myAddAction.setEnabled(false);
}
myDeleteAction.setEnabled(false==myListSelectionModel.isSelectionEmpty());
}
private void init() {
myAddAction = new GPAction(){
protected String getIconFilePrefix() {
return null;
}
protected String getLocalizedName() {
return getI18n("add");
}
public void actionPerformed(ActionEvent e) {
myIntervalsModel.add(new DateInterval(myStart.getValue(), myFinish.getValue()));
myListModel.update();
}
};
myDeleteAction = new GPAction() {
protected String getIconFilePrefix() {
return null;
}
protected String getLocalizedName() {
return getI18n("delete");