How can I change the colors in an applet?
Things like background color (and font size, color, etc.) are either set by parameter variables or hard-coded.
If they are set by the parameters, there will be <PARAM> tags inside the <APPLET></APPLET> tags that look something like:
<APPLET CODE="myApplet.class">
<PARAM fontcolor="FFFFCC">
<PARAM bgcolor="CCCCCC">
</APPLET>
Now the names of the variables are determined by the programmer, and they may be something cryptic, like "fc" and "bgc".
Look at the HTML that displays the applet, and look at the readme files or any other documentation, and see if there is any mention of parameter tags that can be used to change the background. If you don't (and most of the time you won't) then the values are hard-coded.
If they are hard-coded, you would need access to the .java files that contain the actual Java code. If you have the file(s), you can probably find where the colors are set. You can then change the numbers and recompile with a Java compiler. You can get a free compiler from java.sun.com
If you don't have access to the source code, however, you're out of luck.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|