summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/LiveDeployment/ObjectDialog.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-08-12 15:50:25 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-08-12 15:50:25 -0230
commit2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b (patch)
treeb460e22e91a9fbb9cfb71631303963fa94dd2c9c /java/src/IceGridGUI/LiveDeployment/ObjectDialog.java
parentICE-5492 Tcp Loopback Fast Path for C#/C++ on Windows (diff)
downloadice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.tar.bz2
ice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.tar.xz
ice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.zip
Added eclipse project settings for java.
Fix lots of warnings in Ice for Java.
Diffstat (limited to 'java/src/IceGridGUI/LiveDeployment/ObjectDialog.java')
-rw-r--r--java/src/IceGridGUI/LiveDeployment/ObjectDialog.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/java/src/IceGridGUI/LiveDeployment/ObjectDialog.java b/java/src/IceGridGUI/LiveDeployment/ObjectDialog.java
index 8aace6265f2..47516374d64 100644
--- a/java/src/IceGridGUI/LiveDeployment/ObjectDialog.java
+++ b/java/src/IceGridGUI/LiveDeployment/ObjectDialog.java
@@ -9,11 +9,7 @@
package IceGridGUI.LiveDeployment;
-import java.awt.BorderLayout;
import java.awt.Container;
-import java.awt.Dimension;
-import java.awt.Frame;
-
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@@ -23,10 +19,10 @@ import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JFrame;
-import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
+import javax.swing.WindowConstants;
import com.jgoodies.forms.builder.DefaultFormBuilder;
import com.jgoodies.forms.builder.ButtonBarBuilder;
@@ -43,7 +39,7 @@ class ObjectDialog extends JDialog
super(root.getCoordinator().getMainFrame(),
(readOnly ? "" : "New ") + "Dynamic Well-Known Object - IceGrid Admin", true);
- setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
+ setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
_mainFrame = root.getCoordinator().getMainFrame();
_proxy.setLineWrap(true);
@@ -95,6 +91,7 @@ class ObjectDialog extends JDialog
JButton okButton = new JButton("OK");
ActionListener okListener = new ActionListener()
{
+ @Override
public void actionPerformed(ActionEvent e)
{
if(_proxy.isEditable())
@@ -122,6 +119,7 @@ class ObjectDialog extends JDialog
JButton cancelButton = new JButton("Cancel");
ActionListener cancelListener = new ActionListener()
{
+ @Override
public void actionPerformed(ActionEvent e)
{
setVisible(false);
@@ -169,6 +167,7 @@ class ObjectDialog extends JDialog
static private final Object QUERY_OBJECT = new Object()
{
+ @Override
public String toString()
{
return "Query object to retrieve type";