Applet run differently under w7 and Linux
I try to update an old applet which is online since 8 months because with new JRE 7 its behaviour is instable.
As you can see on a W7 PC with jre7.0_07, the two uppers JTextArea are duplicate.
http://uppix.net/9/4/a/645bb030ee34a...34c965cb9t.jpg
But not on a linux PC with the same version of JRE
http://uppix.net/0/0/8/99c8fa67002af...201e8a5a1t.jpg
I have tried on another pc with W7 but with JRE6.0_35 and the display bug doesn't appear.
All my background are transparent ( Color(0,0,0,0) ), but if I set them to lightGray (or another color), the display is correct.
Somebody have an idea to force display to be good ???
Thanks in advance.
NB: the applet could be launched HERE.
Re: Applet run differently under w7 and Linux
To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem.
db
Re: Applet run differently under w7 and Linux
Yes I wish, but I don't know where to begin...
If I can locate the code portion where the problem is, it's sure that's will be better to debug....
And I not sure to be able to "demonstrate" the problem, I'm not Einstein :D:
All I can says is what I see and all I can hope is that somebody here have seen the same behaviour and had correct it.
Re: Applet run differently under w7 and Linux
The new think I discover it's when I drop down in the task bar my browser with the display bug and then I re-open it the display is good and the bug has disappered.
Re: Applet run differently under w7 and Linux
The same thing if in your browser you have more than one tab, if you swtich to another tab and come back to the applet tab, the bug have disappeared....
Re: Applet run differently under w7 and Linux
-- Applet or JApplet? If this is old (very old!) AWT code, I totally recommend porting it to Swing.
-- Take care to ensure that there is no violation of Swing's single threaded rule (search the net if you don't know about it).
db
Re: Applet run differently under w7 and Linux
It's JApplet.
Code:
package chrono4;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.JApplet;
import javax.swing.SwingUtilities;
public class C4_Applet extends JApplet {
I don't know about single thread violation, I will look for...
Thanks
Re: Applet run differently under w7 and Linux
After reading a lot of pages, I know more about EDT, realizable, invokeLater and so on...
But I don't see where in my code I can produce a thread violation, all the operations are very sequencial and only the three buttons produce events.
An other new about testing, the bug apears only on PC with NVIDIA graphic card....
I had called some of my friend to lauch the applet on her PC and say me if the bug is present, all of them with NVIDIA card (and latest driver) say YES.
Re: Applet run differently under w7 and Linux
Ensure that the video drivers are updated to the latest available versions.
db