我想给jpanel添加一个圆角的边框,请问如何绘制?多谢。
解决方案 »
- 正则表达式笔试题
- OSGI开发图形界面程序
- 到海辉应聘过的人进来下,还有一道题!
- java--this指针在哪里存着呢?
- \u81ea\u52a8\u56de\u590d 这类文字怎么通过java程序转换过来?
- 为什么 8362.97*100.00=836296.9999999999 ?
- Can recommend a better java compression library?
- 找工作的困惑
- 请教用过textpad的大哥们!(当然关心小弟的都可进!!)
- 网站的站内搜索是怎么实现的?怎么做?在网页的头元素中有一关键词元素,是不是就是给站内搜索用的?如果我在Sina中登记我的网站,那么是不是
- 能讲一下struct
- 【约瑟夫环的问题】
你可以计算一下
用drawLine和drawRect方法 找出八个点 连接起来就OK拉
LineBorder(Color color, int thickness, boolean roundedCorners) int offs = this.thickness;
int size = offs + offs;
if (this.roundedCorners) {
int arc = offs + size;
outer = new RoundRectangle2D.Float(x, y, width, height, arc, arc);
inner = new RoundRectangle2D.Float(x + offs, y + offs, width - size, height - size, arc, arc);
}