diff options
author | Simon Rettberg | 2018-01-29 18:13:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-29 18:13:29 +0100 |
commit | b3022f0c28a53265eff5eb97bda8b4741d66fa78 (patch) | |
tree | 5181f0d412ba97f5f0da475c7fa153d954ca775a /dozentenmodul/src/main/java/org/openslx/dozmod/gui/control | |
parent | [client] Fix NPE with JDatePicker (by updating it) (diff) | |
download | tutor-module-b3022f0c28a53265eff5eb97bda8b4741d66fa78.tar.gz tutor-module-b3022f0c28a53265eff5eb97bda8b4741d66fa78.tar.xz tutor-module-b3022f0c28a53265eff5eb97bda8b4741d66fa78.zip |
[client] Fix JDatePicker init by passing default calendar
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/control')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/QDatePickerImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/QDatePickerImpl.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/QDatePickerImpl.java index 5260f637..9c6adf3a 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/QDatePickerImpl.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/QDatePickerImpl.java @@ -4,6 +4,7 @@ import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.lang.reflect.Field; +import java.util.Calendar; import java.util.HashSet; import java.util.Set; @@ -39,9 +40,7 @@ public class QDatePickerImpl extends JDatePicker { } public QDatePickerImpl() { - super(); - - //super(datePanel, formatter); + super(Calendar.getInstance()); Field cfButton = null; Field cfTextField = null; try { |