Skip to content

Commit

Permalink
[GestionMongoDB] Añadida la columna editorial en el componente TablaL…
Browse files Browse the repository at this point in the history
…ibros
  • Loading branch information
Santiago Faci committed Feb 17, 2017
1 parent 43277a3 commit 56abb7a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
46 changes: 23 additions & 23 deletions GestionMongoDB/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
5 changes: 3 additions & 2 deletions GestionMongoDB/src/com/sfaci/gestionmongodb/TablaLibros.java
Expand Up @@ -5,7 +5,6 @@

import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.util.ArrayList;
import java.util.HashMap;

import static com.sfaci.gestionmongodb.util.Constantes.*;
Expand All @@ -28,6 +27,7 @@ public TablaLibros() {
dtm.addColumn(AUTOR);
dtm.addColumn(FECHA);
dtm.addColumn(DISPONIBLE);
dtm.addColumn(EDITORIAL);
setModel(dtm);
}

Expand All @@ -42,7 +42,8 @@ public void anadirLibro(Libro libro) {
libro.getDescripcion(),
libro.getAutor(),
Util.formatFecha(libro.getFecha()),
String.valueOf(libro.isDisponible())
String.valueOf(libro.isDisponible()),
libro.getEditorial().getNombre()
};
dtm.addRow(fila);

Expand Down

0 comments on commit 56abb7a

Please sign in to comment.