< prev index next >

src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java

Print this page
rev 1501 : 7017818: NLS: JConsoleResources.java cannot be handled by translation team
Reviewed-by: mchung, mfang

*** 46,59 **** // The plotter cache holds Plotter instances for the various attributes private static HashMap<String, XPlottingViewer> plotterCache = new HashMap<String, XPlottingViewer>(); private static HashMap<String, Timer> timerCache = new HashMap<String, Timer>(); - private JPanel bordered; - private Number value; private MBeansTab tab; - private XMBean mbean; private String attributeName; private String key; private JTable table; private XPlottingViewer(String key, XMBean mbean, --- 46,56 ----
*** 63,83 **** MBeansTab tab) { super(null); this.tab = tab; this.key = key; - this.mbean = mbean; this.table = table; this.attributeName = attributeName; Plotter plotter = createPlotter(mbean, attributeName, key, table); setupDisplay(plotter); } static void dispose(MBeansTab tab) { ! Iterator it = plotterCache.keySet().iterator(); while(it.hasNext()) { ! String key = (String) it.next(); if(key.startsWith(String.valueOf(tab.hashCode()))) { it.remove(); } } //plotterCache.clear(); --- 60,79 ---- MBeansTab tab) { super(null); this.tab = tab; this.key = key; this.table = table; this.attributeName = attributeName; Plotter plotter = createPlotter(mbean, attributeName, key, table); setupDisplay(plotter); } static void dispose(MBeansTab tab) { ! Iterator<String> it = plotterCache.keySet().iterator(); while(it.hasNext()) { ! String key = it.next(); if(key.startsWith(String.valueOf(tab.hashCode()))) { it.remove(); } } //plotterCache.clear();
*** 185,195 **** //Create Plotter display private void setupDisplay(Plotter plotter) { //setLayout(new GridLayout(2,0)); GridBagLayout gbl = new GridBagLayout(); setLayout(gbl); ! plotButton = new JButton(Resources.getText("Discard chart")); plotButton.addActionListener(this); plotButton.setEnabled(true); // Add the display to the top four cells GridBagConstraints buttonConstraints = new GridBagConstraints(); --- 181,191 ---- //Create Plotter display private void setupDisplay(Plotter plotter) { //setLayout(new GridLayout(2,0)); GridBagLayout gbl = new GridBagLayout(); setLayout(gbl); ! plotButton = new JButton(Messages.DISCARD_CHART); plotButton.addActionListener(this); plotButton.setEnabled(true); // Add the display to the top four cells GridBagConstraints buttonConstraints = new GridBagConstraints();
< prev index next >