Added several improvements XXIX
This commit is contained in:
parent
155474f568
commit
bc76a0f107
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user