文件名称:java给圆角矩形外线条加粗Demo.rar
文件大小:3KB
文件格式:RAR
更新时间:2023-04-25 01:33:01
java
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); }
【文件预览】:
Demo_g
----.project(382B)
----bin()
--------MainPanel.class(866B)
--------MainFrame.class(741B)
--------MainClass.class(400B)
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----src()
--------MainFrame.java(407B)
--------MainClass.java(102B)
--------MainPanel.java(530B)
----.classpath(301B)