En el dialog de mes ahora muestra seleccionado por default el mes actual

This commit is contained in:
Daniel Cortes
2019-02-05 18:42:01 -03:00
parent d84f07a6c9
commit 8a3512aa9b
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@@ -128,6 +128,8 @@ public class MonthSelectDialog extends JDialog {
monthCombo.addItem(month); monthCombo.addItem(month);
} }
int currentMonth = LocalDate.now().getMonth().getValue() - 1;
monthCombo.setSelectedIndex(currentMonth);
} }
/** /**
@@ -177,4 +179,5 @@ public class MonthSelectDialog extends JDialog {
public JComponent $$$getRootComponent$$$() { public JComponent $$$getRootComponent$$$() {
return contentPane; return contentPane;
} }
} }