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 Sat, 27 Sep 2003 01:50:34 GMT
psmith      2003/09/26 18:50:34

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  Fixed a visual bug.  When the Tutorial was started, and the main LogUI screen
  resized, the status bar did not go through a layout validation, and
  so looked 'clipped'.
  
  Revision  Changes    Path
  1.37      +6 -1      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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- LogUI.java	23 Sep 2003 23:28:06 -0000	1.36
  +++ LogUI.java	27 Sep 2003 01:50:34 -0000	1.37
  @@ -1268,18 +1268,23 @@
      *
      */
     public void setupTutorial() {
  +    SwingUtilities.invokeLater(new Runnable(){
  +
  +      public void run() {
       Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
       setLocation(0, getLocation().y);
   
       double chainsawwidth = 0.7;
       double tutorialwidth = 1 - chainsawwidth;
       setSize((int) (screen.width * chainsawwidth), getSize().height);
  -
  +    invalidate();
  +    validate();    
       Dimension size = getSize();
       Point loc = getLocation();
       tutorialFrame.setSize((int) (screen.width * tutorialwidth), size.height);
       tutorialFrame.setLocation(loc.x + size.width, loc.y);
       tutorialFrame.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