Skip to content

Commit

Permalink
Add basic about msg
Browse files Browse the repository at this point in the history
  • Loading branch information
walkingice committed Aug 19, 2011
1 parent 152bb9d commit bc0a250
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/org/zeroxlab/aster/AsterMainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,20 @@ public void actionPerformed(ActionEvent ev) {
group.add(rb);
viewMenu.add(rb);
menu.add(viewMenu);

JMenu helpMenu = new JMenu("Help");
helpMenu.setMnemonic(KeyEvent.VK_H);
// About
JMenuItem aboutItem = new JMenuItem();
aboutItem.setAction(new AbstractAction() {
public void actionPerformed(ActionEvent ev) {
JOptionPane.showMessageDialog(null, new AboutMsg());
}
});
aboutItem.setText("About");
aboutItem.setMnemonic(KeyEvent.VK_A);
helpMenu.add(aboutItem);
menu.add(helpMenu);
return menu;
}

Expand Down Expand Up @@ -367,6 +381,17 @@ public void actionPerformed(ActionEvent e) {
}
}

class AboutMsg {
public String toString() {
String msg = "";
msg += "Android System Testing Environment and Runtime\n";
msg += "Designed by 0xLab\n\n";
msg += "Aster is a testing environment and\n";
msg += "test-driven development runtime for Android. ";
return msg;
}
}

class MyListener implements FillListener {
public void commandFilled(AsterCommand whichOne) {
mActionList.getModel().trigger();
Expand Down

0 comments on commit bc0a250

Please sign in to comment.