rendered paste bodypublic 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();
}