aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Getting Button names from property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Getting Button names from property file" Watch "Getting Button names from property file" New topic
Author

Getting Button names from property file

Raj Moti
Greenhorn

Joined: Nov 14, 2004
Posts: 4
In my swing application I want to get button names from property file
How I can proceed?
Thanks Inadvance
Raj
Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
Hi,

Create a property file like buttonlabels.properties with key values pairs
by following en_Us (locale convetion)


and make a java file to read this file,Study PropertyResourceBundle
in util package ,by using this u can iterate over the and can create a hashmap which u can further refere in your View class.

read some locale specific expamples on Net for detail info.

bBye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Button names from property file
 
Similar Threads
data conversion tool implementation
XML details
Trouble understanding passing values
How does getClassLoader().getResourceAsStream() work?
property file dynamic vs static