Added ProgressSquare II

This commit is contained in:
Robert Vokac 2024-01-20 18:15:30 +00:00
parent 8e152189e4
commit 1cdf0bd127
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -56,7 +56,12 @@ public class ProgressSquare extends JPanel {
g2d.fillRect(side - 4, side - 4, 4, 4);
g2d.fillRect(1, side - 4, 4, 4);
g2d.fillRect(1, 1, side, y - 1);
g2d.drawRect(1, y, x, 1);
if(x>1) {
g2d.drawRect(1, y, x - 1, 1);
}
g2d.setColor(Color.BLUE);
g2d.drawRect(x, y, 1, 1);
g2d.setColor(FOREGROUND_COLOR);
}
}