Here's a version that uses an offscreen image, like J.
http://olegykj.sourceforge.net/java/RectPos2.html
otherwise the same as previous direct drawing version
http://olegykj.sourceforge.net/java/RectPos.html
On Mac OS X 10.4.7 Java 1.5 and 1.4.2 shows good rectangles like
> *
> *
> *
> ** *
> *****
> * *
> * *
> * *
> *****
Both Image and BufferedImage was tried.
--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> It looks like something is happening inside J on Tiger.
>
> The RectPos Java applet shows correct rectangle
> in all environments: applet, console Java 5 and Java 1.4.2.
> (top dot visible, bottom covered) equivalent of
> *
> *
> *
> ** *
> *****
> * *
> * *
> * *
> *****
>
> However, on the same Mac OS X 10.4.7 machine,
> J program shows raised (shifted up 1 pixel) rectangle
> (top dots covered, bottom visible).
> *
> *
> *
> ******
> * *
> * *
> * *
> *****
> *
>
>
> --- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
>
> > Here is pure Java version (except rect size is
> > 1px smaller, as J does).
> >
> > http://olegykj.sourceforge.net/java/RectPos.html
> >
> > On Windows and Mac 10.3.9 Java 1.4.2 it both shows
> > good result: top dot visible, bottom covered.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm