mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
New improvements
This commit is contained in:
parent
0dabc38592
commit
7b13aefa44
@ -179,6 +179,11 @@ public class AnalogClock extends JPanel {
|
|||||||
DateFormat formatter = new SimpleDateFormat("EEEE : yyyy-MM-dd", Locale.ENGLISH);
|
DateFormat formatter = new SimpleDateFormat("EEEE : yyyy-MM-dd", Locale.ENGLISH);
|
||||||
g2d.drawString(formatter.format(new Date()), ((int) (side * 0.25)),
|
g2d.drawString(formatter.format(new Date()), ((int) (side * 0.25)),
|
||||||
((int) (side * 0.35)));
|
((int) (side * 0.35)));
|
||||||
|
//
|
||||||
|
DateFormat formatter2 = new SimpleDateFormat("HH:mm:ss", Locale.ENGLISH);
|
||||||
|
|
||||||
|
g2d.drawString(formatter2.format(new Date()), ((int) (side * 0.25) + 30),
|
||||||
|
((int) (side * 0.35)) + 60);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user