Skip to content

Commit 880d947

Browse files
committed
re design History UI and undoRedoDialog
1 parent 31110ae commit 880d947

2 files changed

Lines changed: 2 additions & 24 deletions

File tree

src/ui/helper/historyui/HistoryUI.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,6 @@ protected void addButtons(CustomJButton b){
100100
//getButton_panel().repaint();
101101
}
102102

103-
104-
protected void setButtons(String[] titles){
105-
// add small JPanel for buttons
106-
107-
108-
//loop through arr and add buttons
109-
for (String title : titles){
110-
JButton button = new JButton(title);
111-
getButton_panel().add(button);
112-
getButtonArray().add(button);
113-
button.setEnabled(false);
114-
button.addActionListener(new ActionListener() {
115-
116-
@Override
117-
public void actionPerformed(ActionEvent e) {
118-
delegate.didPressButton(title, getResultsTable().getSelectedRow());
119-
}
120-
});
121-
}
122-
}
123-
124-
125103
protected void setSelectionMode(){
126104
getResultsTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
127105
}

src/ui/helper/historyui/undoredoLog/UndoredoDialog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ public void didPressButton(String buttonName, int selectedRow) {
113113
}
114114

115115
/**
116-
* disable undoButton when there is no actions to be undo
117-
* disable redoButton when there is no actions to be redo
116+
* disable undoButton when there is no actions to undo
117+
* disable redoButton when there is no actions to redo
118118
*/
119119
public void updateButtonStatus(){
120120
if(getIndex() == -1 || getNumRow() == 0){

0 commit comments

Comments
 (0)