New improvements

This commit is contained in:
Robert Vokac 2024-02-03 23:15:17 +00:00
parent 95e24fa66e
commit 75c25fe5ae
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -176,7 +176,7 @@ public class TimeCalcWindow {
.setBounds(280, text.getY() + text.getHeight() + 10, 100, 30);
exitButton.setBounds(390, text.getY() + text.getHeight() + 10, 100, 30);
focusButton.setBounds(exitButton.getX() + 10 + 10 + 10 + exitButton.getWidth() + 20, 10, 40, 30);
focusButton.setBounds(exitButton.getX() + 10 + 10 + 10 + exitButton.getWidth() + 20, 10, 60, 30);
window.setSize(520 + 20 + 100, 580);
window.setLayout(null);
@ -550,6 +550,9 @@ public class TimeCalcWindow {
int spacesTotal = 48;
int spacesDone = (int) (percent * spacesTotal);
if(spacesDone > spacesTotal) {
spacesDone = spacesTotal;
}
int spacesTodo = spacesTotal - (spacesDone < 0 ? 0 : spacesDone);
sb.append("||" + createSpaces(spacesTotal + 6 - 2) + (spacesTodo == 0 ?