C
Chris Baker
[I searched Google Groups and received a result with the same title;
however, the result couldn't be found.]
I am working on a tile-based game with a group for class. It is a
SimCity style game, except called SimUniversity. It works completely
well without any screen modification, but I want to enhance it by
setting fullscreen and changing the DisplayMode, allowing a customized
playing environment (make for easier map scrolling, too).
I have the code that does this in a class of it's own and I call
[FullScreen fs = new Fullscreen(mainFrame);] where mainFrame is the
parent frame/window of the game. This way I can plug in the fullscreen
functionality and take it out at will.
The problem lies when the WelcomeScreen JDialog is created. It
loads/paints at first correctly, but if you drag it anywhere, it is
painted over with the other panels that are children of mainFrame. The
JDialog remains on top; however, you can't really see the buttons.
Tabbing is the only way to get glimpses of them before they're painted
over again.
The JDialogs that do not work are WelcomeScreen, a
JOptionPane.showMessageDialog and a JOptionPane.showConfirmDialog (for
saving). They all are painted over by their backgrounds. I am known
for over looking the obvious, but I have tried and tried to make it
work and it wont!
Thanks,
--Chris Baker
however, the result couldn't be found.]
I am working on a tile-based game with a group for class. It is a
SimCity style game, except called SimUniversity. It works completely
well without any screen modification, but I want to enhance it by
setting fullscreen and changing the DisplayMode, allowing a customized
playing environment (make for easier map scrolling, too).
I have the code that does this in a class of it's own and I call
[FullScreen fs = new Fullscreen(mainFrame);] where mainFrame is the
parent frame/window of the game. This way I can plug in the fullscreen
functionality and take it out at will.
The problem lies when the WelcomeScreen JDialog is created. It
loads/paints at first correctly, but if you drag it anywhere, it is
painted over with the other panels that are children of mainFrame. The
JDialog remains on top; however, you can't really see the buttons.
Tabbing is the only way to get glimpses of them before they're painted
over again.
The JDialogs that do not work are WelcomeScreen, a
JOptionPane.showMessageDialog and a JOptionPane.showConfirmDialog (for
saving). They all are painted over by their backgrounds. I am known
for over looking the obvious, but I have tried and tried to make it
work and it wont!
Thanks,
--Chris Baker