To read a Properties file via an Applet
import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Properties; import javax.swing.JApplet; public class Main extends JApplet{ public void init(){ Properties p = new Properties(); try { p.load((new URL(getCodeBase(), "user.props")).openStream()); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }