public void setWireframe(Wireframe wireframe){

        if(wireframe != null){
            this.wireframe = null;
            nameTextBox.setText(wireframe.getName());
            multilineTextEntry.setText(wireframe.getName());

            if(wireframe.getTypeOfWireframe().equals("Label")){
                sizeLabel.setVisible(true);
                fontSizeBox.setVisible(true);
                fillList.setVisible(false);
                displayNameCheckbox.setVisible(false);
                displayNameLabel.setVisible(false);
                fontSizeBox.setText(""+((Label)wireframe).getSize());
            }else{
                sizeLabel.setVisible(false);
                fontSizeBox.setVisible(false);
                fillList.setVisible(true);
                displayNameLabel.setVisible(true);
                displayNameCheckbox.setVisible(true);
            }

            if(wireframe.getTypeOfWireframe().equals("Pointer")){
                multilineTextEntry.setVisible(true);
                nameTextBox.setVisible(false);
            }else{
                multilineTextEntry.setVisible(false);
                nameTextBox.setVisible(true);
            }

            if(wireframe.getTypeOfWireframe().equals("Wirebox")){
                displayNameCheckbox.setVisible(true);
                displayNameLabel.setVisible(true);
                displayNameCheckbox.setSelected(((Wirebox)wireframe).drawName());
            }else{
                displayNameCheckbox.setVisible(false);
                displayNameLabel.setVisible(false);
            }

            if(wireframe instanceof Fillable){
                fillList.setVisible(true);
                selectFillColorButton.setVisible(true);
                for(int i=0; i<Filler.getFillOptions().length; i++){
                    if(((Fillable)wireframe).getFillType().equals(fillList.getItemAt(i))){
                        fillList.setSelectedIndex(i);
                        break;
                    }
                    //error option not avalible :/
                    fillList.setSelectedIndex(0);
                }
            }else{
                fillList.setVisible(false);
                selectFillColorButton.setVisible(false);
            }

            this.wireframe = wireframe;
        } else {
            this.wireframe = wireframe;
            nameTextBox.setText("");
            multilineTextEntry.setText("");
            displayNameCheckbox.setSelected(false);
        }
        if(drawPanel != null) drawPanel.repaint();
    }