--- old/src/share/classes/sun/tools/jconsole/inspector/XOperations.java 2012-05-11 14:52:00.856143541 +0200 +++ new/src/share/classes/sun/tools/jconsole/inspector/XOperations.java 2012-05-11 14:52:00.012111774 +0200 @@ -26,23 +26,20 @@ package sun.tools.jconsole.inspector; import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.tree.*; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.FlowLayout; import java.awt.Component; import java.awt.event.*; import java.util.*; -import java.io.*; import javax.management.*; -import sun.tools.jconsole.Resources; import sun.tools.jconsole.MBeansTab; import sun.tools.jconsole.JConsole; +import sun.tools.jconsole.resources.Messages; +@SuppressWarnings("serial") public abstract class XOperations extends JPanel implements ActionListener { public final static String OPERATION_INVOCATION_EVENT = @@ -185,8 +182,8 @@ } else { new ThreadDialog( button, - Resources.getText("Method successfully invoked"), - Resources.getText("Info"), + Messages.METHOD_SUCCESSFULLY_INVOKED, + Messages.INFO, JOptionPane.INFORMATION_MESSAGE).run(); } } catch (Throwable t) { @@ -196,9 +193,9 @@ } new ThreadDialog( button, - Resources.getText("Problem invoking") + " " + + Messages.PROBLEM_INVOKING + " " + button.getText() + " : " + t.toString(), - Resources.getText("Error"), + Messages.ERROR, JOptionPane.ERROR_MESSAGE).run(); } }