protected static JButton createToolBarButton(Action a, String label, String tooltip) {
private static JButton createToolBarButton(Action a, String label, String tooltip) {
    protected static JButton createToolBarButton(Action a, String label, String tooltip) {	String label2 = label.toLowerCase();	URL u1 = PatchEdit.class.getResource("/images/" + label2 + ".png");	URL u2 = PatchEdit.class.getResource("/images/disabled-"+label2+".png");	//Create and initialize the button.	JButton button = new JButton(a);	button.setToolTipText(tooltip);		if (u1 != null) {                      //image found	    button.setText(null);	    button.setIcon(new ImageIcon(u1, label));	    if (u2 != null) {		button.setDisabledIcon(new ImageIcon(u2, label));	    }	} else {                                     //no image found	    button.setText(label);	    System.err.println("Resource not found: " + "images/" + label + ".png");	}	return button;    }