/**
  * Prepare the panel to receive a new JPanel.
  *
  * @param panel new jpanel
  * @param title object name
  */
 public static void setPanel(JPanel panel, String title) {
   // Resets the panel.
   pReceive.removeAll();
   pReceive.repaint();
   // Resets the Show/Hide button.
   ShowHide.setStatus(false);
   // Insert panel
   pReceive.add(panel, "");
   try {
     instance.setName(MessagesGED.property_list + ": " + title);
   } catch (NullPointerException e) {
     instance.setTitle(MessagesGED.property_list + ": " + title);
   }
 }
  /**
   * Constructor
   *
   * @param objectID Enters the identification of object.
   */
  public SwingInspector(Integer objectID) {
    super(MessagesGED.property_list, INSPECTORUUID);
    instance = this;

    setAssociatedXMLIDForHelp("quickged");

    buildMenuBar();
    addMenuBar(menuBar);

    ToolBar toolBar = ScilabToolBar.createToolBar();
    ((SwingScilabToolBar) toolBar.getAsSimpleToolBar())
        .add(ShowHide.createButton(MessagesGED.hide));
    toolBar.addSeparator();

    guiComponents();
    new SwapObject(objectID);

    setContentPane(desktop);
    WindowsConfigurationManager.restorationFinished(this);
    addToolBar(toolBar);
  }