1. 首页
  2. 编程语言
  3. Java
  4. java给圆角矩形外线条加粗Demo.rar

java给圆角矩形外线条加粗Demo.rar

上传者: 2020-08-20 04:07:17上传 RAR文件 3.39KB 热度 6次
java给圆角矩形外线条加粗Demo,主要代码: @Override public void paint(Graphics g) { super.paint(g); BasicStroke stroke= new BasicStroke(5); Graphics2D g2d=(Graphics2D)g; g2d.setStroke(stroke); g2d.setColor(Color.BLUE); g2d.drawRoundRect(10, 10, 200, 80, 20, 20); }
用户评论