heres the chunk of code in question
public void readSettings() {
try{
// Open the file that is the first
// command line parameter
...
Type: Posts; User: CrestaMan
heres the chunk of code in question
public void readSettings() {
try{
// Open the file that is the first
// command line parameter
...
Ok the main method in my code displays the java swing frame but all I want to do is call one method before to read in some setting from a text file so they can be displayed when the frame is made...
I have declared it a public static void but now netbeans complains about all the variables I am using
non-static variable xxxxx cannot be referenced from a static context
I have tried private static void somerouine() but netbeans compalined :-(
Java is by far the hardest language I have had to learn and I just can't get to grips with it's structure.
any way how...
yes I want to call it from within the main method, I call call it from a button click ok but it needs to be called when the code starts.
Hi all,
I am a newbie to java and hence I have been using online examples to learn how to code java. One big problem I am having is where in the code does the program actually start. I have a java...