[Mongobrowser-commit] SF.net SVN: mongobrowser:[34] trunk/mongobrowser/src/com/mebigfatguy/ mongob
Status: Pre-Alpha
Brought to you by:
dbrosius
From: <dbr...@us...> - 2009-12-27 04:23:35
|
Revision: 34 http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=34&view=rev Author: dbrosius Date: 2009-12-27 04:23:27 +0000 (Sun, 27 Dec 2009) Log Message: ----------- use icon buttons Modified Paths: -------------- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/dialogs/MongoControlPanel.java Modified: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/dialogs/MongoControlPanel.java =================================================================== --- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/dialogs/MongoControlPanel.java 2009-12-27 04:22:58 UTC (rev 33) +++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/dialogs/MongoControlPanel.java 2009-12-27 04:23:27 UTC (rev 34) @@ -19,6 +19,7 @@ package com.mebigfatguy.mongobrowser.dialogs; import java.awt.Color; +import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; @@ -27,6 +28,7 @@ import javax.swing.BorderFactory; import javax.swing.DefaultComboBoxModel; +import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JLabel; @@ -102,11 +104,17 @@ add(dbLabel, cc.xy(2, 1)); add(dbComboBox, cc.xy(4, 1)); - dbNewCollectionButton = new JButton(MongoBundle.getString(MongoBundle.Key.NewCollection)); + ImageIcon icon = new ImageIcon(MongoControlPanel.class.getResource("/com/mebigfatguy/mongobrowser/resources/newcollection.png")); + dbNewCollectionButton = new JButton(icon); + dbNewCollectionButton.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight())); + dbNewCollectionButton.setToolTipText(MongoBundle.getString(MongoBundle.Key.NewCollection)); add(dbNewCollectionButton, cc.xy(6, 1)); dbNewCollectionButton.setEnabled(false); - dbNewObjectButton = new JButton(MongoBundle.getString(MongoBundle.Key.NewObject)); + icon = new ImageIcon(MongoControlPanel.class.getResource("/com/mebigfatguy/mongobrowser/resources/newobject.png")); + dbNewObjectButton = new JButton(icon); + dbNewObjectButton.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight())); + dbNewObjectButton.setToolTipText(MongoBundle.getString(MongoBundle.Key.NewObject)); add(dbNewObjectButton, cc.xy(8, 1)); dbNewObjectButton.setEnabled(false); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |