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 07:46:37 GMT
psmith      2003/05/19 00:46:35

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  more appropriate use of Font changing (learn something every day).
  
  Revision  Changes    Path
  1.59      +4 -4      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.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- LogUI.java	19 May 2003 06:36:57 -0000	1.58
  +++ LogUI.java	19 May 2003 07:46:34 -0000	1.59
  @@ -126,7 +126,6 @@
   import javax.swing.ListSelectionModel;
   import javax.swing.SwingUtilities;
   import javax.swing.UIManager;
  -import javax.swing.UnsupportedLookAndFeelException;
   import javax.swing.event.DocumentEvent;
   import javax.swing.event.DocumentListener;
   import javax.swing.event.ListSelectionEvent;
  @@ -950,15 +949,15 @@
         upperPanel = new JPanel(new BorderLayout());
         upperPanel.setBorder(BorderFactory.createEmptyBorder(2, 5, 2, 0));
   
  -      final JLabel filterLabel = new JLabel("Filter: ");
  -      filterLabel.setFont(new Font("SansSerif", Font.ITALIC | Font.BOLD, 12));
  +      final JLabel filterLabel = new JLabel("QuickFilter: ");
  +      filterLabel.setFont(filterLabel.getFont().deriveFont(Font.BOLD));
   
         JPanel upperLeftPanel =
           new JPanel(new FlowLayout(FlowLayout.CENTER, 3, 0));
         upperLeftPanel.add(filterLabel);
   
         final JComboBox customFilterList = new JComboBox(columnNames.toArray());
  -      customFilterList.setFont(new Font("SansSerif", Font.BOLD, 10));
  +      customFilterList.setFont(customFilterList.getFont().deriveFont(10f));
   
         final JTextField filterText = new JTextField();
   
  @@ -1049,6 +1048,7 @@
         statusLabelPanel.setLayout(new BorderLayout());
   
         final JLabel statusPaneLabel = new JLabel();
  +      statusPaneLabel.setFont(statusPaneLabel.getFont().deriveFont(Font.BOLD));
         statusLabelPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
         statusPaneLabel.setHorizontalAlignment(JLabel.LEFT);
         statusLabelPanel.add(statusPaneLabel, BorderLayout.WEST);
  
  
  

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