diff options
Diffstat (limited to 'modules/hebrew-wlc')
3 files changed, 0 insertions, 122 deletions
diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java deleted file mode 100644 index f84a505..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java +++ /dev/null @@ -1,71 +0,0 @@ -package WLC2OSIS.GUI ; - -import WLC2OSIS.* ; -import Utilities.* ; - -import java.awt.* ; -import java.util.* ; -import java.io.* ; -import java.awt.event.* ; -import javax.swing.*; -import javax.swing.event.* ; -import javax.swing.border.*; -//============================================================================== -/** - * <b>Gets the input and output files.</b><p> - */ -//============================================================================== - -public class FileChoices { - -WLC2OSIS A ; - -public FileChoices(WLC2OSIS A){ - this.A = A ; - } -public String getInputFilename(String DefaultInputFilename){ - FileChooser inchooser = new FileChooser() ; - inchooser.setSelectedFile(new File(DefaultInputFilename) ) ; - inchooser.setDialogTitle("Give the input file") ; - inchooser.setApproveButtonText("Set") ; - inchooser.setSize( new Dimension( 500, 400 ) ) ; - inchooser.setLocation(new Point(200, 200) ); - inchooser.revalidate() ; - int returnValue = inchooser.showOpenDialog(A.OverallContainer) ; - if(returnValue==JFileChooser.APPROVE_OPTION){ - String InputFilename = inchooser.getSelectedFile().getPath() ; - return InputFilename ; - } - else{ - System.out.println("WLC2OSIS:FileChoices: Didn't choose the input file.") ; - System.exit(0) ; - return null ;} - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -public String getOutputDirectory(String DefaultOutputDirectory){ - FileChooser outchooser = new FileChooser() ; - outchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY) ; - File InitialDirectory = new File(DefaultOutputDirectory ) ; - outchooser.setSelectedFile(InitialDirectory) ; - outchooser.setDialogTitle("Set the output directory") ; - outchooser.setApproveButtonText("Set") ; - outchooser.setSize( new Dimension( 500, 400 ) ) ; - outchooser.setLocation(new Point(200, 200) ); - outchooser.revalidate() ; - int returnValue = outchooser.showOpenDialog(A.OverallContainer) ; - if(returnValue==JFileChooser.APPROVE_OPTION){ - String OutputDirectory = outchooser.getSelectedFile().getPath() ; - return OutputDirectory ; - } - else{ - System.out.println("WLC2OSIS: Didn't choose the output directory.") ; - System.exit(0) ; - return null ; - } - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -} -//============================================================================== -//============================================================================== diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java deleted file mode 100644 index 93a7340..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java +++ /dev/null @@ -1,42 +0,0 @@ -package WLC2OSIS.GUI ; - -import WLC2OSIS.* ; -import Utilities.* ; - -import java.awt.* ; -import java.util.* ; -import java.io.* ; -import java.awt.event.* ; -import javax.swing.*; -import javax.swing.event.* ; -import javax.swing.border.*; -//============================================================================== -/** - * <b>Outputs messages to operator.</b><p> - */ -//============================================================================== - -public class Messages { - -WLC2OSIS A ; - -public Messages(WLC2OSIS A){ - this.A = A ; - } -public void initialMessage(){ - String IntroMessage = "WLC2OSIS: Conversion of WHI text files to OSIS.\n\n" - + "Important messages will be written to command window.\n" - + "Please be ready to write them down.\n\n" ; - JOptionPane.showMessageDialog(A.OverallContainer, IntroMessage) ; - } -public void doneMessage(){ - String DoneMessage = "The output file appears to have been written\n" - + "normally. Please examine the Java Console for possible errors.\n" - + "If any errors have occured please make a careful note of them.\n\n"; - JOptionPane.showMessageDialog(A.OverallContainer, DoneMessage) ; - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -} -//============================================================================== -//============================================================================== diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html deleted file mode 100644 index 317474e..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html +++ /dev/null @@ -1,9 +0,0 @@ -<HTML> -<BODY> -<b>Graphical user interface (GUI)</b>. -<p/> -<p align="right"> (<b><tt>BHS2XML/GUI/package.html</tt></b>) -</p> -Crude graphical interfaces. -</BODY> -</HTML> |