Example #1
0
  /**
   * This method initializes jTableTitular
   *
   * @return javax.swing.JTable
   */
  private JTable getJTableTitular() {
    if (jTableTitular == null) {
      jTableTitular = new JTable();

      tablepersonamodel = new TablePersonaModel();

      TableSorted tblSorted = new TableSorted(tablepersonamodel);
      tblSorted.setTableHeader(jTableTitular.getTableHeader());
      jTableTitular.setModel(tblSorted);
      jTableTitular.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      jTableTitular.setCellSelectionEnabled(false);
      jTableTitular.setColumnSelectionAllowed(false);
      jTableTitular.setRowSelectionAllowed(true);
      jTableTitular.getTableHeader().setReorderingAllowed(false);

      ArrayList lst = new ArrayList();
      lst.add(new Persona());
      ((TablePersonaModel) ((TableSorted) jTableTitular.getModel()).getTableModel()).setData(lst);

      /*
      EdicionOperations oper = new EdicionOperations();
      try
      {
          ArrayList lstVias = oper.obtenerViasCatastro();
          ((TableViasCatastroModel)((TableSorted)jTableViasCatastro.getModel()).getTableModel()).setData(lstVias);

      } catch (DataException e1)
      {
          e1.printStackTrace();
      }
      */
    }
    return jTableTitular;
  }
Example #2
0
 private void actualizarModelo() {
   modelConexiones = new ConexionesTableModel();
   modelConexiones.setModelData(listaConexiones);
   sorter = new TableSorted(modelConexiones);
   sorter.setTableHeader(jTableConexiones.getTableHeader());
   jTableConexiones.setModel(sorter);
   jTableConexiones.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
 }
Example #3
0
  /**
   * This method initializes jTableBienInmueble
   *
   * @return javax.swing.JTable
   */
  private JTable getJTableBienInmueble() {
    if (jTableBienInmueble == null) {
      jTableBienInmueble = new JTable();

      tablebimodel = new TableBienInmuebleCatastroModel();

      TableSorted tblSorted = new TableSorted(tablebimodel);
      tblSorted.setTableHeader(jTableBienInmueble.getTableHeader());
      jTableBienInmueble.setModel(tblSorted);
      jTableBienInmueble.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      jTableBienInmueble.setCellSelectionEnabled(false);
      jTableBienInmueble.setColumnSelectionAllowed(false);
      jTableBienInmueble.setRowSelectionAllowed(true);
      jTableBienInmueble.getTableHeader().setReorderingAllowed(false);

      ArrayList lst = new ArrayList();
      lst.add(new BienInmuebleCatastro());
      ((TableBienInmuebleCatastroModel)
              ((TableSorted) jTableBienInmueble.getModel()).getTableModel())
          .setData(lst);

      /*
      EdicionOperations oper = new EdicionOperations();


      try
      {

          ArrayList lst = oper.obtenerFincasExpediente(ex);
          ((TableBienInmuebleCatastroModel)((TableSorted)jTableBienInmueble.getModel()).
                  getTableModel()).setData(lst);


      } catch (DataException e1)
      {
          e1.printStackTrace();
      }
      */
    }
    return jTableBienInmueble;
  }