diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-08-12 15:50:25 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-08-12 15:50:25 -0230 |
commit | 2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b (patch) | |
tree | b460e22e91a9fbb9cfb71631303963fa94dd2c9c /java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java | |
parent | ICE-5492 Tcp Loopback Fast Path for C#/C++ on Windows (diff) | |
download | ice-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/ShowLogPrefsDialog.java')
-rw-r--r-- | java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java b/java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java index 5524c475b0a..1b450d5fdf2 100644 --- a/java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java +++ b/java/src/IceGridGUI/LiveDeployment/ShowLogPrefsDialog.java @@ -17,8 +17,8 @@ import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JOptionPane; -import javax.swing.JPanel; import javax.swing.JTextField; +import javax.swing.WindowConstants; import com.jgoodies.forms.builder.DefaultFormBuilder; import com.jgoodies.forms.builder.ButtonBarBuilder; @@ -26,15 +26,12 @@ import com.jgoodies.forms.factories.Borders; import com.jgoodies.forms.layout.FormLayout; import com.jgoodies.forms.util.LayoutStyle; -import IceGrid.*; -import IceGridGUI.*; - class ShowLogPrefsDialog extends JDialog { ShowLogPrefsDialog(final ShowLogDialog sld) { super(sld, "Preferences - IceGrid Admin", true); - setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); + setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); final JTextField maxLinesField = new JTextField(10); maxLinesField.setText(Integer.toString(sld.getMaxLines())); @@ -59,6 +56,7 @@ class ShowLogPrefsDialog extends JDialog JButton okButton = new JButton("OK"); ActionListener okListener = new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { try @@ -84,6 +82,7 @@ class ShowLogPrefsDialog extends JDialog JButton cancelButton = new JButton("Cancel"); ActionListener cancelListener = new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { dispose(); |