Skip to content

Commit

Permalink
JActionList do not create Model by itself
Browse files Browse the repository at this point in the history
The ActionModel is useful to other classes.
Initialize it from somewhere else so that
it is not bond to JActionList directly.
  • Loading branch information
walkingice committed Dec 12, 2012
1 parent 712ea80 commit 735f182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/zeroxlab/aster/JActionList.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public String getUIClassID() {

protected ActionListModel model;

public JActionList() {
this.model = new DefaultActionListModel();
public JActionList(ActionListModel model) {
this.model = model;
this.updateUI();
}

Expand Down

0 comments on commit 735f182

Please sign in to comment.