-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
beta
-
x86
-
windows_98
Name: krT82822 Date: 03/05/2000
5 Mar 2000, eval1127@eng -- in 1.2.2, the "tick marks" along the "clock face" are all rectangular. In kestrel-rc1, several of them are triangular or skewed.
(see also 4253189)
Looked for a dupe of this, but nothing (that is still open) seems to match.
[bug is reproducible in appletviewer]
----------------------------
orig synopsis: "Arc2D drawing bug in 1.3rc1 plugin"
1.3rc1 plugin in IE4.0
The source code for this is below; for more details, see the
files in http://www.premier1.net/~toma/jdcbugs/ArcStrokeBug/
Tom
###@###.###
package jdcbugs;
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
// applet to demo the arc bug
public class ArcStrokeBugApplet
extends JApplet {
public ArcStrokeBugApplet() {
}
public void init() {
ArcBugComponent bugc = new ArcBugComponent();
bugc.setBackground(Color.white);
bugc.setOpaque(true);
getContentPane().setLayout(new BorderLayout());
getContentPane().add(bugc, BorderLayout.CENTER);
String sysProps [] = { "java.version", "java.class.version",
"os.name", "os.version" };
for (int i = 0 ; i < sysProps.length ; ++i) {
System.out.println(sysProps[i] + ": "
+ System.getProperty(sysProps[i]));
}
}
}
class ArcBugComponent extends JComponent
{
ArcBugComponent() {}
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
Dimension d = new Dimension(getSize());
int strokeWidth = 16;
d.width -= strokeWidth;
d.height -= strokeWidth;
g2.setStroke(new BasicStroke(strokeWidth,
BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
for (int th = 0 ; th < 360 ; th += 10) {
Arc2D arc = new Arc2D.Float(
strokeWidth/2, strokeWidth/2,
d.width, d.height,
th, 2.0F,
Arc2D.OPEN);
g2.setPaint(Color.red);
g2.draw(arc);
}
}
}
(Review ID: 101963)
======================================================================