logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw DefaultSortTableModel.java LogUI.java
Date Fri, 02 May 2003 16:50:35 GMT
sdeboy      2003/05/02 09:50:35

  Modified:    src/java/org/apache/log4j/chainsaw
                        DefaultSortTableModel.java LogUI.java
  Log:
  Converted pause button to a jtogglebutton and resized to 24x24
  
  Revision  Changes    Path
  1.4       +0 -1      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/DefaultSortTableModel.java
  
  Index: DefaultSortTableModel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/DefaultSortTableModel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultSortTableModel.java	2 May 2003 04:19:26 -0000	1.3
  +++ DefaultSortTableModel.java	2 May 2003 16:50:34 -0000	1.4
  @@ -53,7 +53,6 @@
   import java.text.ParseException;
   import java.text.SimpleDateFormat;
   import java.util.Collections;
  -import java.util.Date;
   import java.util.HashMap;
   import java.util.Hashtable;
   import java.util.Iterator;
  
  
  
  1.18      +6 -2      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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- LogUI.java	2 May 2003 07:40:10 -0000	1.17
  +++ LogUI.java	2 May 2003 16:50:35 -0000	1.18
  @@ -105,6 +105,7 @@
   import javax.swing.JTabbedPane;
   import javax.swing.JTable;
   import javax.swing.JTextField;
  +import javax.swing.JToggleButton;
   import javax.swing.JToolBar;
   import javax.swing.KeyStroke;
   import javax.swing.ListSelectionModel;
  @@ -851,12 +852,15 @@
         pauseAction.putValue(Action.SHORT_DESCRIPTION, "Halts the display, while still allowing
events to stream in the background");
         pauseAction.putValue(Action.SMALL_ICON, new ImageIcon(ChainsawIcons.PAUSE));
   
  -      final JButton pauseButton = new JButton(pauseAction);
  +      final JToggleButton pauseButton = new JToggleButton(pauseAction);
         pauseButton.setText("");
         
         pauseButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("F12"),pauseAction.getValue(Action.NAME)
);
         pauseButton.getActionMap().put(pauseAction.getValue(Action.NAME), pauseAction);
  -
  +      Dimension d=new Dimension(24,24);
  +      pauseButton.setPreferredSize(d);
  +      pauseButton.setMaximumSize(d);
  +      
         GridBagLayout gridbag = new GridBagLayout();
         GridBagConstraints gbc = new GridBagConstraints();
   
  
  
  

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