Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

junk.gui
Class JXLookAndFeel  view JXLookAndFeel download JXLookAndFeel.java

java.lang.Object
  extended byjunk.gui.JXLookAndFeel
All Implemented Interfaces:
java.awt.event.AWTEventListener, java.util.EventListener

public class JXLookAndFeel
extends java.lang.Object
implements java.awt.event.AWTEventListener

JXLookAndFeel provides the Java cross platform metal look and feel support on the JD4X system as a default. However, once the JD4X windowing module can support its own look and feel, this class may be deprecated. The advantage of keeping this implementation is that it depends on the J2SDK AWT and therefore it will be more portable than the JD4X windowing module. The disadvantage is that it is undependable and may result in inconsistant heavy weight component behaviour because the AWT depends on an existing desktop windowing manager that do not exist in the JD4X system without the windowing module. The reason that it is being introduced at this stage is because it can stand in as a temporary replacement for the windowing module. Clients should not depend on this implementation for proper desktop GUI support because it leaves the client with very limited customizing options.
IMPORTANT: This class is deprecated as of 08/06/2003. Moth should be used instead for dependable windowing behavior. This class remains in the JD4X distribution only for porting purposes. Do not use this class togather with Moth as it duplicates the work done by Moth.

Since:
JD4X 1.0
Version:
0.1, 08/05/2002

Constructor Summary
private JXLookAndFeel()
          Disallow an instance of this class to be created.
 
Method Summary
 void eventDispatched(java.awt.AWTEvent event)
          Invoked when an event is dispatched in the AWT.
static void supportJavaLookNFeel()
          Provide support for the Java Metal Look & Feel in the JD4X system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXLookAndFeel

private JXLookAndFeel()
Disallow an instance of this class to be created. It is only meant to be a static utility tool.

Method Detail

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
Invoked when an event is dispatched in the AWT. It uses some very simple windowing techiques to provide a cheap hack on the heavy weight desktop components. This method has been depricated!

Specified by:
eventDispatched in interface java.awt.event.AWTEventListener

supportJavaLookNFeel

public static void supportJavaLookNFeel()
                                 throws java.lang.ClassNotFoundException,
                                        java.lang.InstantiationException,
                                        java.lang.IllegalAccessException,
                                        javax.swing.UnsupportedLookAndFeelException
Provide support for the Java Metal Look & Feel in the JD4X system.