fixing copy and paste. works, except if pasted from a TextArea through the windows pop-up menu.
This commit is contained in:
parent
627b35cd33
commit
d35048a067
2 changed files with 8 additions and 5 deletions
|
@ -69,7 +69,6 @@ public class DuffScannerPanel extends ScannerPanel
|
|||
|
||||
fullDef = new TextArea("",0,0,TextArea.SCROLLBARS_VERTICAL_ONLY);
|
||||
fullDef.setEditable(false);
|
||||
|
||||
model = new DictionaryTableModel(null);
|
||||
table = new DictionaryTable(model, fullDef);
|
||||
table.activateTibetan(true);
|
||||
|
@ -199,5 +198,5 @@ public class DuffScannerPanel extends ScannerPanel
|
|||
showingTibetan = false;
|
||||
}
|
||||
table.repaint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,13 +63,16 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
mb.add(m);
|
||||
|
||||
m = new Menu ("Edit");
|
||||
mnuCut = new MenuItem("Cut");
|
||||
mnuCut = new MenuItem("Cut");
|
||||
mnuCut.setShortcut(new MenuShortcut(KeyEvent.VK_X));
|
||||
m.add(mnuCut);
|
||||
mnuCut.addActionListener(this);
|
||||
mnuCut.addActionListener(this);
|
||||
mnuCopy = new MenuItem("Copy");
|
||||
mnuCopy.setShortcut(new MenuShortcut(KeyEvent.VK_C));
|
||||
m.add(mnuCopy);
|
||||
mnuCopy.addActionListener(this);
|
||||
mnuPaste = new MenuItem("Paste");
|
||||
mnuPaste.setShortcut(new MenuShortcut(KeyEvent.VK_V));
|
||||
m.add(mnuPaste);
|
||||
mnuPaste.addActionListener(this);
|
||||
mnuDelete = new MenuItem("Delete");
|
||||
|
@ -77,6 +80,7 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
mnuDelete.addActionListener(this);
|
||||
m.add("-");
|
||||
mnuSelectAll = new MenuItem("Select all");
|
||||
mnuSelectAll.setShortcut(new MenuShortcut(KeyEvent.VK_A));
|
||||
m.add(mnuSelectAll);
|
||||
mnuSelectAll.addActionListener(this);
|
||||
mnuClear = new MenuItem("Clear all");
|
||||
|
@ -116,7 +120,7 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
{
|
||||
if (args.length!=1 && args.length!=2)
|
||||
{
|
||||
System.out.println("Sintaxis: java SimpleScannerPanel [options] arch-dict");
|
||||
System.out.println("Sintaxis: java WindowScannerFilter [options] arch-dict");
|
||||
System.out.println("Options:");
|
||||
System.out.println(" -simple: runs the non-swing version.");
|
||||
System.out.println(TibetanScanner.copyrightASCII);
|
||||
|
|
Loading…
Reference in a new issue