01: package tijmp.actions;
02:
03: import java.awt.event.ActionEvent;
04: import javax.swing.AbstractAction;
05: import tijmp.ProfilerHandler;
06: import tijmp.ui.MemoryInfoPanel;
07: import tijmp.ui.ShowSimpleFrame;
08:
09: /** A class that shows some memory info
10: */
11: public class MemoryInfo extends AbstractAction {
12: private static int windowId = 1;
13: private ProfilerHandler ph;
14:
15: public MemoryInfo(ProfilerHandler ph) {
16: super ("Memory info");
17: this .ph = ph;
18: }
19:
20: public void actionPerformed(ActionEvent e) {
21: MemoryInfoPanel mif = new MemoryInfoPanel(ph);
22: new ShowSimpleFrame().showFrame("Memory info " + +windowId++,
23: mif);
24: }
25: }
|