[REPOST] java.awt.Image problem

From: MaSTeR (sorry_at_nospam.com)
Date: 11/29/04


Date: Mon, 29 Nov 2004 12:08:55 -0000

The problem is quite straighforward:
I am double buffering an image which represents an horizontal table, as you
might expect this could get really wide. If the table changes (row deleted
or added) I redraw the buffer otherwise I only draw the image that's in the
buffer.

I do my development in J# using visual studio 2003 because I like the IDE
and the debugger is just the best. Then (since I'm not using .Net api) I
just recompile my code with the SUN sdk. So far so good. The problem is that
the image is drawn perfectly using the microsoft VM but when I run it with
SUN's the image is created correctly (on row deletion, insertion) but when
just redrawing the buffer it gets screwed up.

Here's an example : http://217.158.134.37/MobileJava/ticker.jpg
At the top the right one.

Ah the 'thing' is sitting inside a class deriving from Java.awt.Panel and I
just use awt. It works fine if I use it inside an applet in a browser that
run microsoft VM 1.1. It goes funny anyway with sun VM ( 1.4.2 ).

Thanks for any help.



Relevant Pages

  • java.awt.Image
    ... The problem is quite straighforward: ... or added) I redraw the buffer otherwise I only draw the image that's in the ... just recompile my code with the SUN sdk. ...
    (comp.lang.java.gui)
  • java.awt.Image problem.
    ... The problem is quite straighforward: ... or added) I redraw the buffer otherwise I only draw the image that's in the ... just recompile my code with the SUN sdk. ...
    (comp.lang.java.help)
  • Re: Drawing 2d graphs using Direct3d
    ... >I be using Vertex's to draw the waveforms or is there a better method? ... I would use a circular buffer of vertices to draw this: ... In 3D you redraw the whole scene every time. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Animating one object moving in front of another
    ... So the solution you have identified doesn't seem to work, as the background is not a constant image - it needs a few pixels added each time to show the update tracks. ... I know it sounds like a lot of drawing effort, but in reality the time taken to redraw the tracks from scratch will be inconsequential. ... Copying the background buffer is overkill. ... There's not really anything called a "Graphics buffer" in .NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [REPOST] java.awt.Image problem
    ... MaSTeR wrote: ... > The problem is quite straighforward: ... > or added) I redraw the buffer otherwise I only draw the image that's in the ... Looks like you've got some kind of race condition between ...
    (comp.lang.java.programmer)