logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw LogUI.java
Date Mon, 22 Dec 2003 11:00:02 GMT
psmith      2003/12/22 03:00:02

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  use of refactored code.
  
  Revision  Changes    Path
  1.63      +2 -6      jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- LogUI.java	20 Dec 2003 05:27:16 -0000	1.62
  +++ LogUI.java	22 Dec 2003 11:00:02 -0000	1.63
  @@ -114,6 +114,7 @@
   import org.apache.log4j.UtilLoggingLevel;
   import org.apache.log4j.chainsaw.help.HelpManager;
   import org.apache.log4j.chainsaw.help.Tutorial;
  +import org.apache.log4j.chainsaw.helper.SwingHelper;
   import org.apache.log4j.chainsaw.icons.ChainsawIcons;
   import org.apache.log4j.chainsaw.messages.MessageCenter;
   import org.apache.log4j.chainsaw.prefs.LoadSettingsEvent;
  @@ -232,12 +233,7 @@
   
     private static final void showSplash(Frame owner) {
       splash = new ChainsawSplash(owner);
  -
  -    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
  -    splash.setLocation(
  -      (screenSize.width / 2) - (splash.getWidth() / 2),
  -      (screenSize.height / 2) - (splash.getHeight() / 2));
  -
  +    SwingHelper.centerOnScreen(splash);
       splash.setVisible(true);
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message