@Override
	public void actionPerformed(ActionEvent e) {

		if (this.containsDigit(e.getActionCommand())) {
			for (JInternalFrame ji : this.desktop.getAllFrames()) {
				if ((ji.getTitle()).equals(e.getActionCommand())) {
					ji.moveToFront();
					break;
				}
			}
		} else if ("new".equals(e.getActionCommand())) { // new
			this.createFrame();
		} else if ("quit".equals(e.getActionCommand())) {
			this.quit();
		}
	}