mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added new improvements
This commit is contained in:
parent
597346e5d8
commit
f456d2195b
@ -359,7 +359,7 @@ public class TimeCalcManager {
|
|||||||
// } );
|
// } );
|
||||||
window.setSize(520 + 20 + 100, exitButton.getY() + 3 * exitButton.getHeight() + MARGIN);
|
window.setSize(520 + 20 + 100, exitButton.getY() + 3 * exitButton.getHeight() + MARGIN);
|
||||||
while (true) {
|
while (true) {
|
||||||
//time.writeString();
|
time.writeString();
|
||||||
if(Math.random() > 0.95) {
|
if(Math.random() > 0.95) {
|
||||||
window.requestFocus();
|
window.requestFocus();
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ public class Time extends Thread {
|
|||||||
dayOfWeekReadWriteProperty
|
dayOfWeekReadWriteProperty
|
||||||
.setValue(dayOfWeek == 1 ? 7 : dayOfWeek - 1);
|
.setValue(dayOfWeek == 1 ? 7 : dayOfWeek - 1);
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1);
|
Thread.sleep(100);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
System.out.println(e);
|
System.out.println(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user