opts.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; c.weighty = 1; opts.add(size, c); c.gridx=1; opts.add(brushSize,c);  shapePanel.add(opts);
		private JPanel createShapePanel() {			JPanel shapePanel = new JPanel();			brushes = new BrushBrowser();			brushes.addMouseListener(this);			JScrollPane brushScrollPane = new JScrollPane(brushes);	        brushScrollPane.setPreferredSize(new Dimension(150, 150));			brushes.addPropertyChangeListener(this);						brushes.setSelectedBrush(myBrush);	        shapePanel.add(brushScrollPane);	        			return shapePanel; 		}