|
What this is
Other links
The source code/* * 12:00:00 15/12/02 * * GenericSkin.java - A generic Skin implementation, useful for most Look and Feel's. * Copyright (C) 2002 Paolo Giarrusso * blaisorblade_work@yahoo.it * www.jext.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package org.jext.gui; import javax.swing.UIManager; import javax.swing.LookAndFeel; /** * This is a generic skin class which will be able to wrap most possible skin, * actually the normal LookAndFeel's. If you need special processing, write * your own Skin interface implementation or extend this one. */ public class GenericSkin extends Skin { private String name; private String intName; protected String lafClassName = null; protected LookAndFeel laf; protected ClassLoader skLoader = null; /** * Constructor; use it to provide the caption, the internal name and the name of * the class to use as LookAndFeel(the same you would pass to UIManager.setLookAndFeel). */ public GenericSkin(String name, String intName, String lafClassName) { this(name, intName, lafClassName, null); } /** * Constructor; use it to provide the caption, the internal name, the name of * the class to use as LookAndFeel(the same you would pass to UIManager.setLookAndFeel) * and the ClassLoader that will be used to load the LookAndFeel and related classes; * useful especially if you write a plugin. * In this case pass as classLoader |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.