--- old/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java 2012-05-21 01:34:08.801658666 +0200 +++ new/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java 2012-05-21 01:34:07.955626594 +0200 @@ -33,6 +33,7 @@ import javax.swing.*; import sun.tools.jconsole.*; +import sun.tools.jconsole.resources.Messages; @SuppressWarnings("serial") public class XPlottingViewer extends PlotterPanel implements ActionListener { @@ -45,10 +46,7 @@ new HashMap(); private static HashMap timerCache = new HashMap(); - private JPanel bordered; - private Number value; private MBeansTab tab; - private XMBean mbean; private String attributeName; private String key; private JTable table; @@ -62,7 +60,6 @@ this.tab = tab; this.key = key; - this.mbean = mbean; this.table = table; this.attributeName = attributeName; Plotter plotter = createPlotter(mbean, attributeName, key, table); @@ -70,9 +67,9 @@ } static void dispose(MBeansTab tab) { - Iterator it = plotterCache.keySet().iterator(); + Iterator it = plotterCache.keySet().iterator(); while(it.hasNext()) { - String key = (String) it.next(); + String key = it.next(); if(key.startsWith(String.valueOf(tab.hashCode()))) { it.remove(); } @@ -187,7 +184,7 @@ final GridBagLayout gbl = new GridBagLayout(); buttonPanel.setLayout(gbl); setLayout(new BorderLayout()); - plotButton = new JButton(Resources.getText("Discard chart")); + plotButton = new JButton(Messages.DISCARD_CHART); plotButton.addActionListener(this); plotButton.setEnabled(true);