File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes TinyLaf in Applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "TinyLaf in Applet?" Watch "TinyLaf in Applet?" New topic

TinyLaf in Applet?

Jonathan Smiths

Joined: Jan 29, 2010
Posts: 15
I would really like to use a theme I created in TinyLaf in my applet.
I created the applet which sets the look and feel to "de.muntjak.tinylookandfeel.TinyLookAndFeel".
When I run the applet in eclipse, everything is fine, the theme is just normally loaded.
When I try to run the applet in firefox, the system default theme is used.
I tried to include a .jar of TinyLaf, I tried uploading the complete workspace of the applet, nothing helps.
I can not get a java-console working in firefox, to view any output or exceptions. Add-ons with a java-console are not supported anymore.
There is very little information/tutorials about TinyLaf on the internet. Could anyone please help me with setting up a TinyLaf theme in an applet?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I haven't tried using a 3rd party LAF in an applet, but I see no reason why it shouldn't work. What does your applet tag look like? How are you setting up the LAF in your code? (The latter question is important since you cannot pass the LAF to the applet JVM via command line system properties).

What do you mean by "I can not get a java-console working in firefox"? Which OS are you on? In general, the Java Plugin has a console in Firefox as it does elsewhere; nothing changed in that regard.
Jonathan Smiths

Joined: Jan 29, 2010
Posts: 15
I was trying to install an add-on in firefox for the java-console functionality. I will try to find an integrated console.
I have included "tinylaf.jar" in the buildpath, that's the only configuration I did.
In my php/html file I included the following code:

In my Applet I included:

I uploaded the jar in the directory of the applet and tried the following code:

And err... it works right now

Thanks for the help
I agree. Here's the link:
subject: TinyLaf in Applet?
It's not a secret anymore!