public void paint(Graphics g)
{
Graphics2D g2D = (Graphics2D)g;
Stroke tstroke = new BasicStroke(Float.parseFloat("1.0f"));
g2D.setPaint(Color.magenta); // Set the element color
g2D.setStroke(tstroke);
}
{
Graphics2D g2D = (Graphics2D)g;
Stroke tstroke = new BasicStroke(Float.parseFloat("1.0f"));
g2D.setPaint(Color.magenta); // Set the element color
g2D.setStroke(tstroke);
}
解决方案 »
- 为什么StringBuffer的append方法比“+”高效?
- 我需要一个rational rose 工具
- java中vector的使用问题
- JS函数结构与Java的有什么区别??
- 關於serialVersionUID,,,有誰對這個東東有了解啊???
- 请高手给我讲讲finally的这种特殊用法,我没有查到。
- 一个关于file对象初始化的初级问题
- 开发java使用什么工具较好
- 请问高手,如何用java调用.cpp文件??
- java的引用是不是c语言的指针?
- 为什么我设置了环境变量还是不能得到正确的结果?
- Simple Question. SOS!!!!!!!!! 100 waiting online
3.0f, 3.0f, 0.0f};
Stroke tstroke = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER, 1.0f, dash1, 1.0f);