Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /openetl/src/org/tigris/openetl/ui/

openetl
Discussion topic

Back to topic list

CVS update: /openetl/src/org/tigris/openetl/ui/

Reply

Author ernani_joppert
Full name Ernani Joppert Pontes Martins
Date 2004-08-08 22:59:41 PDT
Message User: ernani_joppert
Date: 04/08/08 22:59:41

Modified:
 /openetl/src/org/tig​ris/openetl/ui/
  ToolBar.java

Log:
 added icon images to the toolbar.

File Changes:

Directory: /openetl/src/org/tig​ris/openetl/ui/
====================​====================​======

File [changed]: ToolBar.java
Url: http://openetl.tigri​s.org/source/browse/​openetl/src/org/tigr​is/openetl/ui/ToolBa​r.java?r1=1.2&r2​=1.3
Delta lines: +5 -4
-------------------
--- ToolBar.java 9 Aug 2004 04:56:58 -0000 1.2
+++ ToolBar.java 9 Aug 2004 05:59:41 -0000 1.3
@@ -3,6 +3,7 @@
  */
 package org.tigris.openetl.ui;
 
+import javax.swing.ImageIcon;
 import javax.swing.JButton;
 import javax.swing.JToolBar;
 import javax.swing.border.BevelBorder;
@@ -39,16 +40,16 @@
         JButton button = null;
 
         // first button
- button = new JButton("New");
+ button = new JButton(new ImageIcon("images/new.gif"));
         button.setActionComm​and(Application.COMM​AND_NEW);
- button.setToolTipText("Opens a new internal frame");
+ button.setToolTipText("Creates a new project");
         button.addActionList​ener(frame);
         toolBar.add(button);
 
         // second button
- button = new JButton("Open");
+ button = new JButton(new ImageIcon("images/open.gif"));
         button.setActionComm​and(Application.COMM​AND_OPEN);
- button.setToolTipText("Choose a File to Open");
+ button.setToolTipText("Choose a Project to Open");
         button.addActionList​ener(frame);
         toolBar.add(button);
     }




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@open​etl.tigris.org
For additional commands, e-mail: cvs-help at openetl dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /openetl/src/org/tigris/openetl/ui/ ernani_joppert Ernani Joppert Pontes Martins 2004-08-08 22:59:41 PDT
Messages per page: