[jsword-svn] common/java/swing/org/crosswire/common/swing s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sat Apr 23 04:58:22 MST 2005
Update of /cvs/jsword/common/java/swing/org/crosswire/common/swing
In directory www.crosswire.org:/tmp/cvs-serv22806/java/swing/org/crosswire/common/swing
Modified Files:
LookAndFeelUtil.java
Log Message:
Put in a bypass for the GTK LookAndFeel. JSword looks terrible with it.
Index: LookAndFeelUtil.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/LookAndFeelUtil.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** LookAndFeelUtil.java 8 Sep 2004 19:54:24 -0000 1.7
--- LookAndFeelUtil.java 23 Apr 2005 11:58:19 -0000 1.8
***************
*** 104,109 ****
try
{
! UIManager.setLookAndFeel(systemLAF);
! defaultLAF = Class.forName(systemLAF);
}
catch (ClassNotFoundException e)
--- 104,113 ----
try
{
! // NOTE(DM): test with the gtk laf before allowing it.
! if (systemLAF.indexOf("gtk") == -1) //$NON-NLS-1$
! {
! UIManager.setLookAndFeel(systemLAF);
! defaultLAF = Class.forName(systemLAF);
! }
}
catch (ClassNotFoundException e)
More information about the jsword-svn
mailing list