Added several improvements XXIX

This commit is contained in:
Robert Vokac 2024-01-21 08:00:48 +00:00
parent 155474f568
commit bc76a0f107
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -52,14 +52,21 @@ public class ProgressSquare extends JPanel {
// System.out.println("x=" + x);
// System.out.println("y=" + y);
if(y > 1) {
g2d.setColor(Color.GRAY);
g2d.fillRect(side - 4, side - 4, 4, 4);
g2d.fillRect(1, side - 4, 4, 4);
g2d.setColor(FOREGROUND_COLOR);
g2d.fillRect(1, 1, side, y - 1);
if(x>1) {
g2d.drawRect(1, y, x - 1, 1);
}
g2d.setColor(Color.GRAY);
g2d.fillRect(side - 4, 1, 4, 4);
g2d.fillRect(1, 1, 4, 4);
g2d.setColor(Color.BLUE);
g2d.drawRect(x, y, 1, 1);
g2d.drawLine(x-5, y-5, x+5, y+5);
g2d.drawLine(x+5, y-5, x-5, y+5);
g2d.setColor(FOREGROUND_COLOR);
}
}