@@ -0,0 +1,592 @@
+/*%0A * Copyright (c) 2009-2013 Topi Nieminen%0A */%0Apackage fi.tnie.db.model;%0A%0Aimport java.util.Date;%0A%0Apublic class MutableDateModel%0A%09extends DefaultMutableValueModel%3CDate%3E %7B%0A%0A%09public MutableDateModel() %7B%0A%09%09super();%0A%09%7D%0A%0A%09public MutableDateModel(Date value) %7B%0A%09%09super(clone(value));%0A%09%7D%09%0A%09%0A%09@Override%0A%09public Date get() %7B%0A%09%09Date d = super.get();%0A%09%09return d == null ? null : clone(d);%0A%09%7D%0A%09%0A%09@Override%0A%09public void set(Date newValue) %7B%0A%09%09Date d = (newValue == null) ? null : clone(newValue);%0A%09%09super.set(d);%0A%09%7D%0A%0A%09private static Date clone(Date newValue) %7B%0A%09%09return new Date(newValue.getTime());%0A%09%7D%0A%7D%0A

Add MutableDateModel