Hi, this is my first time posting here, second time here =)
I have this
Java project I've been working on that passes around an "engine" class to most of the GUI components. The engine class just provides me a way to get data to all the components and still keep it separate from the GUI. This has been working fine; I usually have constructors that allow me to set the local engine object to the one passed to it, so all the GUI components are working with the same engine object.
However, with the last two classes I wrote, I was disappointed to find out that trying to call any part of the engine would cause the JFrame of the program not to show up. (I'm using netBeans 4.1, and it'll say "run:" but then "BUILD SUCCESSFUL" right afterwards, and the JFrame will load into memory but never appear, giving me no error message whatsoever). I finally traced it down to any statements involving engine methods that would cause this odd problem.
Are there any problems that typically cause this strange behavior? I checked to make sure that every local engine reference was made AFTER receiving the correct reference from the constructor (so I wasn't trying to use an uninitialized engine).
I also received this problem when trying to create a panel with a CardLayout, although I have other CardLayouts in the program and have never had problems until now...
Any insight into these or why these problems are caused would be helpful.
Thanks!