minor changes to about window.
This commit is contained in:
parent
06fa7f020e
commit
5d205ca9d9
1 changed files with 13 additions and 6 deletions
|
@ -26,6 +26,7 @@ import java.applet.Applet;
|
|||
import java.awt.*;
|
||||
import java.awt.datatransfer.*;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.JOptionPane;
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
|
||||
/** Provides a graphical interfase to input Tibetan text (Roman or
|
||||
|
@ -44,6 +45,7 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
private Object objModified;
|
||||
private Frame frame;
|
||||
private Dialog diagAbout;
|
||||
private boolean usingSwing;
|
||||
|
||||
public WindowScannerFilter(String file)
|
||||
{
|
||||
|
@ -56,11 +58,12 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
frame.setLayout(new GridLayout(1,1));
|
||||
frame.setBackground(Color.white);
|
||||
diagAbout = null;
|
||||
usingSwing=!ipaq;
|
||||
|
||||
if (ipaq)
|
||||
sp = new SimpleScannerPanel(file);
|
||||
else
|
||||
if (usingSwing)
|
||||
sp = new DuffScannerPanel(file);
|
||||
else
|
||||
sp = new SimpleScannerPanel(file);
|
||||
|
||||
MenuBar mb = new MenuBar();
|
||||
Menu m = new Menu ("File");
|
||||
|
@ -94,7 +97,7 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
m.add(mnuClear);
|
||||
mnuClear.addActionListener(this);
|
||||
mb.add(m);
|
||||
if (!ipaq)
|
||||
if (usingSwing)
|
||||
{
|
||||
m = new Menu("View");
|
||||
tibScript = new CheckboxMenuItem("Tibetan Script", true);
|
||||
|
@ -269,7 +272,11 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
|||
|
||||
if (clicked == mnuAbout)
|
||||
{
|
||||
if (diagAbout==null)
|
||||
if (usingSwing)
|
||||
{
|
||||
JOptionPane.showMessageDialog(frame, TibetanScanner.aboutUnicode, "About", JOptionPane.PLAIN_MESSAGE);
|
||||
}
|
||||
else if (diagAbout==null)
|
||||
{
|
||||
diagAbout = new AboutDialog(frame);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue