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-sandbox/src/java/org/apache/log4j/chainsaw LogUI.java ChainsawToolBarAndMenus.java
Date Tue, 17 Jun 2003 06:40:17 GMT
psmith      2003/06/16 23:40:17

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
                        ChainsawToolBarAndMenus.java
  Log:
  when the look and feel is changed, there was a dialog box that wasn't
  updating because of it.
  
  Revision  Changes    Path
  1.99      +1 -1      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- LogUI.java	17 Jun 2003 00:19:10 -0000	1.98
  +++ LogUI.java	17 Jun 2003 06:40:16 -0000	1.99
  @@ -963,7 +963,7 @@
       try {
         UIManager.setLookAndFeel(lookAndFeelClassName);
         SwingUtilities.updateComponentTreeUI(this);
  -
  +      tbms.lookAndFeelUpdated();
         if (tbms != null) {
           tbms.stateChange();
         }
  
  
  
  1.35      +13 -6     jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java
  
  Index: ChainsawToolBarAndMenus.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- ChainsawToolBarAndMenus.java	17 Jun 2003 03:58:05 -0000	1.34
  +++ ChainsawToolBarAndMenus.java	17 Jun 2003 06:40:17 -0000	1.35
  @@ -182,12 +182,14 @@
     private String lastFind = "";
     private String levelDisplay = ChainsawConstants.LEVEL_DISPLAY_ICONS;
     private final Action[] logPanelSpecificActions;
  -
  +  final JDialog receiversWindow;
  +  
     //~ Constructors ============================================================
   
     ChainsawToolBarAndMenus(final LogUI logui)
     {
       this.logui = logui;
  +    receiversWindow = new JDialog(logui, "Receivers", false);
       toolbar = new JToolBar(JToolBar.HORIZONTAL);
       menuBar = new JMenuBar();
       fileMenu = new FileMenu(logui);
  @@ -215,6 +217,9 @@
         };
     }
   
  +  void lookAndFeelUpdated() {
  +    SwingUtilities.updateComponentTreeUI(receiversWindow);
  +  }
     //~ Methods =================================================================
   
     /**
  @@ -926,9 +931,11 @@
      */
     private Action createShowReceiversAction()
     {
  -    final JDialog receiversWindow = new JDialog(logui, "Receivers", false);
  -
  +    
       final JTree tree = new JTree(ReceiversTreeModel.create());
  +    
  +    tree.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
  +    
       tree.setCellRenderer(new ReceiverTreeCellRenderer());
   
       final Container container = receiversWindow.getContentPane();
  
  
  

---------------------------------------------------------------------
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