1. 首页
  2. 编程语言
  3. Actionscript
  4. java JTextField美化Demo

java JTextField美化Demo

上传者: 2020-08-30 05:37:16上传 RAR文件 11.98KB 热度 41次
实现圆角矩形边框,hint文字,主要代码: Graphics2D g2d=(Graphics2D) g; g2d.setStroke(new BasicStroke(2,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND)); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.5f)); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, Renderi
用户评论