C
coder1024
I've written a Java app which uses Swing to display images and text.
The app consists of a JFrame which contains a JPanel-derived class. In
the paint() method of the JPanel-derived class, I call
Graphics.drawImage() to render an image file previously loaded with
ImageIO.read().
This was working fine until I enabled antialiasing in my video card
settings (GeForce FX 5200 w/128MB RAM, Windows XP SP2). With
antialiasing, none of the content gets rendered in the window. The
problem exhibits itself when I'm tring to render the image myself and
when I just have a JProgressBar control displayed in the window (i.e.
the Swing components themselves aren't correctly rendering with
antialiasing turned on either).
I've received feedback from multiple users seeing this issue as well,
so its not just my machine.
Any ideas? Disabling antialiasing fixes the problem, but I'd like to
be able to get my app to work regardless of whether antialiasing is
enabled/disabled.
The app consists of a JFrame which contains a JPanel-derived class. In
the paint() method of the JPanel-derived class, I call
Graphics.drawImage() to render an image file previously loaded with
ImageIO.read().
This was working fine until I enabled antialiasing in my video card
settings (GeForce FX 5200 w/128MB RAM, Windows XP SP2). With
antialiasing, none of the content gets rendered in the window. The
problem exhibits itself when I'm tring to render the image myself and
when I just have a JProgressBar control displayed in the window (i.e.
the Swing components themselves aren't correctly rendering with
antialiasing turned on either).
I've received feedback from multiple users seeing this issue as well,
so its not just my machine.
Any ideas? Disabling antialiasing fixes the problem, but I'd like to
be able to get my app to work regardless of whether antialiasing is
enabled/disabled.