Skip to main content

The Swing's Gray Rect fix

5 replies [Last post]
trembovetski
Offline
Joined: 2003-12-31

A fix for a very important and old swing bug has been integrated in the latest mustang snapshot (b32). The dreaded gray rect is now gone!

For more information, check out Scott Violet's blog on this:

http://forums.java.net/jive/thread.jspa?threadID=603&tstart=0

Dmitri
Java2D Team

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
drichan
Offline
Joined: 2003-06-10

THIS IS AWESOME GUYS/GALS. WAY TO GO !!!!!

Very Nicely done. I tested this on Windows 2K with SwingSet and I also set:

java.awt.Toolkit.getDefaultToolkit().setDynamicLayout(true);

So now it appears that dynamically repainting of windows when they resize performs much better also. Is there any chance in making the .setDynamicLayout(true); now that the appearance of repainting of Windows is so much Better.

Thanks

Deane Richan
Xito Project

keithcsl
Offline
Joined: 2004-12-01

Hi

Is it possible to set the gray background to black in Mustang?

Regards
Keith

5er_levart
Offline
Joined: 2003-10-28

I hear this is not enabled for Linux yet. Is there a system property that enebles it for Linux or do we have to wait until next snapshot?

cowwoc
Offline
Joined: 2003-08-24

I just tested it under Netbeans 4.1 -- works very nicely!

The downside, if you could call it that, is that now painting bugs are less obvious. For example, I remember a well known painting bug pre-Mustang (I think it was recently fixed) that causes Java to repaint a region bigger than necessary.

Anyway, good job guys! :) This fix is well appreciated!

trembovetski
Offline
Joined: 2003-12-31

OK, looks like I pasted the wrong link.
Here's the correct link to the blog:
http://weblogs.java.net/blog/zixle/

Dmitri