F
Frank
Hello,
How can I set a variable in a class to be global so that my packages
can work with it?
Example:
I have a project game in folder mygame. The main class is called
Tetris.java. Inside the same directory I have a package called
myframes with the frames used to interact with the user. the class
Tetris has the following variable declared:
public class Tetris
{
public static int langType = 1;
....
}
Why classes inside my package myframe cannot see this variable?
Thanks.
Frank
How can I set a variable in a class to be global so that my packages
can work with it?
Example:
I have a project game in folder mygame. The main class is called
Tetris.java. Inside the same directory I have a package called
myframes with the frames used to interact with the user. the class
Tetris has the following variable declared:
public class Tetris
{
public static int langType = 1;
....
}
Why classes inside my package myframe cannot see this variable?
Thanks.
Frank