Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using library (GGraphics) causes flicker in GUI

1 view
Skip to first unread message

Felix Natter

unread,
Dec 18, 2009, 10:19:35 AM12/18/09
to
hallo,

I'd like to use the GGraphics library:
http://geosoft.no/graphics/
in my Swing project.

However, when I open a GWindow (from GGraphics, does *NOT* derive from a
Swing Class), sometimes (not always reproducible) all other Widgets
(especially JTables) start flickering when the mouse is above
those widgets.

It seems like the GWindow causes invalidations of other regions (even in
other windows and even after the GGraphics window is closed!), so that
those widgets need to be repainted.

Do you have any idea what might cause this?

I attached a small example which needs G.jar and nicenumbers.jar:
http://geosoft.no/graphics/G.jar
http://geosoft.no/software/nicenumbers/nicenumbers.jar
It consists of two buttons. One of those ("Hist") opens the GWindow and
sometimes introduces flicker in all other guis, including the JTable that
can be opened with the other button.

As an alternative: Can you suggest another package which does drawing
graphs and zooming in/out ("canvas widget")?

Thanks in Advance!
--
Felix Natter

HistogramTest.java

John B. Matthews

unread,
Dec 18, 2009, 11:23:54 AM12/18/09
to
In article <877hskg...@etchy.mobile.lcn>,
Felix Natter <felix....@smail.inf.fh-brs.de> wrote:

> As an alternative: Can you suggest another package which does drawing
> graphs and zooming in/out ("canvas widget")?

I like JFreeChart: <http://www.jfree.org/>. Right click on the chart to
see the context menu, which includes zoom, print, etc. Here's an example:

<http://sites.google.com/site/drjohnbmatthews/jfreechartdemo>

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Felix Natter

unread,
Dec 19, 2009, 5:58:57 AM12/19/09
to
"John B. Matthews" <nos...@nospam.invalid> writes:

> In article <877hskg...@etchy.mobile.lcn>,
> Felix Natter <felix....@smail.inf.fh-brs.de> wrote:
>
>> As an alternative: Can you suggest another package which does drawing
>> graphs and zooming in/out ("canvas widget")?
>
> I like JFreeChart: <http://www.jfree.org/>. Right click on the chart to
> see the context menu, which includes zoom, print, etc. Here's an example:
>
> <http://sites.google.com/site/drjohnbmatthews/jfreechartdemo>

Ok, thanks John!

We'll try this :-)

--
Felix Natter

0 new messages