static void setToolBarButton(AbstractButton b, boolean disabled) {
		b.setOpaque(false);
		b.setHorizontalAlignment(SwingConstants.CENTER);
		b.setBorderPainted(false);
		b.setFocusPainted(false);
		if (!(b instanceof JToggleButton))
			b.setRequestFocusEnabled(false);
		b.setMargin(new Insets(0, 0, 0, 0));
		if (disabled && windowCount == 0)
			b.setEnabled(false);
		String text = b.getText();
		if (text != null && !text.equals("")) {
			FontMetrics fm = b.getFontMetrics(b.getFont());
			int w = fm.stringWidth(text) + b.getIconTextGap() + b.getIcon().getIconWidth();
			b.setPreferredSize(new Dimension(w + 12, 26));
		}
		else {
			b.setPreferredSize(new Dimension(26, 26));
		}
	}