1,105,447 Community Members

How to make a swing.properties file?

Member Avatar
jackbauer24
Posting Whiz in Training
243 posts since Oct 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

My computer does not have the swing.properties. How to make a swing.properties file and with what software?

Member Avatar
stultuske
Posting Expert
5,326 posts since Jan 2007
Reputation Points: 938 [?]
Q&As Helped to Solve: 776 [?]
Skill Endorsements: 35 [?]
Featured
 
0
 

notepad? it's basically just a textfile which you give the extension .properties

Member Avatar
jackbauer24
Posting Whiz in Training
243 posts since Oct 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

Ok, so I made it with my text editor and wrote this:
swing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
expecting Nimbus. I still get Metal. Why?

Member Avatar
stultuske
Posting Expert
5,326 posts since Jan 2007
Reputation Points: 938 [?]
Q&As Helped to Solve: 776 [?]
Skill Endorsements: 35 [?]
Featured
 
0
 

I have no idea. how are you using that properties file in your code?

Member Avatar
JamesCherrill
... trying to help
10,383 posts since Apr 2008
Reputation Points: 2,081 [?]
Q&As Helped to Solve: 1,752 [?]
Skill Endorsements: 47 [?]
Moderator
Featured
 
0
 

another way to specify the current L&F is to use the swing.properties file to set the swing.defaultlaf property. This file, which you may need to create, is located in the lib directory of Sun's Java release (other vendors of Java may use a different location). For example, if you're using the Java interpreter in javaHomeDirectory\bin, then the swing.properties file (if it exists) is in javaHomeDirectory\lib

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#properties

Question Answered as of 2 Years Ago by stultuske and JamesCherrill
Member Avatar
durim.kryeziu.927
Newbie Poster
2 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 
Member Avatar
durim.kryeziu.927
Newbie Poster
2 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

This is the new video:
http://youtu.be/5CXvimHfSlo

That one above is removed:$ delete that post please :)

Thank you!

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article