--- old/src/share/classes/sun/tools/jconsole/BorderedComponent.java 2012-05-11 14:50:19.240319491 +0200 +++ new/src/share/classes/sun/tools/jconsole/BorderedComponent.java 2012-05-11 14:50:18.393287618 +0200 @@ -33,11 +33,11 @@ import javax.swing.plaf.*; import javax.swing.plaf.basic.BasicGraphicsUtils; +import sun.tools.jconsole.resources.Messages; + import static javax.swing.SwingConstants.*; import static sun.tools.jconsole.JConsole.*; -import static sun.tools.jconsole.Resources.*; -import static sun.tools.jconsole.Utilities.*; @SuppressWarnings("serial") public class BorderedComponent extends JPanel implements ActionListener { @@ -47,8 +47,6 @@ JComponent comp; boolean collapsed = false; - private JPopupMenu popupMenu; - private Icon collapseIcon; private Icon expandIcon; @@ -100,7 +98,7 @@ moreOrLessButton.setMargin(new Insets(0, 0, 0, 0)); moreOrLessButton.addActionListener(this); String toolTip = - getText("BorderedComponent.moreOrLessButton.toolTip"); + Messages.BORDERED_COMPONENT_MORE_OR_LESS_BUTTON_TOOLTIP; moreOrLessButton.setToolTipText(toolTip); borderLabel.add(moreOrLessButton); borderLabel.setSize(borderLabel.getPreferredSize()); @@ -136,7 +134,7 @@ public void setValueLabel(String str) { this.valueLabelStr = str; if (label != null) { - label.setText(Resources.getText("Current value",valueLabelStr)); + label.setText(Resources.format(Messages.CURRENT_VALUE, valueLabelStr)); } } @@ -151,7 +149,7 @@ remove(comp); if (valueLabelStr != null) { if (label == null) { - label = new JLabel(Resources.getText("Current value", + label = new JLabel(Resources.format(Messages.CURRENT_VALUE, valueLabelStr)); } add(label); @@ -439,8 +437,6 @@ * @param insets the object to be reinitialized */ public Insets getBorderInsets(Component c, Insets insets) { - int height = 16; - Border border = getBorder(); if (border != null) { if (border instanceof AbstractBorder) {