Insets2DDouble insets = new Insets2DDouble(4,8,4,8);
Insets2D.Double insets = new Insets2D.Double(4,8,4,8);
    public TaskFigure() {        super(new RectangleFigure());                setLayouter(new VerticalLayouter());                RectangleFigure nameCompartmentPF = new RectangleFigure();        STROKE_COLOR.set(nameCompartmentPF, null);        nameCompartmentPF.setAttributeEnabled(STROKE_COLOR, false);        FILL_COLOR.set(nameCompartmentPF, null);        nameCompartmentPF.setAttributeEnabled(FILL_COLOR, false);        ListFigure nameCompartment = new ListFigure(nameCompartmentPF);        ListFigure attributeCompartment = new ListFigure();        SeparatorLineFigure separator1 = new SeparatorLineFigure();                applyAttributes(getPresentationFigure());                add(nameCompartment);        add(separator1);        add(attributeCompartment);                Insets2DDouble insets = new Insets2DDouble(4,8,4,8);        LAYOUT_INSETS.set(nameCompartment, insets);        LAYOUT_INSETS.set(attributeCompartment, insets);                TextFigure nameFigure;        nameCompartment.add(nameFigure = new TextFigure());        FONT_BOLD.set(nameFigure, true);        nameFigure.setAttributeEnabled(FONT_BOLD, false);                TextFigure durationFigure;        attributeCompartment.add(durationFigure = new TextFigure());        FONT_BOLD.set(durationFigure, true);        durationFigure.setText("0");        durationFigure.setAttributeEnabled(FONT_BOLD, false);                TextFigure startTimeFigure;        attributeCompartment.add(startTimeFigure = new TextFigure());        startTimeFigure.setEditable(false);        startTimeFigure.setText("0");        startTimeFigure.setAttributeEnabled(FONT_BOLD, false);                applyAttributes(this);        setAttributeEnabled(STROKE_DASHES, false);                ResourceBundleUtil labels =                ResourceBundleUtil.getLAFBundle("org.jhotdraw.samples.pert.Labels");                setName(labels.getString("taskDefaultName"));        setDuration(0);        startTime = 0;                dependencies = new HashSet<DependencyFigure>();        nameFigure.addFigureListener(new NameAdapter(this));        durationFigure.addFigureListener(new DurationAdapter(this));    }