IconManager im = IconManager.getInstance(registry); Icon zoomInIcon = im.getIcon(IconManager.ZOOMIN); zoomIn = new JButton(zoomInIcon); zoomIn.setToolTipText( UIUtilities.formatToolTipText("Zoom in.")); zoomOut = new JButton(im.getIcon(IconManager.ZOOMOUT)); zoomOut.setToolTipText( UIUtilities.formatToolTipText("Zoom out.")); zoomFit = new JButton(im.getIcon(IconManager.ZOOMFIT)); zoomFit.setToolTipText( UIUtilities.formatToolTipText("Reset.")); zoomField = new JTextField(s, MAX_LETTER.length()); zoomField.setForeground(Viewer.STEELBLUE); zoomField.setToolTipText( UIUtilities.formatToolTipText("zooming percentage."));  tbContainer.setSeparator( UIUtilities.toolBarSeparator(zoomIn, zoomInIcon)); }
IconManager im = IconManager.getInstance(registry); Icon zoomInIcon = im.getIcon(IconManager.ZOOMIN); zoomIn = new JButton(zoomInIcon); zoomIn.setToolTipText( UIUtilities.formatToolTipText("Zoom in.")); zoomOut = new JButton(im.getIcon(IconManager.ZOOMOUT)); zoomOut.setToolTipText( UIUtilities.formatToolTipText("Zoom out.")); zoomFit = new JButton(im.getIcon(IconManager.ZOOMFIT)); zoomFit.setToolTipText( UIUtilities.formatToolTipText("Reset.")); zoomField = new JTextField(s, MAX_LETTER.length()); zoomField.setForeground(Viewer.STEELBLUE); zoomField.setToolTipText( UIUtilities.formatToolTipText("zooming percentage.")); }
	private void initZoomComponents(double magFactor)	{		//buttons        String s = ""+(int)(magFactor*100)+"%";		IconManager im = IconManager.getInstance(registry);		Icon zoomInIcon = im.getIcon(IconManager.ZOOMIN);		zoomIn = new JButton(zoomInIcon);		zoomIn.setToolTipText(			UIUtilities.formatToolTipText("Zoom in."));			zoomOut = new JButton(im.getIcon(IconManager.ZOOMOUT));		zoomOut.setToolTipText(			UIUtilities.formatToolTipText("Zoom out."));		zoomFit = new JButton(im.getIcon(IconManager.ZOOMFIT));		zoomFit.setToolTipText(			UIUtilities.formatToolTipText("Reset."));		zoomField = new JTextField(s, MAX_LETTER.length());		zoomField.setForeground(Viewer.STEELBLUE);		zoomField.setToolTipText(			UIUtilities.formatToolTipText("zooming percentage."));			//Set the separator of tbContainer.		tbContainer.setSeparator(				UIUtilities.toolBarSeparator(zoomIn, zoomInIcon));	}	