Results 1 to 8 of 8
- 03-16-2011, 07:28 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Does latest JDK fully support mixing of heavy and light components
Hi there,
Older JDKs have problems to support mixing heavy and light components.
I learned from below article that newer JDKs(since JDK 6 update 12 and JDK7 build 19 releases) can seamlessly mixing heavyweight and lightweight components,
Mixing heavy and light components
If the answer to my question is yes, can someone helps to provide some programming tips? I have problems to mix heavy and light components(Canvas and swing components) here.
Thanks,
Lin
- 03-16-2011, 08:00 PM #2I have problems to mix heavy and light components(Canvas and swing components)
db
- 03-16-2011, 11:15 PM #3
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 11
My bet is that the problems associated with mixing heavy and lightweight components will never be fully worked out. You should give strong consideration to reworking your project to be 100% lightweight.
- 03-17-2011, 02:23 AM #4
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Thanks for your quick replies!
Since currently we have no better solution than using GLCanvas(extends Canvas)/JOGL to resolve image tearing issue, we have to consider mix heavy and light components.
Do you have any other approaches to avoid tearing?
- 03-17-2011, 05:55 AM #5
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 11
If you can't go 100% lightweight, then I recommend the following approach:
For pull-down's and pop-ups that could intersect a heavy weight component, use heavy weights. For everything else, lightweight components should work fine. This requires care in laying out the gui to avoid turning everything heavyweight.
- 03-17-2011, 09:48 AM #6
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Sorry, I don't quite understand your points. Could you please explain in detail? I am very interested in that.
- 03-17-2011, 03:49 PM #7
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 11
Suppose you have a pull down menu that's a lightweight swing JMenu. If that can possibly overlap a heavyweight component, then what'll happen is you'll end up with a partially drawn menu with your heavy weight component drawn over part of it.
You either need to use a heavyweight menu in that case, or arrange the GUI such that pull down menu's won't ever try to paint over an area occupied by a heavy weight component.
- 03-18-2011, 06:28 AM #8
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Heavy and light components help.
By FatWhale in forum AWT / SwingReplies: 0Last Post: 03-09-2011, 12:28 AM -
Fully qualified file name is given as input. Look to see it exists or not
By renu in forum New To JavaReplies: 14Last Post: 09-21-2010, 05:10 PM -
AWT/Swing Mixing Still and issue on MAC OSX?
By Confused in forum AWT / SwingReplies: 2Last Post: 02-21-2010, 09:34 PM -
Reading heavy data on a particular port
By newbie14 in forum NetworkingReplies: 2Last Post: 02-10-2010, 06:40 AM -
Heavy and light component mixing
By Bojevnik in forum AWT / SwingReplies: 2Last Post: 08-13-2007, 12:23 PM
Bookmarks