001 /* steelme theme manager for Java 002 * Copyright (C) 2000 - 2004 T.J. Willis 003 * 004 * This program is free software; you can redistribute it and/or 005 * modify it under the terms of the GNU General Public License 006 * as published by the Free Software Foundation; either version 2 007 * of the License, or (at your option) any later version. 008 * 009 * This program is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 * GNU General Public License for more details. 013 * 014 * You should have received a copy of the GNU General Public License 015 * along with this program; if not, write to the Free Software 016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. 017 * 018 * $Header: /cvsroot/steelme/steelme/src/net/sourceforge/steelme/ThemeResistantJMenuItem.java,v 1.1.1.1 2004/05/10 14:28:30 tj_willis Exp $ 019 */ 020 package net.sourceforge.steelme; 021 022 import javax.swing.*; 023 import java.awt.*; 024 025 // won't change color when theme is changed... 026 /** 027 * Describe class <code>ThemeResistantJButton</code> here. 028 * 029 * @author <a href="mailto:tj_willis@users.sourceforge.net">T.J. Willis</a> 030 * @version 1.0 031 */ 032 public class ThemeResistantJMenuItem extends JMenuItem { 033 034 035 public ThemeResistantJMenuItem(String s){ super(s); } 036 /** 037 * Describe <code>setBackground</code> method here. 038 * 039 * @param c a <code>Color</code> value 040 */ 041 public void setBackground(Color c) {} 042 043 public void setFont(Font f) { } 044 public void setForeground(Color c) { } 045 046 /** 047 * Describe <code>setMyBackground</code> method here. 048 * 049 * @param c a <code>Color</code> value 050 */ 051 public void setMyBackground(Color c) { 052 super.setBackground(c); 053 } 054 055 /** 056 * Describe <code>setMyForeground</code> method here. 057 * 058 * @param c a <code>Color</code> value 059 */ 060 public void setMyForeground(Color c) { 061 super.setForeground(c); 062 } 063 064 /** 065 * Describe <code>setMyFont</code> method here. 066 * 067 * @param c a <code>Font</code> value 068 */ 069 public void setMyFont(Font c) { 070 super.setFont(c); 071 } 072 073 074 }