(String title, JComponent content, int width, int height)
| 106 | } |
| 107 | |
| 108 | public static JFrame buildFrame(String title, JComponent content, int width, int height) { |
| 109 | JFrame f = new JFrame(title); |
| 110 | f.getContentPane().setLayout(new BorderLayout()); |
| 111 | f.getContentPane().add(content, BorderLayout.CENTER); |
| 112 | f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); |
| 113 | f.setSize(width, height); |
| 114 | f.setLocationRelativeTo(null); |
| 115 | return f; |
| 116 | } |
| 117 | } |
no test coverage detected