bugs menores en los jdialog
This commit is contained in:
parent
e9a85d3df0
commit
da28be150a
@ -20,11 +20,13 @@ public class Controlador implements ActionListener,ChangeListener{
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if(e.getActionCommand().equals(this.vista.boton.getActionCommand())) {
|
||||
String nombre=JOptionPane.showInputDialog("Introduce un nuevo gasto o ingreso");
|
||||
if(nombre==null) return;
|
||||
if(nombre.equals("")) {
|
||||
JOptionPane.showMessageDialog(null, "Debe introducir algo", "error", JOptionPane.WARNING_MESSAGE);
|
||||
return;
|
||||
}
|
||||
String dinero=JOptionPane.showInputDialog("Introduce a cuanto asciende");
|
||||
if(dinero==null) return;
|
||||
if(dinero.equals("")) {
|
||||
JOptionPane.showMessageDialog(null, "Debe introducir algo", "error", JOptionPane.WARNING_MESSAGE);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user