From: <ka...@us...> - 2010-07-12 20:02:02
|
Revision: 3378 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3378&view=rev Author: kappa1 Date: 2010-07-12 20:01:56 +0000 (Mon, 12 Jul 2010) Log Message: ----------- AppletLoader: Remove the boxerrorcolor parameter, there is not much advantage in having different color error message font, its better to have a nice consistent error message then to try scare the user. Also simplifies the AppletLoader api by reducing the number of parameters. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2010-07-12 12:04:56 UTC (rev 3377) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2010-07-12 20:01:56 UTC (rev 3378) @@ -110,7 +110,7 @@ * <ul> * <li>al_version - [int or float] Version of deployment. If this is specified, the jars will be cached and * reused if the version matches. If version doesn't match all of the files are reloaded.</li> - * <li>al_cache - [boolean] Whether to use cache system. If al_version is used then cache is not used. <i>Default: true</i>.</li> + * <li>al_cache - [boolean] Whether to use cache system. <i>Default: true</i>.</li> * <li>al_debug - [boolean] Whether to enable debug mode. <i>Default: false</i>.</li> * <li>al_prepend_host - [boolean] Whether to limit caching to this domain, disable if your applet is hosted on multple domains and needs to share the cache. <i>Default: true</i>.</li> * <ul> @@ -121,7 +121,6 @@ * <ul> * <li>boxbgcolor - [String] any String AWT color ("red", "blue", etc), RGB (0-255) or hex formated color (#RRGGBB) to use as background. <i>Default: #ffffff</i>.</li> * <li>boxfgcolor - [String] any String AWT color ("red", "blue", etc), RGB (0-255) or hex formated color (#RRGGBB) to use as foreground. <i>Default: #000000</i>.</li> - * <li>boxerrorcolor - [String] any String AWT color ("red", "blue", etc), RGB (0-255) or hex formated color (#RRGGBB) to use as foreground color on error. <i>Default: #ff0000</i>.</li> * </ul> * </p> * @author kappaOne @@ -190,9 +189,6 @@ /** background color of applet */ protected Color bgColor = Color.white; - - /** Color to write errors in */ - protected Color errorColor = Color.red; /** color to write foreground in */ protected Color fgColor = Color.black; @@ -288,10 +284,8 @@ // get colors of applet bgColor = getColor("boxbgcolor", Color.white); setBackground(bgColor); + fgColor = getColor("boxfgcolor", Color.black); - fgColor = getColor("boxfgcolor", Color.black); - errorColor = getColor("boxerrorcolor", Color.red); - // load logos logo = getImage(getParameter("al_logo")); progressbar = getImage(getParameter("al_progressbar")); @@ -462,7 +456,6 @@ int messageX = (offscreen.getWidth(null) - fm.stringWidth(errorMessage[i])) / 2; int messageY = (offscreen.getHeight(null) - (fm.getHeight() * errorMessage.length)) / 2; - og.setColor(errorColor); og.drawString(errorMessage[i], messageX, messageY + i*fm.getHeight()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |