private void doPaint(String status, int percent) {
try {
int width = (int)(jFrame.getWidth() / 1.5D);
int height = 30;
int x = (jFrame.getWidth() - width) / 2;
int y = jFrame.getHeight() - (50 + height);
BufferStrategy bufferStrategy = jFrame.getBufferStrategy();
Graphics graphics = bufferStrategy.getDrawGraphics();
Graphics2D graphics2D = Graphics2D.class.cast(graphics);
graphics2D.setColor(Color.BLACK);
graphics2D.fillRect(0, 0, jFrame.getWidth(), jFrame.getHeight());
doPaintBackground(graphics2D, x, y, width, height);
doPaintForeground(graphics2D, x, y, width, height, status, percent);
graphics2D.dispose();
} catch(IllegalStateException e) {
}
}
ProgressUpdateFutureImpl.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:org.dayflower
作者:
评论列表
文章目录