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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Getting Button names from property file" Watch "Getting Button names from property file" New topic

Getting Button names from property file

Raj Moti

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
Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50

Create a property file like 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.

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