private void drawStatusBar(Graphics2D g) {
Font font = new Font("Arial", Font.BOLD, 12);
g.setFont(font);
FontMetrics metrics = g.getFontMetrics(font);
g.setColor(Color.LIGHT_GRAY);
g.fillRect(0, pnlSize.height -metrics.getHeight()*2, pnlSize.width, metrics.getHeight()*2);
g.setColor(Color.BLACK);
g.drawString(status, 24, pnlSize.height - (int)(metrics.getHeight()*.75));
}
IAT 265 (Fall 2017)
Lab 08
Lab 08
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.