Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private final Color color1 = new Color(255, 255, 255);
- private final Color color2 = new Color(0, 0, 0);
- public String Status;
- private final BasicStroke stroke1 = new BasicStroke(1);
- private final Font font1 = new Font("Arial", 0, 20);
- private final Font font2 = new Font("Arial", 0, 10);
- public void onRepaint(Graphics g1) {
- Graphics2D g = (Graphics2D)g1;
- g.setColor(color1);
- g.fillRect(22, 357, 468, 87);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.drawRect(22, 357, 468, 87);
- g.setFont(font1);
- g.drawString("INFO", 223, 378);
- g.setFont(font2);
- g.drawString("Status:" + Status, 26, 395);
- }
Advertisement
Add Comment
Please, Sign In to add comment