[Jarspy-commits] CVS: JarSpy/src/com/ociweb/gui ChangeLookAndFeelAction.java,1.4,1.5
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-10-18 00:00:32
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/gui
In directory usw-pr-cvs1:/tmp/cvs-serv6765/src/com/ociweb/gui
Modified Files:
ChangeLookAndFeelAction.java
Log Message:
fix some kunststoff theme switching issues
Index: ChangeLookAndFeelAction.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/gui/ChangeLookAndFeelAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ChangeLookAndFeelAction.java 17 Oct 2002 23:47:53 -0000 1.4
--- ChangeLookAndFeelAction.java 18 Oct 2002 00:00:29 -0000 1.5
***************
*** 19,22 ****
--- 19,24 ----
package com.ociweb.gui;
+ import com.incors.plaf.kunststoff.KunststoffLookAndFeel;
+ import com.incors.plaf.kunststoff.KunststoffTheme;
import java.awt.Component;
import java.awt.event.ActionEvent;
***************
*** 55,59 ****
// to metal
if (laf instanceof MetalLookAndFeel) {
! ((MetalLookAndFeel) laf).setCurrentTheme(new DefaultMetalTheme());
}
} catch (Exception e) {
--- 57,65 ----
// to metal
if (laf instanceof MetalLookAndFeel) {
! if (laf instanceof KunststoffLookAndFeel) {
! ((KunststoffLookAndFeel) laf).setCurrentTheme(new KunststoffTheme());
! } else {
! ((MetalLookAndFeel) laf).setCurrentTheme(new DefaultMetalTheme());
! }
}
} catch (Exception e) {
|