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
Date Mon, 19 May 2003 06:36:58 GMT
psmith      2003/05/18 23:36:58

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  fixed bug where Undock would lose the Detail Pane, and subsequent
  undocking wouldn't get it back either...
  
  Revision  Changes    Path
  1.58      +7 -7      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.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- LogUI.java	19 May 2003 06:29:41 -0000	1.57
  +++ LogUI.java	19 May 2003 06:36:57 -0000	1.58
  @@ -198,10 +198,9 @@
      * @param args
      */
     public static void main(String[] args) {
  -	
       LogUI logUI = new LogUI();
       logUI.changeLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  -    
  +
       logUI.handler = new ChainsawAppenderHandler(logUI);
       LogManager.getRootLogger().addAppender(logUI.handler);
       logUI.activateViewer();
  @@ -751,7 +750,8 @@
       try {
         UIManager.setLookAndFeel(lookAndFeelClassName);
         SwingUtilities.updateComponentTreeUI(this);
  -      if (tbms!=null) {
  +
  +      if (tbms != null) {
           tbms.stateChange();
         }
       } catch (Exception e) {
  @@ -951,7 +951,7 @@
         upperPanel.setBorder(BorderFactory.createEmptyBorder(2, 5, 2, 0));
   
         final JLabel filterLabel = new JLabel("Filter: ");
  -      filterLabel.setFont(new Font("SansSerif", Font.ITALIC, 10));
  +      filterLabel.setFont(new Font("SansSerif", Font.ITALIC | Font.BOLD, 12));
   
         JPanel upperLeftPanel =
           new JPanel(new FlowLayout(FlowLayout.CENTER, 3, 0));
  @@ -1234,7 +1234,7 @@
               if (currentPoint != null) {
                 int column = table.columnAtPoint(currentPoint);
                 int row = table.rowAtPoint(currentPoint);
  -              String colName = table.getColumnName(column);
  +              String colName = tableModel.getColumnName(column);
                 String value = "";
   
                 if (
  @@ -1452,7 +1452,7 @@
       void dock() {
         f.setVisible(false);
         removeAll();
  -      add(eventsAndStatusPanel, BorderLayout.CENTER);
  +      add(lowerPanel, BorderLayout.CENTER);
         panelMap.put(getIdentifier(), LogPanel.this);
         tabbedPane.addANewTab(getIdentifier(), LogPanel.this);
         externalPanel.setDocked(true);
  @@ -1467,7 +1467,7 @@
        */
       void undock() {
         externalPanel.removeAll();
  -      externalPanel.add(eventsAndStatusPanel, BorderLayout.CENTER);
  +      externalPanel.add(lowerPanel, BorderLayout.CENTER);
         tabbedPane.remove(LogPanel.this);
         externalPanel.setDocked(false);
         setDocked(false);
  
  
  

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