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

  Modified:    src/java/org/apache/log4j/chainsaw FileLoadAction.java
  Log:
  added reference to an Icon for the Load/Open action
  
  Revision  Changes    Path
  1.5       +3 -1      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileLoadAction.java
  
  Index: FileLoadAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileLoadAction.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FileLoadAction.java	1 May 2003 03:25:28 -0000	1.4
  +++ FileLoadAction.java	2 May 2003 04:27:19 -0000	1.5
  @@ -15,10 +15,12 @@
   
   import javax.swing.AbstractAction;
   import javax.swing.Action;
  +import javax.swing.ImageIcon;
   import javax.swing.JFileChooser;
   import javax.swing.KeyStroke;
   import javax.swing.filechooser.FileFilter;
   
  +import org.apache.log4j.chainsaw.icons.ChainsawIcons;
   import org.apache.log4j.xml.XMLDecoder;
   
   /**
  @@ -40,7 +42,7 @@
       putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.ALT_MASK));
       putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_L));
       putValue(Action.SHORT_DESCRIPTION, "Loads an XML event file");
  -//    TODO be nice if this also had an Icon
  +    putValue(Action.SMALL_ICON, new ImageIcon(ChainsawIcons.FILE_OPEN));
       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