tn5250j/src/org/tn5250j Configure.java,1.9,1.10 My5250App.java,1.15,1.16 SessionScroller.java,1.1,1.2 WTDSFParser.java,1.1,1.2

Patrick Bielen <[email protected]> Thu, 01 Jul 2004 10:35:31 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23533/src/org/tn5250j

Modified Files:
	Configure.java My5250App.java SessionScroller.java 
	WTDSFParser.java 
Log Message:
Update related to warnings in eclipse (unused imports) and to the 
bug-reporting of the applet-related bugs.

Index: Configure.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Configure.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Configure.java	26 Jun 2004 05:45:31 -0000	1.9
--- Configure.java	1 Jul 2004 10:35:29 -0000	1.10
***************
*** 31,35 ****
  import java.awt.event.*;
  import java.util.*;
- import java.util.jar.*;
  
  import org.tn5250j.tools.*;
--- 31,34 ----

Index: My5250App.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/My5250App.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** My5250App.java	30 Jun 2004 06:18:56 -0000	1.15
--- My5250App.java	1 Jul 2004 10:35:29 -0000	1.16
***************
*** 7,10 ****
--- 7,11 ----
  import org.tn5250j.tools.logging.*;
  import org.tn5250j.tools.LangTool;
+ import org.tn5250j.gui.TN5250jSecurityAccessDialog;
  
  public class My5250App extends JApplet implements TN5250jConstants {
***************
*** 12,16 ****
     private SessionManager manager;
  	
!    private TN5250jLogger log = TN5250jLogFactory.getLogger (this.getClass());
     
     /**Get a parameter value*/
--- 13,17 ----
     private SessionManager manager;
  	
!    private TN5250jLogger log;
     
     /**Get a parameter value*/
***************
*** 31,35 ****
        }
        catch(Exception e) {
!          log.warn("In constructor: ", e);
        }
     }
--- 32,39 ----
        }
        catch(Exception e) {
!       	if (log == null)
!             System.out.println(e.getMessage());
!          else
!          	log.warn("In constructor: ", e);
        }
     }
***************
*** 38,41 ****
--- 42,61 ----
     private void jbInit() throws Exception {
        this.setSize(new Dimension(400,300));
+       
+       if (isSpecified("-L"))
+       	LangTool.init(parseLocale(getParameter("-L")));
+       else
+       	LangTool.init();
+ 
+      //Let's check some permissions
+      try {
+         System.getProperty(".java.policy");
+      }
+      catch (SecurityException e) {
+         e.printStackTrace();
+         TN5250jSecurityAccessDialog.showErrorMessage(e);
+         return;
+      }
+      log = TN5250jLogFactory.getLogger (this.getClass());
  
        Properties sesProps = new Properties();
***************
*** 79,87 ****
           sesProps.put(SESSION_DEVICE_NAME ,getParameter("-dn"));
  
-       if (isSpecified("-L"))
-          LangTool.init(parseLocale(getParameter("-L")));
-       else
-          LangTool.init();
- 
        loadSystemProperty("SESSION_CONNECT_USER");
        loadSystemProperty("SESSION_CONNECT_PASSWORD");
--- 99,102 ----

Index: SessionScroller.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/SessionScroller.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionScroller.java	31 Mar 2004 12:30:20 -0000	1.1
--- SessionScroller.java	1 Jul 2004 10:35:29 -0000	1.2
***************
*** 26,30 ****
  package org.tn5250j;
  
- import java.awt.event.*;
  import java.lang.reflect.*;
  
--- 26,29 ----

Index: WTDSFParser.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/WTDSFParser.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WTDSFParser.java	31 Mar 2004 12:30:20 -0000	1.1
--- WTDSFParser.java	1 Jul 2004 10:35:29 -0000	1.2
***************
*** 26,34 ****
  package org.tn5250j;
  
- import java.util.*;
- import java.io.*;
- 
  import org.tn5250j.encoding.CodePage;
- import org.tn5250j.encoding.CharMappings;
  
  /**
--- 26,30 ----



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com