aspose file tools*
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
JavaRanch » Java Forums » Java » Applets
Bookmark "TinyLaf in Applet?" Watch "TinyLaf in Applet?" New topic
Author

TinyLaf in Applet?

Jonathan Smiths
Greenhorn

Joined: Jan 29, 2010
Posts: 14
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
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Jonathan Smiths
Greenhorn

Joined: Jan 29, 2010
Posts: 14
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: http://aspose.com/file-tools
 
subject: TinyLaf in Applet?
 
Similar Threads
Signed Applet
TinyLaF Look and Feel v1.3.05
Problem in displaying file contents from applet
TinyLaF 1.3.0 - free Java LookAndFeel
How to reference Applets in a Java Web Application