如何最佳定位搖擺舞?在……里面另一個線程我說過我喜歡做這樣的事情來集中我的GUI:JFrame frame = new JFrame("Foo");frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new HexagonGrid());frame.pack();frame.setLocationRelativeTo(null);frame.setVisible(true);但是安德魯?湯普森卻有不同的看法,轉而打電話給他。frame.pack();frame.setLocationByPlatform(true);詢問的人想知道為什么嗎?
添加回答
舉報
0/150
提交
取消