Package javax.swing

Examples of javax.swing.JPanel.removeAll()


    }

    protected void select(String name) {
  selected = name;
  JPanel p1 = (JPanel)helpers.get(name);
  p1.removeAll();
  try {
      RemoteResourceWrapper rrw = root.getChildResource(name);
      AttributesHelper helper = new AttributesHelper();
      PropertyManager pm = PropertyManager.getPropertyManager();
      Properties props = pm.getEditorProperties(rrw);
View Full Code Here


   * Removes all arrows from the screen.
   */
  public static void removeAllArrows() {
    JPanel p = getArrowsPanel();
    if (p.getComponentCount() > 0) {
      p.removeAll();
      p.revalidate();
      p.repaint();
    }
  }

View Full Code Here

  private JPanel createReasonerPanel(String description){
   
    JPanel reasonerPanel = new JPanel(new GridLayout(1,2));
    Font font = new Font("selected label", Font.PLAIN, 12);
   
    reasonerPanel.removeAll();
    reasonerPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
        (BorderFactory.createLineBorder(Color.LIGHT_GRAY), description,
            TitledBorder.LEADING, TitledBorder.TOP  , new Font("title", Font.BOLD, 12)),
          BorderFactory.createEmptyBorder(3, 3, 3, 3)));
    getAllReasonerProperty();
View Full Code Here

        if (selectedMoteInterface != null && currentInterfaceVisualizer != null) {
          selectedMoteInterface.releaseInterfaceVisualizer(currentInterfaceVisualizer);
        }

        // View selected interface if any
        interfacePanel.removeAll();
        String interfaceDescription = (String) selectInterfaceComboBox.getSelectedItem();
        selectedMoteInterface = null;
        Collection<MoteInterface> intfs = mote.getInterfaces().getInterfaces();
        for (MoteInterface intf : intfs) {
          if (Cooja.getDescriptionOf(intf).equals(interfaceDescription)) {
View Full Code Here

    super("", IconFactory.createEdit());
  }

  public void actionPerformed(ActionEvent e) {
    JPanel appPanel = Main.getInstance().getAppPanel();
    appPanel.removeAll();
    JXTable table = EquipamentoSearch.getInstance().getTable();
    Equipamento eq = (Equipamento) table.getValueAt(
        table.getSelectedRows()[0], -1);
    eq = EquipamentoDataServices.getEquipamento(eq.getId());
    JComponent form = EquipamentoForm.getInstance(eq);
View Full Code Here

    if (table.getSelectedRow() < 0) {
      return;
    }

    JPanel appPanel = Main.getInstance().getAppPanel();
    appPanel.removeAll();

    Usuario u = (Usuario) table.getValueAt(table.getSelectedRow(), -1);
    JComponent form = UsuarioForm.getInstance(u);
    appPanel.add(form);
    appPanel.validate();
View Full Code Here

        super("", IconFactory.createEdit());
    }
   
    public void actionPerformed(ActionEvent e) {
        JPanel appPanel = Main.getInstance().getAppPanel();
        appPanel.removeAll();
        JXTable table = CursoSearch.getInstance().getTable();
        Curso c = (Curso) table.getValueAt(table.getSelectedRows()[0], -1);
        JComponent form = CursoForm.getInstance(c);
        appPanel.add(form);
        appPanel.validate();
View Full Code Here

    if (table.getSelectedRow() < 0) {
      return;
    }

    JPanel appPanel = Main.getInstance().getAppPanel();
    appPanel.removeAll();
   
    Usuario u = (Usuario) table.getValueAt(table.getSelectedRow(), -1);
    JComponent form = UsuarioForm.getInstance(u);
    appPanel.add(form);
    appPanel.validate();
View Full Code Here

    Action actionVisita = new AbstractAction("", IconFactory.createVisitaAtiva16()) {
      private static final long serialVersionUID = -2777494056951012296L;

      public void actionPerformed(ActionEvent e) {
        JPanel appPanel = Main.getInstance().getAppPanel();
        appPanel.removeAll();
        Usuario u = (Usuario) getTable().getValueAt(
            getTable().getSelectedRows()[0], -1);
        JComponent form = VisitaForm.getInstance(u);
        appPanel.add(form);
        appPanel.validate();
View Full Code Here

        super("", IconFactory.createEdit());
    }
   
    public void actionPerformed(ActionEvent e) {
        JPanel appPanel = Main.getInstance().getAppPanel();
        appPanel.removeAll();
        JXTable table = CursoSearch.getInstance().getTable();
        Curso c = (Curso) table.getValueAt(table.getSelectedRows()[0], -1);
        JComponent form = CursoForm.getInstance(c);
        appPanel.add(form);
        appPanel.validate();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.