Results 1 to 11 of 11
Thread: Look and Feel
- 09-25-2008, 06:50 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
Look and Feel
Hi
I've just finished a project in java and I want to improve its GUI by adding some java 'Look and Feel' themes. The problem is that I can load only a few types.
I've installed some java upgrades but still I cannot load any new themes. Can someone tell what's the problem or what should I install :) ????
The method I use for setting the Look and Feel is:
LookAndFeel lf = UIManager.getLookAndFeel();
try {
UIManager.setLookAndFeel("org.jvnet.substance.skin .SubstanceBusinessBlackSteelLookAndFeel");
} catch (InstantiationException e) {
System.out.println("The certain look and feel class could not be instantiated");
} catch (ClassNotFoundException e) {
System.out.println("The certain look and feel class was not found");
} catch (UnsupportedLookAndFeelException e) {
System.out.println("The certain look and feel is not suported");
} catch (IllegalAccessException e) {
System.out.println("Ilegal exception");
}
- 09-28-2008, 10:25 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 09-28-2008, 01:03 PM #3
What's that space doing after skin and before the dot?Java Code:"org.jvnet.substance.skin .SubstanceBusinessBlackSteelLookAndFeel"
db
- 09-29-2008, 03:39 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yep, there can't be such a space. May be accidentally put that by our thread starter.
- 09-29-2008, 01:40 PM #5
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
The space is not the problem.
The exception I get is a ClassNotFoundException.
For this example I had to import org.jvnet.substance.skin.SubstanceBusinessBlackSte elLookAndFeel; which is not recognized.
This happens to any 'Look and Feel' theme I try. It does not import the resources so the certain look and feel is not found.
I have upgraded to the latest jdk and jre versions and still the problem persists.
Do I have to install something to make it work?
- 09-29-2008, 02:26 PM #6
You do know that these classes aren't part of the standard set, don't you? and that you have to make the class (or a jar that contains it) available on the CLASSPATH?
db
- 09-30-2008, 03:41 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
The package you are talking about is not a part of standard JDK. You have to download it and add to class path.
- 10-02-2008, 12:00 PM #8
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
:)
OK and can you tell me exactly how I do this? or can you just give me a link from where I download this these resources?
- 10-02-2008, 12:10 PM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Actually I don't know from where to find it, search on Google. From where are you find this example, may be there is a link to download that package.
- 10-02-2008, 03:36 PM #10
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
I've spent hours on google and I found a lot of examples but no download link for their resources.
I'm not interested for this example. I just want a link for any new 'Look and Feel' theme ( not the standard ones ... those are working fine ) .
- 10-03-2008, 04:07 AM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
A Look-and-feel switcher
By Java Tip in forum javax.swingReplies: 0Last Post: 06-26-2008, 07:45 PM -
Swing - Look and feel
By Java Tip in forum Java TipReplies: 0Last Post: 03-11-2008, 10:53 PM -
Look and Feel
By arun_kumar in forum AWT / SwingReplies: 1Last Post: 11-17-2007, 06:21 PM -
look and feel plugin
By gabriel in forum New To JavaReplies: 2Last Post: 08-06-2007, 08:44 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks