All pastes #288434 Raw Edit

Anonymous

public text v1 · immutable
#288434 ·published 2006-12-22 08:26 UTC
rendered paste body
public class MShapesBar extends JInternalFrame{
	private DiagramController controller;
	private JPanel contentPanel; 
	public enum DiagramType{ATD, PSD, OFD};
	public MShapesBar(){
		super("Shapes", true, true, true);
		setSize(new Dimension(200 , 100));
		this.setLocation(200,475);
		//contentPanel = new JPanel(new GridBagLayout());
		contentPanel = new JPanel(new BorderLayout());
		//load(DiagramType.ATD);
		//setFloatable(false);
		contentPanel.setEnabled(true);
		contentPanel.add(new JButton("Button"), BorderLayout.NORTH);
		contentPanel.setBackground(Color.RED);
		setContentPane(contentPanel);
		assert (getContentPane().equals(contentPanel));
		updateUI();
	}