类的用途
java.awt.BasicStroke
使用 BasicStroke 的包
包
描述
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供用于在 Swing 组件周围绘制专用边框的类和接口。
-
BasicStroke 在 javax.swing 中的用法
javax.swing 中的方法,参数类型为 BasicStroke修饰符和类型方法描述static BorderBorderFactory.createStrokeBorder(BasicStroke stroke) 创建指定stroke的边框。static BorderBorderFactory.createStrokeBorder(BasicStroke stroke, Paint paint) 创建指定stroke和paint的边框。 -
BasicStroke 在 javax.swing.border 中的用法
javax.swing.border 中返回 BasicStroke 的方法javax.swing.border 中的构造函数,参数类型为 BasicStroke修饰符构造方法描述StrokeBorder(BasicStroke stroke) 创建指定stroke的边框。StrokeBorder(BasicStroke stroke, Paint paint) 创建指定stroke和paint的边框。