Fixed visual bug when adding an edge and deleting an edge.

This commit is contained in:
Chris Cromer 2016-07-22 14:17:54 -04:00
parent ff6278ff19
commit eca164a190
2 changed files with 7 additions and 3 deletions

View File

@ -382,8 +382,10 @@ public class GrafoController implements Initializable {
}
valorNodo1.setText("");
valorNodo2.setText("");
if (grafoTipos.getTipo() == Grafo.Tipos.PESO) {
valorPeso.setText("");
}
}
else {
Main.mostrarError(resourceBundle.getString("grafoNoNumero"), resourceBundle);
}
@ -431,8 +433,10 @@ public class GrafoController implements Initializable {
}
valorNodo1.setText("");
valorNodo2.setText("");
if (grafoTipos.getTipo() == Grafo.Tipos.PESO) {
valorPeso.setText("");
}
}
else {
Main.mostrarError(resourceBundle.getString("grafoNoEdge"), resourceBundle);
}

View File

@ -22,7 +22,7 @@ import java.util.logging.Level;
* Se necesita java 8 con javafx instalado.
*
* @author Chris Cromer
* @version 1.0.0
* @version 1.0.1
*/
public class Main extends Application {
/**