None of the following lines will cause IllegalArgumentException GroupLayout groupLayout = new GroupLayout(new JPanel()); groupLayout.createParallelGroup(null); groupLayout.createParallelGroup(null, true); groupLayout.createParallelGroup(null, false); While spec says for both methods: Throws: IllegalArgumentException - if alignment is null
|