Components were reorganized

This commit is contained in:
Robert Vokac 2024-05-18 17:10:19 +02:00
parent d0639b2009
commit 59278eff62
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
5 changed files with 92 additions and 97 deletions

View File

@ -2,6 +2,7 @@ package org.nanoboot.utils.timecalc.swing.common;
import java.awt.Color; import java.awt.Color;
import java.awt.Font; import java.awt.Font;
import java.awt.Insets;
/** /**
* @author Robert Vokac * @author Robert Vokac
@ -14,7 +15,7 @@ public class SwingUtils {
public static final Font VERY_SMALL_FONT = new Font("sans", Font.PLAIN, 9); public static final Font VERY_SMALL_FONT = new Font("sans", Font.PLAIN, 9);
public static final Font MEDIUM_MONOSPACE_FONT public static final Font MEDIUM_MONOSPACE_FONT
= new Font(Font.MONOSPACED, Font.PLAIN, 12); = new Font(Font.MONOSPACED, Font.PLAIN, 12);
public static final Insets INSETS = new Insets(4,4,4,4);
private SwingUtils() { private SwingUtils() {
//Not meant to be instantiated. //Not meant to be instantiated.
} }

View File

@ -13,13 +13,15 @@ import java.awt.Color;
import org.nanoboot.utils.timecalc.swing.windows.MainWindow; import org.nanoboot.utils.timecalc.swing.windows.MainWindow;
import org.nanoboot.utils.timecalc.swing.common.SwingUtils; import org.nanoboot.utils.timecalc.swing.common.SwingUtils;
import static org.nanoboot.utils.timecalc.swing.common.SwingUtils.INSETS;
/** /**
* @author Robert Vokac * @author Robert Vokac
* @since 21.02.2024 * @since 21.02.2024
*/ */
public class TButton extends JButton implements GetProperty { public class TButton extends JButton implements GetProperty {
private static final int BUTTON_WIDTH = 100; private static final int BUTTON_WIDTH = 80;
private static final int BUTTON_HEIGHT = 30; private static final int BUTTON_HEIGHT = 30;
public final BooleanProperty visibilitySupportedColoredProperty public final BooleanProperty visibilitySupportedColoredProperty
= new BooleanProperty("visibilitySupportedColoredProperty", true); = new BooleanProperty("visibilitySupportedColoredProperty", true);
@ -43,6 +45,7 @@ public class TButton extends JButton implements GetProperty {
super(label); super(label);
this.customWidth = customWidth; this.customWidth = customWidth;
this.customHeight = customHeight; this.customHeight = customHeight;
setMargin(INSETS);
new Timer(100, e -> { new Timer(100, e -> {
if (!MainWindow.hideShowFormsCheckBox.isSelected()) { if (!MainWindow.hideShowFormsCheckBox.isSelected()) {
setVisible(false); setVisible(false);

View File

@ -19,6 +19,9 @@ import javax.swing.Timer;
import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener; import javax.swing.event.DocumentListener;
import java.awt.Color; import java.awt.Color;
import java.awt.Insets;
import static org.nanoboot.utils.timecalc.swing.common.SwingUtils.INSETS;
/** /**
* @author Robert Vokac * @author Robert Vokac
@ -28,6 +31,7 @@ public class TTextField extends JTextField implements GetProperty {
private static final int WIDTH = 50; private static final int WIDTH = 50;
private static final int HEIGHT = 30; private static final int HEIGHT = 30;
private int customWidth = 0; private int customWidth = 0;
private Color originalBackground; private Color originalBackground;
private Color originalForeground; private Color originalForeground;
@ -63,6 +67,8 @@ public class TTextField extends JTextField implements GetProperty {
} }
public TTextField(String s, int customWidth, boolean editingOnlyInDialog, ChangeListener vetoableChangeListener) { public TTextField(String s, int customWidth, boolean editingOnlyInDialog, ChangeListener vetoableChangeListener) {
super(s); super(s);
setMargin(INSETS);
setEditingOnlyInDialog(editingOnlyInDialog); setEditingOnlyInDialog(editingOnlyInDialog);
setVetoableChangeListener(vetoableChangeListener); setVetoableChangeListener(vetoableChangeListener);
this.customWidth = customWidth; this.customWidth = customWidth;

View File

@ -16,9 +16,9 @@ import java.awt.RenderingHints;
public class ProgressBar extends Widget { public class ProgressBar extends Widget {
public IntegerProperty heightProperty = new IntegerProperty("heightProperty", 50); public IntegerProperty heightProperty = new IntegerProperty("heightProperty", 25);
public ProgressBar() { public ProgressBar() {
setPreferredSize(new Dimension(600, 50)); setPreferredSize(new Dimension(600, 25));
} }
@Override @Override

View File

@ -119,8 +119,8 @@ public class MainWindow extends TWindow {
private final TTextField noteTextField; private final TTextField noteTextField;
private final TCheckBox timeOffCheckBox = new TCheckBox("Time off"); private final TCheckBox timeOffCheckBox = new TCheckBox("Time off");
private final TTextField departureTextField; private final TTextField departureTextField;
private final TTextField elapsedTextField; private final TTextField elapsedDayTextField;
private final TTextField remainingTextField; private final TTextField remainingDayTextField;
private final TTextField elapsedWeekTextField; private final TTextField elapsedWeekTextField;
private final TTextField remainingWeekTextField; private final TTextField remainingWeekTextField;
private final TTextField elapsedPauseTextField; private final TTextField elapsedPauseTextField;
@ -162,15 +162,15 @@ public class MainWindow extends TWindow {
this.pauseTimeTextField = new TTextField("00:30", 50, true, valueMustBeTime); this.pauseTimeTextField = new TTextField("00:30", 50, true, valueMustBeTime);
this.pauseStartTextField = new TTextField("11:00", 50, true, valueMustBeTime); this.pauseStartTextField = new TTextField("11:00", 50, true, valueMustBeTime);
this.noteTextField = new TTextField("", 60); this.noteTextField = new TTextField("", 100);
this.departureTextField = new TTextField(); this.departureTextField = new TTextField();
this.elapsedTextField = new TTextField("", 100); this.elapsedDayTextField = new TTextField("", 80);
this.remainingTextField = new TTextField("", 100); this.remainingDayTextField = new TTextField("", 80);
this.elapsedWeekTextField = new TTextField("", 100); this.elapsedWeekTextField = new TTextField("", 80);
this.remainingWeekTextField = new TTextField("", 100); this.remainingWeekTextField = new TTextField("", 80);
this.elapsedPauseTextField = new TTextField("", 100); this.elapsedPauseTextField = new TTextField("", 80);
this.remainingPauseTextField = new TTextField("", 100); this.remainingPauseTextField = new TTextField("", 80);
this.endPauseTextField = new TTextField("", 100); this.endPauseTextField = new TTextField("", 50);
} }
public MainWindow(TimeCalcApp timeCalcApp) { public MainWindow(TimeCalcApp timeCalcApp) {
@ -259,15 +259,15 @@ public class MainWindow extends TWindow {
// //
timeCalcConfiguration.saveToTimeCalcProperties(); timeCalcConfiguration.saveToTimeCalcProperties();
} }
this.workDaysButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Work Days"); this.workDaysButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Arrivals");
this.activitiesButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Activities"); this.activitiesButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Activities");
this.restartButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Restart"); this.restartButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Restart");
this.exitButton = new TButton("Exit"); this.exitButton = new TButton("Exit", 50);
this.focusButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Focus"); this.focusButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Focus", 70);
this.helpButton = new TButton("Help"); this.helpButton = new TButton("Help", 60);
this.weatherButton = new TButton("Weather"); this.weatherButton = new TButton("Weather");
this.commandButton = new TButton("Command"); this.commandButton = new TButton("Run", 60);
this.jokeButton = new TButton("Joke"); this.jokeButton = new TButton("Joke", 60);
this.aboutButton = new AboutButton(); this.aboutButton = new AboutButton();
//window.add(weatherButton); //window.add(weatherButton);
@ -472,7 +472,7 @@ public class MainWindow extends TWindow {
// //
this.progressBar = new ProgressBar(); this.progressBar = new ProgressBar();
progressBar.setBounds(progressSwing.getX(), progressSwing.getY() + progressSwing.getHeight() + SwingUtils.MARGIN, progressBar.setBounds(progressSwing.getX(), progressSwing.getY() + progressSwing.getHeight() + SwingUtils.MARGIN,
progressRotation.getX() + progressRotation.getWidth() - 2 * SwingUtils.MARGIN, 50); progressRotation.getX() + progressRotation.getWidth() - 2 * SwingUtils.MARGIN, 25);
progressBar.visibleProperty progressBar.visibleProperty
.bindTo(timeCalcConfiguration.barVisibleProperty); .bindTo(timeCalcConfiguration.barVisibleProperty);
@ -548,8 +548,8 @@ public class MainWindow extends TWindow {
progressMoney.hiddenProperty.bindTo(timeCalcConfiguration.moneyHiddenProperty); progressMoney.hiddenProperty.bindTo(timeCalcConfiguration.moneyHiddenProperty);
progressWeather.hiddenProperty.bindTo(timeCalcConfiguration.weatherHiddenProperty); progressWeather.hiddenProperty.bindTo(timeCalcConfiguration.weatherHiddenProperty);
} }
TLabel arrivalTextFieldLabel = new TLabel("Arrival:", 70); TLabel arrivalTextFieldLabel = new TLabel("Arrival:", 50);
arrivalTextFieldLabel.setBoundsFromTop(progressColor, 3); arrivalTextFieldLabel.setBoundsFromTop(progressColor, 2);
arrivalTextField.setBoundsFromLeft(arrivalTextFieldLabel); arrivalTextField.setBoundsFromLeft(arrivalTextFieldLabel);
TButton arrivalIncreaseButton = new SmallTButton('+'); TButton arrivalIncreaseButton = new SmallTButton('+');
@ -601,19 +601,14 @@ public class MainWindow extends TWindow {
// //
TLabel noteTextFieldLabel = new TLabel("Note:", 80); TLabel noteTextFieldLabel = new TLabel("Note:", 50);
noteTextFieldLabel.setBoundsFromTop(arrivalTextFieldLabel); noteTextFieldLabel.setBoundsFromTop(arrivalTextFieldLabel);
noteTextField.setBoundsFromLeft(noteTextFieldLabel); noteTextField.setBoundsFromLeft(noteTextFieldLabel);
timeOffCheckBox.setBoundsFromLeft(noteTextField); timeOffCheckBox.setBoundsFromLeft(noteTextField);
this.saveButton = new TButton("Save", 180); this.saveButton = new TButton("Save", 80);
saveButton.setBounds( saveButton.setBoundsFromLeft(timeOffCheckBox);
pauseDecreaseButton.getX() - SwingUtils.MARGIN,
timeOffCheckBox.getY(),
noteTextField.getWidth() * 3,
noteTextField.getHeight()
);
// //
if(!allowOnlyBasicFeaturesProperty.getValue()) add(arrivalTextFieldLabel); if(!allowOnlyBasicFeaturesProperty.getValue()) add(arrivalTextFieldLabel);
@ -657,32 +652,37 @@ public class MainWindow extends TWindow {
add(noteTextField); add(noteTextField);
add(timeOffCheckBox); add(timeOffCheckBox);
// //
TLabel departureTextFieldLabel = new TLabel("Departure:", 70); TLabel departureTextFieldLabel = new TLabel("Departure:", 65);
departureTextFieldLabel.setBoundsFromTop(noteTextFieldLabel); departureTextFieldLabel.setBoundsFromLeft(saveButton, 50);
departureTextField.setBoundsFromLeft(departureTextFieldLabel); departureTextField.setBoundsFromLeft(departureTextFieldLabel);
departureTextField.setEditable(false); departureTextField.setEditable(false);
// //
TLabel elapsedTextFieldLabel = new TLabel("Elapsed:");
elapsedTextFieldLabel.setBoundsFromLeft(departureTextField);
elapsedTextField.setBoundsFromLeft(elapsedTextFieldLabel); TLabel dayLabel = new TLabel("Day:", 50);
elapsedTextField.setEditable(false); dayLabel.setBoundsFromTop(noteTextFieldLabel);
elapsedDayTextField.setBoundsFromLeft(dayLabel);
elapsedDayTextField.setEditable(false);
// //
TLabel remainingTextFieldLabel = new TLabel("Remaining:", 100);
remainingTextFieldLabel.setBoundsFromLeft(elapsedTextField);
remainingTextField.setBoundsFromLeft(remainingTextFieldLabel);
remainingTextField.setEditable(false);
remainingDayTextField.setBoundsFromLeft(elapsedDayTextField);
remainingDayTextField.setEditable(false);
// //
if(!allowOnlyBasicFeaturesProperty.getValue()) add(departureTextFieldLabel); if(!allowOnlyBasicFeaturesProperty.getValue()) add(departureTextFieldLabel);
add(departureTextField); add(departureTextField);
TLabel endPauseTextFieldLabel = new TLabel("Pause end:", 60);
endPauseTextFieldLabel.setBounds(pauseStartTimeLabel.getX(), departureTextFieldLabel.getY());
endPauseTextField.setBoundsFromLeft(endPauseTextFieldLabel);
endPauseTextField.setEditable(false);
if(!allowOnlyBasicFeaturesProperty.getValue()) { if(!allowOnlyBasicFeaturesProperty.getValue()) {
add(elapsedTextFieldLabel); add(dayLabel);
add(elapsedTextField); add(elapsedDayTextField);
add(remainingTextFieldLabel); add(remainingDayTextField);
add(remainingTextField);
} }
if(!allowOnlyBasicFeaturesProperty.getValue()) { if(!allowOnlyBasicFeaturesProperty.getValue()) {
add(saveButton); add(saveButton);
@ -691,82 +691,63 @@ public class MainWindow extends TWindow {
this.activityRepository = new ActivityRepositorySQLiteImpl(timeCalcApp.getSqliteConnectionFactory()); this.activityRepository = new ActivityRepositorySQLiteImpl(timeCalcApp.getSqliteConnectionFactory());
//////// ////////
TLabel weekLabel = new TLabel("Week:", 70); // TTextField field = new TTextField("");
weekLabel.setBoundsFromTop(departureTextFieldLabel); // field.setBoundsFromLeft(weekLabel);
TTextField field = new TTextField(""); //
field.setBoundsFromLeft(weekLabel); // field.setEditable(false);
// field.setVisible(false);
field.setEditable(false);
field.setVisible(false);
// //
// //
TLabel elapsedWeekTextFieldLabel = new TLabel("Elapsed:"); TLabel weekLabel = new TLabel("Week", 50);
elapsedWeekTextFieldLabel.setBoundsFromLeft(field); weekLabel.setBoundsFromLeft(remainingDayTextField);
elapsedWeekTextField.setBoundsFromLeft(elapsedWeekTextFieldLabel); elapsedWeekTextField.setBoundsFromLeft(weekLabel);
elapsedWeekTextField.setEditable(false); elapsedWeekTextField.setEditable(false);
// //
TLabel remainingWeekTextFieldLabel = new TLabel("Remaining:", 100);
remainingWeekTextFieldLabel.setBoundsFromLeft(elapsedWeekTextField);
remainingWeekTextField.setBoundsFromLeft(remainingWeekTextFieldLabel); remainingWeekTextField.setBoundsFromLeft(elapsedWeekTextField);
remainingWeekTextField.setEditable(false); remainingWeekTextField.setEditable(false);
if(!allowOnlyBasicFeaturesProperty.getValue()) { if(!allowOnlyBasicFeaturesProperty.getValue()) {
add(weekLabel); add(weekLabel);
add(elapsedWeekTextFieldLabel);
add(elapsedWeekTextField); add(elapsedWeekTextField);
add(remainingWeekTextFieldLabel);
add(remainingWeekTextField); add(remainingWeekTextField);
} }
//////// ////////
TLabel pauseLabel = new TLabel("Pause:", 70); // TTextField field2 = new TTextField("");
pauseLabel.setBoundsFromTop(weekLabel); // field2.setBoundsFromLeft(pauseLabel);
TTextField field2 = new TTextField(""); //
field2.setBoundsFromLeft(pauseLabel); // field2.setEditable(false);
// field2.setVisible(false);
field2.setEditable(false);
field2.setVisible(false);
// //
// //
TLabel elapsedPauseTextFieldLabel = new TLabel("Elapsed:"); TLabel pauseLabel = new TLabel("Pause:", 50);
elapsedPauseTextFieldLabel.setBoundsFromLeft(field2); pauseLabel.setBoundsFromLeft(remainingWeekTextField);
elapsedPauseTextField.setBoundsFromLeft(elapsedPauseTextFieldLabel); elapsedPauseTextField.setBoundsFromLeft(pauseLabel);
elapsedPauseTextField.setEditable(false); elapsedPauseTextField.setEditable(false);
// //
TLabel remainingPauseTextFieldLabel = new TLabel("Remaining:", 100); remainingPauseTextField.setBoundsFromLeft(elapsedPauseTextField);
remainingPauseTextFieldLabel.setBoundsFromLeft(elapsedPauseTextField);
remainingPauseTextField.setBoundsFromLeft(remainingPauseTextFieldLabel);
remainingPauseTextField.setEditable(false); remainingPauseTextField.setEditable(false);
// //
TLabel endPauseTextFieldLabel = new TLabel("End:", 50);
endPauseTextFieldLabel.setBoundsFromLeft(remainingPauseTextField);
endPauseTextField.setBoundsFromLeft(endPauseTextFieldLabel);
endPauseTextField.setEditable(false);
if(!allowOnlyBasicFeaturesProperty.getValue()) { if(!allowOnlyBasicFeaturesProperty.getValue()) {
add(pauseLabel); add(pauseLabel);
add(elapsedPauseTextFieldLabel);
add(elapsedPauseTextField); add(elapsedPauseTextField);
add(remainingPauseTextFieldLabel);
add(remainingPauseTextField); add(remainingPauseTextField);
add(endPauseTextFieldLabel); add(endPauseTextFieldLabel);
add(endPauseTextField); add(endPauseTextField);
} }
//////// ////////
// //
configButton.setBoundsFromTop(pauseLabel); configButton.setBoundsFromTop(dayLabel);
workDaysButton.setBoundsFromLeft(configButton); workDaysButton.setBoundsFromLeft(configButton);
activitiesButton.setBoundsFromLeft(workDaysButton); activitiesButton.setBoundsFromLeft(workDaysButton);
exitButton.setBounds(saveButton.getX() + saveButton.getWidth() - activitiesButton.getWidth(), workDaysButton.getY(), activitiesButton.getWidth(), activitiesButton.getHeight());
restartButton.setBounds(exitButton.getX() - SwingUtils.MARGIN - activitiesButton.getWidth(), activitiesButton.getY(), activitiesButton.getWidth(), activitiesButton.getHeight());
// //
helpButton.setBoundsFromTop(exitButton, 2); helpButton.setBoundsFromLeft(activitiesButton);
focusButton.setBoundsFromLeft(helpButton); focusButton.setBoundsFromLeft(helpButton);
commandButton.setBoundsFromLeft(focusButton); commandButton.setBoundsFromLeft(focusButton);
jokeButton.setBoundsFromLeft(commandButton); jokeButton.setBoundsFromLeft(commandButton);
@ -775,6 +756,8 @@ public class MainWindow extends TWindow {
jokeButton.getX() + jokeButton.getWidth() + SwingUtils.MARGIN, jokeButton.getX() + jokeButton.getWidth() + SwingUtils.MARGIN,
jokeButton.getY(), 20, 20); jokeButton.getY(), 20, 20);
// //
restartButton.setBoundsFromLeft(hideShowFormsCheckBox);
exitButton.setBoundsFromLeft(restartButton);
aboutButton.setBounds(exitButton.getX(), aboutButton.setBounds(exitButton.getX(),
exitButton.getY() + exitButton.getHeight() + SwingUtils.MARGIN); exitButton.getY() + exitButton.getHeight() + SwingUtils.MARGIN);
@ -1434,15 +1417,15 @@ public class MainWindow extends TWindow {
int secondsRemains = 60 - secondNow; int secondsRemains = 60 - secondNow;
int millisecondsRemains = 1000 - millisecondNow; int millisecondsRemains = 1000 - millisecondNow;
if (!remainingTextField.valueProperty.getValue() if (!remainingDayTextField.valueProperty.getValue()
.equals(timeRemainsString)) { .equals(timeRemainsString)) {
remainingTextField.valueProperty.setValue(timeRemainsString); remainingDayTextField.valueProperty.setValue(timeRemainsString);
} }
remainingWeekTextField.valueProperty.setValue(timeWeekRemains.toString()); remainingWeekTextField.valueProperty.setValue(timeWeekRemains.toString());
if (!elapsedTextField.valueProperty.getValue() if (!elapsedDayTextField.valueProperty.getValue()
.equals(timeElapsedString)) { .equals(timeElapsedString)) {
elapsedTextField.valueProperty.setValue(timeElapsedString); elapsedDayTextField.valueProperty.setValue(timeElapsedString);
} }
elapsedWeekTextField.valueProperty.setValue(timeWeekElapsed.toString()); elapsedWeekTextField.valueProperty.setValue(timeWeekElapsed.toString());
// if (!elapsedTextField.valueProperty.getValue() // if (!elapsedTextField.valueProperty.getValue()
@ -1456,26 +1439,28 @@ public class MainWindow extends TWindow {
boolean beforePause = nowTime.toTotalMilliseconds() < pauseStart.toTotalMilliseconds(); boolean beforePause = nowTime.toTotalMilliseconds() < pauseStart.toTotalMilliseconds();
boolean afterPause = nowTime.toTotalMilliseconds() > pauseEnd.toTotalMilliseconds(); boolean afterPause = nowTime.toTotalMilliseconds() > pauseEnd.toTotalMilliseconds();
boolean duringPause = !beforePause && !afterPause; boolean duringPause = !beforePause && !afterPause;
TTime pauseElapsed = beforePause ? TTime.ofMinutes(0) : (afterPause ? pauseTimeTextField.asTTime() : nowTime.remove(pauseStart));
double pauseElapsedMilliseconds = pauseElapsed.toTotalMilliseconds();
double pauseTotalMilliseconds = pauseTimeTextField.asTTime().toTotalMilliseconds();
double pauseProgress = pauseElapsedMilliseconds / pauseTotalMilliseconds;
TTime pauseRemains = afterPause ? TTime.ofMinutes(0) : (beforePause ? pauseTimeTextField.asTTime() : pauseEnd.remove(nowTime));
endPauseTextField.valueProperty.setValue(pauseEnd.toString().substring(0,5));
elapsedPauseTextField.valueProperty.setValue(pauseElapsed.toString());
remainingPauseTextField.valueProperty.setValue(pauseRemains.toString());
if(timeCalcConfiguration.testEnabledProperty.isDisabled()) { if(timeCalcConfiguration.testEnabledProperty.isDisabled()) {
if (duringPause && !pauseNotifications) { if (duringPause && !pauseNotifications) {
pauseNotifications = true; pauseNotifications = true;
Utils.showNotification( Utils.showNotification(
"It is the time for pause. Please, eat something and do not work.", "It is the time for pause. Please, eat something and do not work.",
pauseTimeTextField.asTTime().toTotalMilliseconds(), remainingPauseTextField.asTTime().toTotalMilliseconds(),
400); 400);
} }
if (!duringPause && pauseNotifications) { if (!duringPause && pauseNotifications) {
pauseNotifications = false; pauseNotifications = false;
} }
} }
TTime pauseElapsed = beforePause ? TTime.ofMinutes(0) : (afterPause ? pauseTimeTextField.asTTime() : nowTime.remove(pauseStart));
double pauseElapsedMilliseconds = pauseElapsed.toTotalMilliseconds();
double pauseTotalMilliseconds = pauseTimeTextField.asTTime().toTotalMilliseconds();
double pauseProgress = pauseElapsedMilliseconds / pauseTotalMilliseconds;
TTime pauseRemains = afterPause ? TTime.ofMinutes(0) : (beforePause ? pauseTimeTextField.asTTime() : pauseEnd.remove(nowTime));
endPauseTextField.valueProperty.setValue(pauseEnd.toString());
elapsedPauseTextField.valueProperty.setValue(pauseElapsed.toString());
remainingPauseTextField.valueProperty.setValue(pauseRemains.toString());
int totalMillisecondsDone int totalMillisecondsDone
= timeElapsed.toTotalMilliseconds(); = timeElapsed.toTotalMilliseconds();