JFrame Resizing
===

People told me that using the GroupLayout will make the JFrame's components resize as well

Can someone tell me whats wrong with the code below?(This draws the frame) The class extends JFrame, but it still wont resize when I resize the frame. Please post the code below, I'm new to this.

	public SpriteEditor() {
		SubstanceColorChooserUI col = new SubstanceColorChooserUI();
		while (mode == 0);
		setResizable(true);
		setTitle("DawnGuard Index 32/34 Editor");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 483, 374);
		setLocationRelativeTo(null);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);

		textField = new JTextField();
		textField.setColumns(10);

		JButton btnLoadCache = new JButton("Load cache");
		btnLoadCache.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					String loc = textField.getText();
					if (loc.equals("")) {
						JOptionPane.showMessageDialog(SpriteEditor.this, "Please specify a location for the cache.", "Unable to load", JOptionPane.ERROR_MESSAGE);
						return;
					}
					if (!loc.endsWith("\\"))
						loc = loc + "\\";
					cache = new Store(loc);
					loadImages();
				} catch (Exception e) {
					JOptionPane.showMessageDialog(SpriteEditor.this, "Cache failed to initialize.\n" + e.getMessage(), "Unable to load", JOptionPane.ERROR_MESSAGE);
				}
			}
		});

		JSplitPane splitPane = new JSplitPane();
		splitPane.setDividerLocation(150);
		splitPane.setContinuousLayout(true);

		JPanel panellie = new JPanel();
		panellie.setLayout(new BorderLayout(0, 0));
		panel = new ImagePanel(null);

		scrollPane_1 = new JScrollPane();
		panellie.add(scrollPane_1, "Center");

		scrollPane_1.setViewportView(panel);
		splitPane.setRightComponent(panellie);

		JPanel panel_1 = new JPanel();
		splitPane.setLeftComponent(panel_1);
		panel_1.setLayout(new BorderLayout(0, 0));

		JScrollPane scrollPane = new JScrollPane();
		panel_1.add(scrollPane, BorderLayout.CENTER);

		model = new DefaultListModel<ListedImage>();
		list = new JList<ListedImage>(model);
		list.addListSelectionListener(new ListSelectionListener() {
			public void valueChanged(ListSelectionEvent arg0) {
				if (arg0.getValueIsAdjusting())
					return;
				ListedImage img = list.getModel().getElementAt(list.getSelectedIndex());
				panel.setImage(img.getImage());
			}
		});
		scrollPane.setViewportView(list);

		progressBar = new JProgressBar();
		progressBar.setStringPainted(true);
		progressBar.setDoubleBuffered(true);
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(5)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(textField, GroupLayout.PREFERRED_SIZE, 328, GroupLayout.PREFERRED_SIZE)
							.addGap(13)
							.addComponent(btnLoadCache, GroupLayout.PREFERRED_SIZE, 112, GroupLayout.PREFERRED_SIZE))
						.addComponent(splitPane, GroupLayout.PREFERRED_SIZE, 453, GroupLayout.PREFERRED_SIZE)
						.addComponent(progressBar, GroupLayout.PREFERRED_SIZE, 453, GroupLayout.PREFERRED_SIZE)))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(4)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addGap(2)
							.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
						.addComponent(btnLoadCache))
					.addGap(12)
					.addComponent(splitPane, GroupLayout.PREFERRED_SIZE, 279, GroupLayout.PREFERRED_SIZE)
					.addGap(5)
					.addComponent(progressBar, GroupLayout.PREFERRED_SIZE, 14, GroupLayout.PREFERRED_SIZE))
		);
		contentPane.setLayout(gl_contentPane);
	
	}