*/
public class MonitorAction extends AbstractAction {
public MonitorAction() {}
public void actionPerformed(ActionEvent e) {
if (memoryMonitorFrame == null) {
memoryMonitorFrame = new MemoryMonitor();
Rectangle fr = getBounds();
Dimension md = memoryMonitorFrame.getSize();
memoryMonitorFrame.setLocation(fr.x + (fr.width - md.width) / 2,
fr.y + (fr.height - md.height) / 2);
}