1. 首页
  2. 编程语言
  3. Java
  4. JButton 美化(圆角矩形立体效果加鼠标响应)Demo.rar

JButton 美化(圆角矩形立体效果加鼠标响应)Demo.rar

上传者: 2020-08-07 20:28:11上传 RAR文件 23.94KB 热度 11次
主要代码: @Override public void paintIcon(Component cmp, Graphics g, int x, int y) { Color lowerColor = new Color(235,255,235); Color highColor = new Color(81,184,77); Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VA
用户评论