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 FileSaveAction.java
Date Fri, 02 May 2003 04:27:34 GMT
psmith      2003/05/01 21:27:34

  Modified:    src/java/org/apache/log4j/chainsaw FileSaveAction.java
  Log:
  added reference to an Icon for the Save action
  
  Revision  Changes    Path
  1.3       +3 -1      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileSaveAction.java
  
  Index: FileSaveAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileSaveAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileSaveAction.java	1 May 2003 05:03:17 -0000	1.2
  +++ FileSaveAction.java	2 May 2003 04:27:33 -0000	1.3
  @@ -17,9 +17,11 @@
   
   import javax.swing.AbstractAction;
   import javax.swing.Action;
  +import javax.swing.ImageIcon;
   import javax.swing.JFileChooser;
   import javax.swing.KeyStroke;
   
  +import org.apache.log4j.chainsaw.icons.ChainsawIcons;
   import org.apache.log4j.spi.LoggingEvent;
   import org.apache.log4j.xml.XMLLayout;
   
  @@ -45,7 +47,7 @@
   		putValue(
   			Action.SHORT_DESCRIPTION,
   			"Saves displayed events for the current tab");
  -		//    TODO be nice if this also had an Icon
  +		putValue(Action.SMALL_ICON, new ImageIcon(ChainsawIcons.FILE_SAVE_AS));
   		this.parent = parent;
   	}
   
  
  
  

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