Exemplo n.º 1
0
  public Component addTab(String name, Component comp) {
    add(comp, name);
    card.addLayoutComponent(comp, name);

    tabs.put(name, comp);
    revalidate();

    return comp;
  }
Exemplo n.º 2
0
  /** Creates new form ManagerFrame */
  public ManagerFrame(AndroidSNMPManager androidSNMPManager) {
    this.androidSMNPManager = androidSNMPManager;

    initComponents();

    cardLayout = new CardLayout();
    dummyPhonePanel.setLayout(cardLayout);

    cardLayout.addLayoutComponent(new JPanel(), blank);

    devicesList.setCellRenderer(new ManagedDeviceCellRenderer());
  }