Tag archive for: Java swing

How to read values from a properties file located within a Java jar file

A good programming practice will be to code applications to read from a text file for values which are expected to change often. Java Swing applications are often packed in a single jar file and it can make deployment easier if our Java Swing applications can read from text files embedded within the same jar file that they reside in.

There came a time where I need to code a Java applet to read i18n labels from some properties files. This post documents my proof of concept before I embark in coding that Java applet.