Exemplo n.º 1
0
 /**
  * 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);
   }
 }
Exemplo n.º 2
0
  /**
   * 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);
  }