Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java application drawing strangely

Tags:

java

windows-7

I have a legacy Java application that uses Java 1.3

It works fine on windows Xp but now I need to make it run on windows 7.

I have installed the 1.3 jdk however when it first loads, the app won't render properly. Bits of the screen just show grey background, selecting buttons won't load a new screen etc.

I do know watching the output from the app it just purely graphics not rendering properly.

However if I press "Ctrl-alt-delete" and then just press "cancel" the software runs perfectly. If I have a second monitor plugged in, it runs perfectly.

Has anyone got any suggestions how to make app run perfectly first time.

Thanks

like image 363
Display Name Avatar asked Sep 03 '15 12:09

Display Name


1 Answers

Firstly, update your java, no excuses not to.

You can try the hack of resizing your component to a different size and then back again. I find this is the best way to make sure that swing doesn't do this sort of mischief with black squares here and there.

These things happen from time to time with non native tools for desktop development as opposed to those specifically designed for the targeted platform.

like image 91
Derrops Avatar answered Oct 20 '22 22:10

Derrops