I'm building a GUI program in Java that uses the BorderLayout. And specifically, it uses only the CENTER, PAGE_END, and LINE_END areas. I have a class for each area, and often they need to share info. My main class and PAGE_END class start out like this:
public class JSudokuSolver extends JFrame {
protected static Dimension sBoardDim = new Dimension(500, 500);
protected static Dimension lineEndDim = new Dimension(200, 500);
protected static Dimension pageEndDim = new Dimension(650, 120);
...
public class PAGE_END_objs {
static Dimension pageEndDim = JSudokuSolver.pageEndDim;
...
Sometimes this works fine; sometimes it doesn't. When it doesn't, I get a null pointer (in this example) when trying to use 'pageEndDim' in the PAGE_END_objs code. Then in Eclipse Neon debug mode, if I hover over 'JSudokuSolver.pageEndDim', I do see the Dimension data. But, if I hover over 'pageEndDim =', I see 'null'.
To me, that looks like the static assignment hasn't happened yet. Yes/no? If yes, when does it happen, and what triggers it? If no, do you have helpful info, I hope? TIA!