1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=userguide.look_and_feel.html">
4
<link rel="stylesheet" href="stylesheet.css" type="text/css">
5
<title>FreeGuide Look and Feel FAQ</title>
4
<title>Page moved - redirecting</title>
9
<address><a href="index.html">Home</a> | <a href="README.html">README</a> | <a href="FAQ.html">FAQ</a> | <a href="userguide.html">User Guide</a> | <a href="LookAndFeel.html">Look and Feel Guide</a> | <a href="timezone.html">Timezones</a> | <a href="developers.html">Developers</a> | <a href="design.html">Design Document</a> | <a href="INSTALL-linux-noxmltv.html">Linux XMLTV Install</a> | <a href="contributors.html">Contributors</a></address>
11
<div style="float:right"><a href="http://sourceforge.net/projects/freeguide-tv/"><img src="http://sourceforge.net/sflogo.php?group_id=35309&type=1" width="88" height="31" border="0" alt="SourceForge Logo"></a></div>
13
<h1>FreeGuide Look and Feel FAQ</h1>
16
<li><a href="#skinsupport">Does FreeGuide support skins/themes?</a></li>
17
<li><a href="#whatarelafs">What are Looks and Feels?</a></li>
18
<li><a href="#settinglafs">How do I set the L&F used by FreeGuide?</a></li>
19
<li><a href="#installinglafs">How do I install new L&F's?</a></li>
20
<li><a href="#whatisgtk+">What about the GTK+ L&F?</a></li>
21
<li><a href="#installgtk+">Do I need to install GTK+ to use the GTK+ L&F?</a></li>
22
<li><a href="#whereisgtk+">The GTK+ L&F sounds great, but it's not listed as available. Why not?</a></li>
23
<li><a href="#windowsgtk+">I have Java 2 version 1.4.2 or above and I still don't see GTK+. What's wrong?</a></li>
24
<li><a href="#moregtk+themes">Where can I get more GTK+ themes?</a></li>
25
<li><a href="#supportedgtk+themes">My GTK+ theme doesn't look right (or doesn't work). What's wrong?</a></li>
26
<li><a href="#issupportedgtk+theme">So, how do I know if a GTK+ theme is supported?</a></li>
27
<li><a href="#gtk+themes">You said the GTK+ L&F supports themes. How do I change my theme?</a></li>
28
<li><a href="#gtk+changedtheme">Why doesn't FreeGuide notice when I change my System GTK+ theme?</a></li>
29
<li><a href="#slow">Since I changed my L&F, FreeGuide seems slow. Why?</a></li>
30
<li><a href="#slowerstartup">Since I changed my L&F, FreeGuide seems to take 4.5ms longer to start up. Why?</a></li>
31
<li><a href="#morelafs">Where can I find more L&F's?</a></li>
32
<li><a href="FAQ.html#morequestions">How do I ask more questions?</a></li>
35
<h2><a name="skinsupport"></a>Does FreeGuide support skins/themes?</h2>
37
<p>FreeGuide (starting with version 0.7) supports Java's Pluggable Look and Feel (L&F). Most of the available L&F's provide a single "look," but some, such as the GTK+ and Synth Looks and Feels, provide support for themes (skins).</p>
39
<h2><a name="whatarelafs"></a>What are Looks and Feels?</h2>
41
<p>Looks and Feels (L&F's) are a means by which a programmer or an end-user can change the appearance of a Java application without rewriting or recompiling the application.</p>
43
<h2><a name="settinglafs"></a>How do I set the L&F used by FreeGuide?</h2>
45
<p>Select <tt>Tools|Options</tt> from the FreeGuide menu. The options for <tt>Layout</tt> include a combo box (drop down list) that lists all of the L&F's available on your system. Select the L&F you want to use and click the <tt>OK</tt> button.</p>
47
<p>If you have installed a L&F that FreeGuide was unable to identify, you may type its class name into the combo box. Note that you must provide the fully-qualified classname--one that includes several words separated by periods, such as <tt>javax.swing.plaf.metal.MetalLookAndFeel</tt>. The fully qualified classname should be given in the L&F's documentation.</p>
49
<p>If you type in the class name and nothing happens, FreeGuide is unable to find the specified class. Make sure you spelled the class name correctly. If everything is spelled correctly, make sure you <a href="#installinglafs">installed the L&F</a> correctly.</p>
51
<h2><a name="installinglafs">How do I install new L&F's.</a></h2>
53
<p>When you <a href="#morelafs">download</a> a L&F, it should include instructions for installing the L&F. Some may have requirements that others do not; for example, some will require you to specify additional information on the command line to use the L&F. Therefore, it is important that you read the instructions that came with your L&F.</p>
55
<p>In all cases, however, the L&F must appear in FreeGuide's classpath. To include the L&F in the classpath, modify the shortcut you are using to start FreeGuide to include the <tt>-classpath</tt> command-line option. The command line should look something like those shown below (make sure you use the correct locations for your files):</p>
59
javaw -classpath "C:\path\to\my\LookAndFeel.jar" -jar "C:\Program Files\FreeGuide\FreeGuide.jar"
61
<p>Or, for Unix-like operating systems:</p>
63
java -classpath "/path/to/my/LookAndFeel.jar" -jar "/usr/share/freeguide/FreeGuide.jar"
66
<h2><a name="whatisgtk+">What about the GTK+ L&F?</a></h2>
68
<p>The GTK+ L&F was designed to provide the look and feel of a native application developed with the <a href="http://www.gtk.org/">GTK+</a> toolkit (as are many applications for Unix-like operating systems--such as GNU/Linux--and even some applications that run on Windows). Since the GTK+ toolkit provides support for themes (which are functionally equivalent to skins), the GTK+ L&F provides theme/skin support.</p>
70
<h2><a name="installgtk+">Do I need to install GTK+ to use the GTK+ L&F?</a></h2>
72
<p>No. The GTK+ L&F performs the work normally accomplished by GTK+ theme engines to allow its use on any system--regardless of whether the system uses (or even supports) GTK+. Therefore, as long as you have the GTK+ L&F <a href="#whereisgtk+">available</a>, you can use the GTK+ L&F. Note that you will also need to <a href="#gtk+themes">make GTK+ themes available</a> to use different GTK+ themes.</p>
74
<h2><a name="whereisgtk+">The GTK+ L&F sounds great, but it's not listed as available. Why not?</a></h2>
76
<p>The GTK+ L&F is a brand-new addition to Java. It is only included in Java 2 version 1.4.2 and above. Make sure you have the right version of Java. You can determine your Java version by executing the following command from the Command Prompt or shell:</p>
82
<p>If you're using Microsoft Windows, please see the <a href="windowsgtk+">next question</a>.</p>
84
<h2><a name="windowsgtk+">I have Java 2 version 1.4.2 or above and I still don't see GTK+. What's wrong?</a></h2>
86
<p>Sun decided not to include the GTK+ L&F with the Java 2 Runtime Environment (JRE) for Windows. Currently, the only available option is to install the <a href="http://java.sun.com/j2se/1.4.2/download.html">Java 2 Software Development Kit (SDK)</a> for Windows. NOTE: You do not need the J2EE with J2SE package or the NetBeans IDE with J2SE COBUNDLE. You want J2SE SDK.</p>
88
<p>If you're not using Windows, you may be using an implementation of Java that was created by a vendor other than Sun Microsystems. If that's the case, you will need to <a href="http://java.sun.com/j2se/1.4.2/download.html">download</a> Sun's implementation of Java to get the GTK+ theme. If Sun doesn't provide a version for your platform, you're out of (legal) options.</p>
90
<h2><a name="moregtk+themes">Where can I get more GTK+ themes?</a></h2>
92
<p>GTK+ themes are available from a number of websites, including <a href="http://art.gnome.org/themes/gtk2/">GNOME</a> and <a href="http://themes.freshmeat.net/">freshmeat.net</a>; however, make sure you <a href="#supportedgtk+themes">download supported themes</a>.</p>
94
<h2><a name="supportedgtk+themes">My GTK+ theme doesn't look right (or doesn't work). What's wrong?</a></h2>
96
<p>Currently, the GTK+ L&F only supports a subset of the themes available for GTK+. Themes must be GTK+ 2 themes and may only use the Default, pixmap, and/or bluecurve theme engines. <a href="#issupportedgtk+theme">What does all that mean?</a> If you really want to know, I suggest you go to the <a href="http://www.gtk.org/">GTK+</a> website and start reading. After all, this is a FreeGuide FAQ. :)</p>
98
<h2><a name="issupportedgtk+theme">So, how do I know if a GTK+ theme is supported?</a></h2>
100
<p>In truth, the best way to find out is to try the theme. Even if the theme is not fully supported, you might like the results; and since it is a "Look and Feel," if you like the look and you like the feel, it works for you!</p>
102
<h2><a name="gtk+themes">You said the GTK+ L&F supports themes. How do I change my theme?</a></h2>
104
<p>First, you'll need <a href="#moregtk+themes">some themes</a>. Once you've downloaded one or more themes to try, install the theme (as described in the next two paragraphs).</p>
106
<p>If you're using a Unix-like operating system, use the tool provided by your distribution vendor to install and select the theme. Now, simply start FreeGuide and, if you haven't already done so, select the GTK+ L&F and enjoy the new look. In general, themes are installed by extracting their files into the <tt>${USER}/.themes</tt> directory. If you do not have a tool for working with GTK+ themes, <a href="http://www.muhri.net/nav.php3?node=gts">GTK Theme Switch 2</a> is a nice lightweight program for installing and selecting themes. Note: If you do not want to install and/or select the theme, you may follow the Windows instructions below.</p>
108
<p>If you're using Windows (or you don't want to install the theme on your Unix-like operating system), it's not necessary to install the theme. Extract the theme files to a directory, keeping each theme in its own directory, and keep all the theme directories together in a single directory to make them easy to find (I recommend using <tt>C:\gtk</tt> since it's short and easy to type).</p>
110
<p>Since most of the themes will be distributed in "tarballs" (a common way to distribute software for Unix-like operating systems), you will need an extraction tool that can handle tape archive files (tar files) and GZIP and/or BZIP2 compression. One such tool for Windows is <a href="http://www.7-zip.org/">7-Zip</a>.</p>
112
<p>Once you've extracted the themes, you're ready to use them. To do so, just specify the location of the <tt>gtkrc</tt> file in the <tt>swing.gtkthemefile</tt> system property on the command line, as shown below:</p>
116
javaw -Dswing.gtkthemefile="C:\gtk\Theme Name\gtk-2.0\gtkrc" -jar "C:\Program Files\FreeGuide\FreeGuide.jar"
118
<p>Or, for Unix-like operating systems:</p>
120
java -Dswing.gtkthemefile="${HOME}/.themes/Theme Name/gtk-2.0/gtkrc" -jar "/usr/share/freeguide/FreeGuide.jar"
123
<h2><a name="gtk+changedtheme">Why doesn't FreeGuide notice when I change my System GTK+ theme?</a></h2>
125
<p>The GTK+ L&F is not actually using the GTK+ theme engine to draw components of FreeGuide. Instead, it performs the work normally done by the theme engine itself, but does not detect changes to the system-define theme. Therefore, to get FreeGuide to notice the change to your theme, simply restart FreeGuide. Note that future versions of the GTK+ L&F may support detection of changes to the system theme, but until then restarting FreeGuide is the only way to change themes.</p>
127
<h2><a name="slow">Since I changed my L&F, FreeGuide seems slow. Why?</a></h2>
129
<p>Well, you can't get something for nothing--with the exception of good quality open source software, of course! Some L&F's are slower than others, some L&F's claim to be faster than the default Java L&F (Metal), so you might want to try experimenting with <a href="#morelafs">other L&F's</a>. If you've got your heart set on the L&F you're using, you'll have to get used to its performance.</p>
131
<h2><a name="slowerstartup">Since I changed my L&F, FreeGuide seems to take 4.5ms longer to start up. Why?</a></h2>
133
<p>The Java installation on your system specifies a default L&F to use when none is specifically requested. Therefore, when you start FreeGuide, Java uses its default L&F until FreeGuide changes the L&F to the one you specified in your preferences. If you tell Java to use your preferred L&F, FreeGuide won't need to change the L&F after startup.</p>
135
<p>To specify the L&F, you may either change your installation's default L&F (which will affect <strong>all</strong> Java programs you use) or specify the default L&F on the command line. To change your installation's default, edit the file <tt>%JAVA_HOME%/lib/swing.properties</tt> (you may have to create the file) and add the line (or edit the one starting with swing.defaultlaf to look like the following):</p>
138
swing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel
141
<p>To change the default L&F for FreeGuide only, specify the L&F classname as the value for the <tt>swing.defaultlaf</tt> system property on the command line. The command line should look something like those shown below (make sure you use the correct locations for your files):</p>
145
javaw -classpath "C:\path\to\my\LookAndFeel.jar" -Dswing.defaultlaf="javax.swing.plaf.metal.MetalLookAndFeel" -jar "C:\Program Files\FreeGuide\FreeGuide.jar"
147
<p>Or, for Unix-like operating systems:</p>
149
java -classpath "/path/to/my/LookAndFeel.jar" -Dswing.defaultlaf="javax.swing.plaf.metal.MetalLookAndFeel" -jar "/ur/share/freeguide/FreeGuide.jar"
152
<p>Note that the Metal L&F is most likely the default on your Java installation, so the above command lines and properties file would do nothing. Instead, use the fully qualified classname of the L&F you want to use. The fully qualified classname should be given in the L&F's documentation.</p>
154
<h2><a name="morelafs"></a>Where can I find more L&F's?</h2>
156
<p>Some sites, such as <a href="http://www.javootoo.com/">javootoo.com</a> provide links to many different L&F's that are available for download under licenses varying from open source to proprietary commercial. You may also want to try a search on your favorite search engine, for example on <a href="http://www.google.com/search?q=%2B%22Java%22+%2B%22Look+and+Feel%22+%2B%22download%22&start=0&ie=utf-8&oe=utf-8">Google</a>.</p>
158
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
7
<h1>Page moved - redirecting</h1>
8
<p>This page has moved to <a href="userguide.look_and_feel.html">here</a>.</p>