Xith And Swing Menu

Hi Ive embedded a xith Canvas3D into a swing panel and frame etc… I have a menubar on the frame, and the problem is that the Xith Canvas overdraws the menus when there expanded.

Ive tried placing a frame.repaint() in the render loop to see if it makes a difference, but it didn’t :expressionless:

Any ideas on how to cure this one??

Thanks

This is the one thats to do with HeavyWeight vs LightWeight components isn’t it? Theres a swing call somewhere around to force the use of HeavyWeight components that should fix it.

Kev

Yes, try these:
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);

Thanks all, will give the code a try :slight_smile:

this worked for me thx alot :slight_smile:

I think this should be in the FAQ of Xith3D.
Can I add this item, Will ?

but u don’t need both lines to do the tric for the jmenubar/jmenu and all
JPopupMenu.setDefaultLightWeightPopupEnabled(false); did it for me

You need the other one, when you have ToolTips

I know but his problem was just the expanding of the JMenuBar so thats solved with only that one line

Yes, but this avoid him creating a new forum thread :slight_smile: