I’m a newbie to eclipse. (I’ve done many java programs through command line)
I’m doing a Java Swing project and wanted to implement a Font dialog box.
I Found that JFontChooser was a nice implementation and it was open source. I downloaded the source. But when I import it in eclipse it had problems (like "package name did not match",etc.) I rectified them, by matching with the file structure. I referred to this forum post
I got rid of all the errors but still when I run, it gives a error box saying Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.say.swing Even after a google search I cant find the solution to the problem.
Can someone give me the solution to rectify this problem? If you can please download the source. 🙂
Info:I created a new package in eclipse with other names like:
java.say.sting AND say.sting. But it gives me the same error or Exception in thread "main" java.util.MissingResourceException: Can’t find bundle for base name say.sting.JFontChooserMessages, locale en_IN
Got the solution:
It needed a java properties file.
Wonder why people @ SO couldn’t find such a simple thing. A friend of mine did it for me. AND I feel short of words to thank him.
The propertiers contents