JLabel inheritedSlot = newLegendLabel("Inherited Slot", ColorDefs.inheritedSlotColor, true); JLabel localSlot = newLegendLabel("Local Slot", ColorDefs.localSlotColor, true);
JLabel inheritedSlot = newLegendLabel("Container Slot", ColorDefs.inheritedSlotColor, true); JLabel localSlot = newLegendLabel("Prototype Slot", ColorDefs.localSlotColor, true);
    public Component createOtherComponent() {        frameInheritenceView =  new FrameInheritenceView();        JPanel rightPanel = new JPanel(new BorderLayout());        rightPanel.add(frameInheritenceView, BorderLayout.CENTER);        selectedLabel = new JLabel("selected:");        selectedFrameLabel = new JLabel("");        JLabel slotDef = newLegendLabel("Slot Definition", ColorDefs.slotDefinitionColor, true);        JLabel inheritedSlot = newLegendLabel("Inherited Slot", ColorDefs.inheritedSlotColor, true);        JLabel localSlot = newLegendLabel("Local Slot", ColorDefs.localSlotColor, true);        Box legend = Box.createHorizontalBox();        legend.add(slotDef);        legend.add(inheritedSlot);        legend.add(localSlot);        legend.setBorder(BorderFactory.createEtchedBorder());        Box labelBox = Box.createHorizontalBox();        labelBox.add(selectedLabel);        labelBox.add(Box.createHorizontalStrut(10));        labelBox.add(selectedFrameLabel);        labelBox.add(Box.createHorizontalGlue());        labelBox.add(legend);        rightPanel.add(labelBox, BorderLayout.NORTH);        return rightPanel;    }