Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243460 - dev-java/sun-jdk-1.6.0.07 nsplugin does not call paint-method in java applet in all cases
Summary: dev-java/sun-jdk-1.6.0.07 nsplugin does not call paint-method in java applet ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 19:19 UTC by Albert Zeyer
Modified: 2011-01-19 03:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
java code of the M03_01_04 applet (Applet.java,10.31 KB, text/plain)
2008-10-23 19:23 UTC, Albert Zeyer
Details
screenshot when paint-fct was not called (paint-fct not called.png,39.49 KB, image/png)
2008-10-23 19:30 UTC, Albert Zeyer
Details
applet viewer with M03_01_04 (applet viewer M03_01_04.png,10.62 KB, image/png)
2008-10-23 20:13 UTC, Albert Zeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-10-23 19:19:50 UTC
The paint-method should always be called when the graphic content has to be redrawn.

If you have a longer HTML-page where you can scroll down/up and you scroll away from the applet and the back to it, it does not call the paint-method and therefore some temporary graphical content disappears.
Comment 1 Albert Zeyer 2008-10-23 19:22:43 UTC
You can see the effect on this page:
http://www.matha.rwth-aachen.de/~zeyer/ilias/jars/Mengen/Mengen.html

There look at the applet M03_01_04. It should draw three circles in different colors around the checkboxes.

I just recognised that also by changing the tabs, it does not call the paint-function again.
Comment 2 Albert Zeyer 2008-10-23 19:23:22 UTC
Created attachment 169618 [details]
java code of the M03_01_04 applet
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-10-23 19:25:36 UTC
Is this also an issue with 1.6.0.10 and the new plugin? If it is please file the issue to http://bugs.sun.com and post an url to the url back here.
Comment 4 Albert Zeyer 2008-10-23 19:30:13 UTC
Created attachment 169620 [details]
screenshot when paint-fct was not called
Comment 5 Albert Zeyer 2008-10-23 19:56:29 UTC
Yes, I have the same behaviour in sun-jdk-1.6.0.10.

I am beginning to wonder though if perhaps something is just wrong in my code. Shouldn't it call the paint-function always when a repaint is needed?
Comment 6 Albert Zeyer 2008-10-23 20:13:07 UTC
Created attachment 169632 [details]
applet viewer with M03_01_04

The strange thing: Even in the applet viewer, when I drag another window over it or when I open the "Applet"-menu of the applet viewer, it does not redraw the applet.

When I though resize the applet viewer, it does the redraw (most of the times, also not always).
Comment 7 Albert Zeyer 2008-10-31 10:41:19 UTC
The upstream bug report will be available soon here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6766052
Comment 8 Miroslav Šulc gentoo-dev 2011-01-19 03:46:31 UTC
this version is not in tree anymore. please reopen if the problem still persists with versions that are in tree.