I have some Java questions which I hope someone can answere.
1: I have two windows (so far) in my program, and they are in the same folder (package). I was thinking of moving one of them into another folder. Let's say I did that, and got these folders: MyProgram/Window and MyProgram/Color. The packages would then be: MyProgram.Window and MyProgram.Color. If one of the classes from the MyProgram/Window directory wanted to call one of the classes from the MyProgram/Color directory, how would I do that? I tried writing package MyProgram.Color in the file that is located in MyProgram/Window, but it didn't seem to work. (...did this make any sense?)
2: On the menu-bar, where the name of the program should be, it only says the name of the package. How can I change that into, let's say: "My program"? This should be done in the main class, right?
Kris
1: I have two windows (so far) in my program, and they are in the same folder (package). I was thinking of moving one of them into another folder. Let's say I did that, and got these folders: MyProgram/Window and MyProgram/Color. The packages would then be: MyProgram.Window and MyProgram.Color. If one of the classes from the MyProgram/Window directory wanted to call one of the classes from the MyProgram/Color directory, how would I do that? I tried writing package MyProgram.Color in the file that is located in MyProgram/Window, but it didn't seem to work. (...did this make any sense?)
2: On the menu-bar, where the name of the program should be, it only says the name of the package. How can I change that into, let's say: "My program"? This should be done in the main class, right?
Kris