tn5250j/src/org/tn5250j/spoolfile SpoolExportWizard.java,1.14,1.15

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/spoolfile
In directory sc8-pr-cvs1:/tmp/cvs-serv20356/src/org/tn5250j/spoolfile

Modified Files:
	SpoolExportWizard.java 
Log Message:
Fixes for the translation of the JFileChoosers

Index: SpoolExportWizard.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** SpoolExportWizard.java	11 Nov 2003 14:37:00 -0000	1.14
--- SpoolExportWizard.java	27 Nov 2003 12:06:33 -0000	1.15
***************
*** 40,43 ****
--- 40,44 ----
  import org.tn5250j.gui.WizardPage;
  import org.tn5250j.gui.TN5250jFrame;
+ import org.tn5250j.gui.TN5250jFileChooser;
  import org.tn5250j.Session;
  import org.tn5250j.mailtools.SendEMailDialog;
***************
*** 517,521 ****
  
        String workingDir = System.getProperty("user.dir");
!       MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
  
        // set the file filters for the file chooser
--- 518,522 ----
  
        String workingDir = System.getProperty("user.dir");
!       TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
  
        // set the file filters for the file chooser
***************
*** 545,569 ****
     private void getIFSFile() {
  
- //      String workingDir = System.getProperty("user.dir");
- //      MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
- //
- //      // set the file filters for the file chooser
- //      ExportFileFilter filter;
- //
- //      if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool.toPDF")))
- //         filter = new ExportFileFilter("pdf","PDF Files");
- //      else
- //         filter = new ExportFileFilter("txt","Text Files");
- //
- //      pcFileChooser.addChoosableFileFilter(filter );
- //
- //      int ret = pcFileChooser.showSaveDialog(this);
- //
- //      // check to see if something was actually chosen
- //      if (ret == JFileChooser.APPROVE_OPTION) {
- //         File file = pcFileChooser.getSelectedFile();
- //         pcPathInfo.setText(filter.setExtension(file));
- //
- //      }
        IFSFileDialog fd = new IFSFileDialog(this, "Save As", splfile.getSystem());
        com.ibm.as400.vaccess.FileFilter[] filterList =
--- 546,549 ----
***************
*** 596,600 ****
  
        String workingDir = System.getProperty("user.dir");
!       MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
  
        int ret = pcFileChooser.showOpenDialog(this);
--- 576,580 ----
  
        String workingDir = System.getProperty("user.dir");
!       TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
  
        int ret = pcFileChooser.showOpenDialog(this);
***************
*** 1127,1146 ****
     public void help(WizardEvent e) {
        System.out.println(e.getCurrentPage().getName());
-    }
- 
- 
-     /**
-      * This is to fix
-      * Bug Id - 4416982
-      * Synopsis JFileChooser does not use its resources to size itself initially
-      */
-    class MyFileChooser extends JFileChooser {
-       MyFileChooser(String dir) {
-          super(dir);
-       }
- 
-       public Dimension getPreferredSize() {
-          return getLayout().preferredLayoutSize(this);
-       }
     }
  
--- 1107,1110 ----




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.