Original Post
Hey everyone,
This seems to be the best forum for my question
I''m currently working on a simple space strategy game written in Java and I think I might need help with its GUI. I would like to implement a GUI such that there is a column of buttons on the right-hand side of the screen, where each button accesses a different window (e.g. a galaxy window, planet window, ship window, etc.). The appropriate window is then displayed in the remainder of the screen. In terms of actual Java code, what I have right now is a standard JFrame and a JPanel that contains everything else (all the windows and buttons). The buttons are standard JButtons. Each type of window has its own class, and all of the classes extend JPanel (so they are, in effect, containers themselves). I think that the proper layout I should have for the GUI is the grid layout, but I''m not sure. Also, does using the setVisible method make a panel appear on top, even when the other panels are also visible, or do I need to make them invisible again? Finally, how do I make my program start in fullscreen mode?
Thanks,
Rob