(Graphics g)
| 90 | |
| 91 | |
| 92 | public void paint(Graphics g) { |
| 93 | // Graphics2D g2 = Toolkit.prepareGraphics(g); |
| 94 | // g2.scale(0.5, 0.5); |
| 95 | |
| 96 | Graphics2D g2 = (Graphics2D) g; |
| 97 | // OS X looks better doing its own thing, Windows and Linux need AA |
| 98 | g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, |
| 99 | Platform.isMacOS() ? |
| 100 | RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT : |
| 101 | RenderingHints.VALUE_TEXT_ANTIALIAS_ON); |
| 102 | |
| 103 | g.drawImage(icon.getImage(), 0, 0, width, height, null); |
| 104 | // g.setColor(Color.ORANGE); |
| 105 | // g.fillRect(0, 0, width, height); |
| 106 | |
| 107 | g.setFont(Toolkit.getSansFont(12, Font.PLAIN)); |
| 108 | g.setColor(Color.WHITE); |
| 109 | g.drawString(Base.getVersionName(), 26, 29); |
| 110 | } |
| 111 | } |
nothing calls this directly
no test coverage detected