@Override
public void actionPerformed(ActionEvent e) {
container.removeAll();
container.setLayout(null);
Aguamenti agua = new Aguamenti();
Component comp = agua.getComponent();
// comp.setSize(agua.getDimension());
container.add(comp);
container.validate();
System.out.println("displayable?"+(comp.getGraphics()!=null)+";"+comp.getWidth()+";"+comp.getHeight());
agua.cast(new Point(20, 20), new Point(100, 100), container);
}
});
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 0d, 0d,
GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(2, 2,