OYOAHA LookAndFeel v3.0rc1
Thank you for using oyoaha lookandfeel, oyoaha lookandfeel will provide an amazing look to your javaTM application, enjoy ;-)

Contact:

Home Page:
http://www.oyoaha.com/lookandfeel
oyoaha theme factory:
http://www.oyoaha.com/themes
E-mail:
email@oyoaha.com

Using OYOAHA LookAndFeel:

java.lang.Object
+ | javax.swing.LookAndFeel
| + | javax.swing.plaf.basic.BasicLookAndFeel
|  | + | javax.swing.plaf.metal.MetalLookAndFeel
|  |  | + | com.oyoaha.swing.plaf.oyoaha.OyoahaLookAndFeel

Constructor

public OyoahaLookAndFeel()
public OyoahaLookAndFeel(boolean enableRollover)

Methods to set a MetalTheme:

public void setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
public void setCurrentTheme(java.io.File file)
public void setCurrentTheme(java.net.URL url)
public void setCurrentTheme(java.io.InputStream stream)

Methods to set a oyoaha theme:

public void setOyoahaTheme(java.io.File file)
public void setOyoahaTheme(java.net.URL url)
public void setOyoahaTheme(java.io.InputStream stream)

MetalTheme and OyoahaTheme can be used at same time.
By default rollover is enabled.
Some OyoahaTheme may use color and font information found in MetalTheme.
For more information about MetalTheme look:

- the MetalLookAndFeel documention
- the MetalTheme documention
- the Metalworks demo from the JDK

To use oyoaha lookandfeel without oyoaha theme:

import com.oyoaha.swing.plaf.oyoaha.*; import javax.swing.*; try {
| OyoahaLookAndFeel lnf = new OyoahaLookAndFeel(); UIManager.setLookAndFeel(lnf);
} catch (Exception e) { }

To use oyoaha lookandfeel with a oyoaha theme (*.otm) File:

import com.oyoaha.swing.plaf.oyoaha.*; import javax.swing.*; import java.io.*; try {
| File file = new File(System.getProperty("user.dir"), "gang.otm"); OyoahaLookAndFeel lnf = new OyoahaLookAndFeel(); if(file.exists()) lnf.setOyoahaTheme(file); UIManager.setLookAndFeel(lnf);
} catch (Exception e) { }

To use oyoaha lookandfeel with a oyoaha theme loaded from resource:

import com.oyoaha.swing.plaf.oyoaha.*; import javax.swing.*; import java.net.*; try {
| OyoahaLookAndFeel lnf = new OyoahaLookAndFeel(); URL url = getClass().getResource("gang.otm"); lnf.setOyoahaTheme(url); UIManager.setLookAndFeel(lnf);
} catch (Exception e) { }

To use oyoaha lookandfeel with a oyoaha theme and a MetalTheme loaded from resource:

import com.oyoaha.swing.plaf.oyoaha.*; import javax.swing.*; import java.net.*; try {
| URL url = getClass().getResource("pink.theme"); OyoahaLookAndFeel.setCurrentTheme(url); OyoahaLookAndFeel lnf = new OyoahaLookAndFeel(); url = getClass().getResource("gang.otm"); lnf.setOyoahaTheme(url); UIManager.setLookAndFeel(lnf);
} catch (Exception e) { }

Here's a code snippets which is provided by Bradlee bradleej@austin.rr.com, thanks to him :-)
It's for use in an application environment, a properties file which allows changing the runtime look without recompiling the application. Basically the properties file looks like this:
tgang.otm
// Copy and paste one of the following values to use that theme
//Valid valudes for the first line are:
zipper.otm
slushy.otm
tgang.otm
flat1.otm
anidaisy.otm
At the top line, before the comment, tgang.otm is being specified as the current look and feel. All that is required to change that is for the user to select one of the other otm names listed and cut & paste that to the first line.

import com.oyoaha.swing.plaf.oyoaha.*;
import javax.swing.*;
//----------------------------------------------------------------------
/** Main path
*
*/
private static final String THEME= "com" + File.separator + "myapplication" + File.separator + "themes" + File.separator;
//----------------------------------------------------------------------
//Set the look and feel of the frame.
private void setLookAndFeel()
{

try {
| OyoahaLookAndFeel lnf = new OyoahaLookAndFeel(); URL url = new File(THEME+getLookAndFeel()).toURL(); lnf.setOyoahaTheme(url); UIManager.setLookAndFeel(lnf);
} catch (Exception e) { }

} //---------------------------------------------------------------------- /** Read the specified look and feel from the properties file... */ //---------------------------------------------------------------------- private String getLookAndFeel() {

BufferedReader in=null; String LandF=null; try {
| in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(PATH+"lookandfeel.properties")))); LandF = in.readLine(); in.close();
} catch (Exception e) { } return LandF;

}

License Agreement for Oyoaha Lookandfeel:

You may use it and distribute it according to this following License Agreement. If you do not agree with these terms, please remove oyoaha lookandfeel from your system. By incorporating oyoaha lookandfeel in your work or distributing oyoaha lookandfeel to others you implicitly agree to these license terms.

This License Agreement covers the current version of oyoaha lookandfeel but not the oyoaha themes, oyoaha themes may have theirs own License Agreement. We reserve the right to modify the terms of this License Agreement at any moment, and without prior notification, in future releases of the oyoaha lookandfeel.

You may freely and at no cost use oyoaha lookandfeel in any project, commercial, academic, or private, as long as you respect the License Agreement. The License Agreement does not affect any software except oyoaha lookandfeel.

OYOAHA THEMES:

This Licence Agreement does not cover the oyoaha themes which may have their own Licence Agreement. Regarding the oyoaha themes downloaded from the oyoaha web site, www.oyoaha.com, AND without prior notice, the License Agreement for Oyoaha Theme must be applied.

RIGHTS OF DISTRIBUTION:

You may freely distribute oyoaha lookandfeel.
You may charge a fee for distributing oyoaha lookandfeel.
You do not need our permission for any of these activities.

STATEMENT OF COPYRIGHT

oyoaha lookandfeel is, and remains, copyright (c) 2000, 2001 oyoaha, with exception of specific copyrights as noted in bottom of this document.

RESTRICTION

You may not decompile, reverse engineer, disassemble, or otherwise reduce oyoaha lookandfeel to a human-perceivable form.

DISCLAIMER

oyoaha lookandfeel is provided "as is" without warranty of any kind. The entire risk, as to the results and performance of the program is assumed by you. Should the program prove defective, you assume the entire cost of all necessary servicing, repair or correction. We will not be liable for any damages, including but not limited to system damage, service, repair, correction, loss of profit, lost savings, or any other incidental, consequential, or special damages of any nature whatsoever resulting from the use or inability to use this product.

License Agreement for Oyoaha Theme:

You may use it and distribute it according to this following License Agreement. If you do not agree with these terms, please remove this oyoaha theme from your system. By incorporating this oyoaha theme in your work or distributing oyoaha lookandfeel to others you implicitly agree to these license terms.

This License Agreement covers the current version of this oyoaha theme. We reserves the right to modify the terms of this License Agreement at any moment, and without prior notification, in future releases of this oyoaha theme.

You may freely and at no cost use this oyoaha theme in any project, commercial, academic, or private, as long as you respect the License Agreement. The License Agreement does not affect any software except this oyoaha theme.

RIGHTS OF DISTRIBUTION:

You may freely distribute oyoaha lookandfeel.
You may charge a fee for distributing oyoaha lookandfeel.
You do not need our permission for any of these activities.

RESTRICTION

You may not decompile, reverse engineer, disassemble, or otherwise reduce this oyoaha theme to a human-perceivable form.

DISCLAIMER

This product is provided "as is" without warranty of any kind. The entire risk, as to the results and performance of the program is assumed by you. Should the program prove defective, you assume the entire cost of all necessary servicing, repair or correction. We will not be liable for any damages, including but not limited to system damage, service, repair, correction, loss of profit, lost savings, or any other incidental, consequential, or special damages of any nature whatsoever resulting from the use or inability to use this product.

Legal stuff:

Copyright (c) 2000, 2002 oyoaha. All rights reserved.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

Some of the product names used are trademarks or registered trademarks of their respective holders and are used for identification purposes only.

This software use AElfred (Microstar's Java-Based XML Parser).
Copyright (c) 1997, 1998 by Microstar Software Ltd.
Home Page: http://www.microstar.com/XML/