I am tring to write a ticker applet that will display prices of certain stocks. I have created an application that writes the symbols and prices to a text file stored in the same directory as the applet class. How can a setup the applet to read the data from the file??? Thanks
I loaded java propery object reading a server side properties file.here is the code. /* appletCommands = new Hashtable(); AppletController controller = (AppletController) AppletReferences.getApplet(AppletConstants.APPLET_CONTROLLER); String path = controller.getCodeBase().toString(); path = path + "appletCommands.properties"; URL url = new URL(path); Properties prop = new Properties(); prop.load(url.openConnection().getInputStream());
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!