undo/redo and edit menu implementation

This commit is contained in:
benfry
2002-10-22 06:33:57 +00:00
parent 33f91aca0b
commit e0ac753c8c
5 changed files with 164 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
import java.awt.*;
import java.awt.event.*;
//import javax.swing.*;
public class PdeEditorButtons extends Panel /*implements ActionListener*/ {
static final String EMPTY_STATUS = " ";
@@ -50,6 +52,7 @@ public class PdeEditorButtons extends Panel /*implements ActionListener*/ {
int currentRollover;
int currentSelection;
//JPopupMenu popup;
PopupMenu popup;
int buttonCount;
@@ -315,6 +318,7 @@ public class PdeEditorButtons extends Panel /*implements ActionListener*/ {
if (currentSelection == OPEN) {
if (popup == null) {
//popup = new JPopupMenu();
popup = new PopupMenu();
add(popup);
}