public static void metroStyleTitlebar(JInternalFrame internalFrame)
	{
		JComponent     title = ((BasicInternalFrameUI)internalFrame.getUI()).getNorthPane();
	    for (int i = 0; i < title.getComponentCount(); i++) {
	        JComponent component = (JComponent)title.getComponent(i);
	        if(component instanceof JButton) {
	            JButton button = ((JButton)component);
	            if(button.getName() == null) continue;
	            if(button.getName().endsWith("closeButton")) {
	                button.setIcon(close);
	                button.setSelectedIcon(closeHighlighted);
	                button.setPressedIcon(closePressed);
	            }
	            else if(button.getName().endsWith("maximizeButton")) {
	            	button.setIcon(max);
	                button.setSelectedIcon(maxHighlighted);
	                button.setPressedIcon(maxPressed);
	            }
	        }
	    }
	    
	}