git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced image
[jalview.git]
/
src
/
jalview
/
jbgui
/
GCutAndPasteTransfer.java
diff --git
a/src/jalview/jbgui/GCutAndPasteTransfer.java
b/src/jalview/jbgui/GCutAndPasteTransfer.java
index
6a89e2c
..
bc7d6ee
100755
(executable)
--- a/
src/jalview/jbgui/GCutAndPasteTransfer.java
+++ b/
src/jalview/jbgui/GCutAndPasteTransfer.java
@@
-21,10
+21,6
@@
package jalview.jbgui;
import java.awt.*;
\r
import java.awt.event.*;
\r
\r
import java.awt.*;
\r
import java.awt.event.*;
\r
\r
-import java.beans.PropertyChangeEvent;
\r
-//import java.beans.PropertyVetoException;
\r
-//import java.beans.VetoableChangeListener;
\r
-
\r
import javax.swing.*;
\r
\r
\r
import javax.swing.*;
\r
\r
\r
@@
-48,6
+44,8
@@
public class GCutAndPasteTransfer extends JInternalFrame
JButton ok = new JButton();
\r
JButton cancel = new JButton();
\r
JMenuItem selectAll = new JMenuItem();
\r
JButton ok = new JButton();
\r
JButton cancel = new JButton();
\r
JMenuItem selectAll = new JMenuItem();
\r
+ JMenu jMenu1 = new JMenu();
\r
+ JMenuItem save = new JMenuItem();
\r
\r
/**
\r
* Creates a new GCutAndPasteTransfer object.
\r
\r
/**
\r
* Creates a new GCutAndPasteTransfer object.
\r
@@
-82,7
+80,7
@@
public class GCutAndPasteTransfer extends JInternalFrame
ok_actionPerformed(e);
\r
}
\r
});
\r
ok_actionPerformed(e);
\r
}
\r
});
\r
- cancel.setText("Cancel");
\r
+ cancel.setText("Close");
\r
cancel.addActionListener(new ActionListener()
\r
{
\r
public void actionPerformed(ActionEvent e)
\r
cancel.addActionListener(new ActionListener()
\r
{
\r
public void actionPerformed(ActionEvent e)
\r
@@
-100,6
+98,16
@@
public class GCutAndPasteTransfer extends JInternalFrame
selectAll_actionPerformed(e);
\r
}
\r
});
\r
selectAll_actionPerformed(e);
\r
}
\r
});
\r
+ jMenu1.setText("File");
\r
+ save.setText("Save");
\r
+ save.addActionListener(new ActionListener()
\r
+ {
\r
+ public void actionPerformed(ActionEvent e)
\r
+ {
\r
+ save_actionPerformed(e);
\r
+ }
\r
+ });
\r
+ editMenubar.add(jMenu1);
\r
editMenubar.add(editMenu);
\r
textarea.setFont(new java.awt.Font("Monospaced", Font.PLAIN, 12));
\r
textarea.addMouseListener(new java.awt.event.MouseAdapter()
\r
editMenubar.add(editMenu);
\r
textarea.setFont(new java.awt.Font("Monospaced", Font.PLAIN, 12));
\r
textarea.addMouseListener(new java.awt.event.MouseAdapter()
\r
@@
-135,7
+143,8
@@
public class GCutAndPasteTransfer extends JInternalFrame
this.getContentPane().add(scrollPane, java.awt.BorderLayout.CENTER);
\r
inputButtonPanel.add(ok);
\r
inputButtonPanel.add(cancel);
\r
this.getContentPane().add(scrollPane, java.awt.BorderLayout.CENTER);
\r
inputButtonPanel.add(ok);
\r
inputButtonPanel.add(cancel);
\r
- }
\r
+ jMenu1.add(save);
\r
+ }
\r
\r
/**
\r
* DOCUMENT ME!
\r
\r
/**
\r
* DOCUMENT ME!
\r
@@
-188,4
+197,9
@@
public class GCutAndPasteTransfer extends JInternalFrame
{
\r
textarea.selectAll();
\r
}
\r
{
\r
textarea.selectAll();
\r
}
\r
+
\r
+ public void save_actionPerformed(ActionEvent e)
\r
+ {
\r
+
\r
+ }
\r
}
\r
}
\r