1 /****************************************************************************** 2 * The contents of this file are subject to the Compiere License Version 1.1 3 * ("License"); You may not use this file except in compliance with the License 4 * You may obtain a copy of the License at http://www.compiere.org/license.html 5 * Software distributed under the License is distributed on an "AS IS" basis, 6 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 7 * the specific language governing rights and limitations under the License. 8 * The Original Code is Compiere ERP & CRM Business Solution 9 * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc. 10 * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts 11 * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved. 12 * Contributor(s): ______________________________________. 13 *****************************************************************************/ 14 package org.compiere.plaf; 15 16 import javax.swing.JComponent; 17 import javax.swing.plaf.ComponentUI; 18 import javax.swing.plaf.metal.MetalToolBarUI; 19 20 /** 21 * Compiere Tool Bar 22 * 23 * @author Jorg Janke 24 * @version $Id: CompiereToolBarUI.java,v 1.5 2003/09/27 11:08:52 jjanke Exp $ 25 */ 26 public class CompiereToolBarUI extends MetalToolBarUI 27 { 28 /** 29 * Create UI (own instance) 30 * @param c 31 * @return CompiereToolBarUI 32 */ 33 public static ComponentUI createUI (JComponent c) 34 { 35 return new CompiereToolBarUI(); 36 } // createUI 37 38 39 /** 40 * Install UI - not Opaque 41 * @param c 42 */ 43 public void installUI( JComponent c ) 44 { 45 super.installUI (c); 46 c.setOpaque(false); 47 } // installUI 48 49 } // CompiereToolBarUI 50