{"author_name":"bshred8","cat":"October Challenge 2014","comments":[{"author_name":"","time":"October 8, 2014 5:13 pm","epoch":1412806380,"text":"hmm&#8230; 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 &#8220;fullscreen&#8221; is to Fully enlarge the window and then remove decorations) <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/>","spam":"N"},{"author_name":"","time":"October 10, 2014 5:32 am","epoch":1412937120,"text":"If you&#8217;re using libGDX, it&#8217;s a single line. Just set the fullscreen flag in LwjglApplicationConfiguration:","spam":"N"}],"epoch":1412803980,"likes":3,"metadata":{"p_key":"26122","p_author":"bshred8","p_authorkey":"504109","p_urlkey":"61546","p_title":"Tips for Java games!","p_cat":"October Challenge 2014","p_event":"LD30","p_time":"1412803980","p_likes":"3","p_comments":"2","p_status":"UPD5","us_key":"504109","us_name":"bshred8","us_username":"bshred8","event_start":"1408665600","event_key":"24","event_name":"LD30"},"text":"<p>The first tip is to set your window to adjust to the operating systems&#8217; default GUI text, buttons etc. the way to do this is on the line below.<\/p>\n <p>{<\/p>\n <p>UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());<\/p>\n <p>}<\/p>\n <p>&nbsp;<\/p>\n <p>The second tip is to make a fullscreen window. If you are unaware of how to do so, check below<\/p>\n <p>{<\/p>\n <p>GraphicsDevice vc;<\/p>\n <p>GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();<\/p>\n <p>vc = env.getDefaultScreenDevice();<\/p>\n <p>vc.setFullScreenWindow(JFRAME);<\/p>\n <p>}<\/p>\n <p>&nbsp;<\/p>\n <p>The third and final tip: Have a gameUtils package. It&#8217;s really annoying to rewrite code, so just write it once and access it from a gameUtils package if you don&#8217;t already!<\/p>","time":"October 8th, 2014 4:33 pm","title":"Tips for Java games!"}