Tips for Java games!
The first tip is to set your window to adjust to the operating systems’ default GUI text, buttons etc. the way to do this is on the line below.
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
The second tip is to make a fullscreen window. If you are unaware of how to do so, check below
{
GraphicsDevice vc;
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
vc = env.getDefaultScreenDevice();
vc.setFullScreenWindow(JFRAME);
}
The third and final tip: Have a gameUtils package. It’s really annoying to rewrite code, so just write it once and access it from a gameUtils package if you don’t already!
Comments
08. Oct 2014 · 22:13 UTC
hmm… to be a critic, java games usually dont use swing, but J2D (or some custom library), so that your first tip is useless. However ime thinking of inserting your second tip into my game library. Another way to get “fullscreen” is to Fully enlarge the window and then remove decorations) 

10. Oct 2014 · 10:32 UTC
If you’re using libGDX, it’s a single line. Just set the fullscreen flag in LwjglApplicationConfiguration: