Las tablas se deseleccionan al ver la vista

This commit is contained in:
Daniel Cortés
2019-07-04 11:25:27 -04:00
parent 5aa83723b7
commit a65c776372
10 changed files with 12 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ public class AutorSearchController extends BaseController {
public void reload() {
this.loadAutorTable();
this.view.getSearchField().requestFocus();
this.view.getAutorTable().setRowSelectionInterval(0, 0);
this.view.getAutorTable().clearSelection();
}
private void loadAutorTable() {

View File

@@ -114,7 +114,7 @@ public class CategoriaSearchController extends BaseController {
public void reload() {
this.loadCategoriaTable();
this.view.getCategoriaTable().setRowSelectionInterval(0, 0);
this.view.getCategoriaTable().clearSelection();
this.view.getSearchField().requestFocus();
}

View File

@@ -113,7 +113,7 @@ public class ClienteSearchController extends BaseController {
private void reload() {
this.loadClienteTable();
this.view.getClienteTable().setRowSelectionInterval(0, 0);
this.view.getClienteTable().clearSelection();
this.view.getSearchField().requestFocus();
}

View File

@@ -114,7 +114,7 @@ public class DistribuidorSearchController extends BaseController {
private void reload() {
this.loadDistribuidorTable();
this.view.getDistribuidorTable().setRowSelectionInterval(0, 0);
this.view.getDistribuidorTable().clearSelection();
this.view.getSearchField().requestFocus();
}

View File

@@ -112,7 +112,7 @@ public class EditorialSearchController extends BaseController {
public void reload() {
this.loadEditorialTable();
this.view.getEditorialTable().setRowSelectionInterval(0, 0);
this.view.getEditorialTable().clearSelection();
this.view.getBuscarField().requestFocus();
}

View File

@@ -106,7 +106,7 @@ public class EmpresaSearchController extends BaseController {
public void reload() {
this.loadEmpresaTable();
this.view.getEmpresaTable().setRowSelectionInterval(0, 0);
this.view.getEmpresaTable().clearSelection();
this.view.getBuscarField().requestFocus();
}

View File

@@ -113,7 +113,7 @@ public class IdiomaSearchController extends BaseController {
public void reload() {
this.loadIdiomaTable();
this.view.getBuscarField().requestFocus();
this.view.getIdiomaTable().setRowSelectionInterval(0, 0);
this.view.getIdiomaTable().clearSelection();
}
@Override

View File

@@ -106,7 +106,7 @@ public class LibroSearchController extends BaseController {
public void reload() {
this.loadLibroTable();
this.view.getBuscarField().requestFocus();
this.view.getLibrosTable().setRowSelectionInterval(0, 0);
this.view.getLibrosTable().clearSelection();
}
@Override

View File

@@ -121,7 +121,7 @@ public class TrabajadorSearchController extends BaseController {
private void reload() {
this.loadTrabajadorTable();
this.view.getSearchField().requestFocus();
this.view.getTrabajadorTable().setRowSelectionInterval(0, 0);
this.view.getTrabajadorTable().clearSelection();
}
private void loadTrabajadorTable() {

View File

@@ -150,7 +150,9 @@
<preferred-size width="400" height="-1"/>
</grid>
</constraints>
<properties/>
<properties>
<editable value="false"/>
</properties>
</component>
<component id="f12bb" class="javax.swing.JLabel">
<constraints>