1 Replies Last post: Aug 16, 2008 12:09 AM by Ken  
Ali Naddaf   5 posts since
Feb 5, 2008
Currently Being Moderated

Aug 11, 2008 10:10 AM

Browser covers the tooltips

 

Hello everone.

 

 

In my app, the embedded browser is covering the tolltips (it is in fron of the tooltips). It used to cover the menu drop downs as well but after following the suggestion in the FAQ:

 

 

static

    {

        JPopupMenu.setDefaultLightWeightPopupEnabled(false);

    }

 

 

 

 

the menu problem was fixed but the issue for the tooltips still exists. Any suggestion?

 

 

 

 

Many thanks,

 

 

Ali.

 

 

Ken   10 posts since
Aug 14, 2008
Currently Being Moderated
1. Aug 16, 2008 12:10 AM in response to: Ali Naddaf
Re: Browser covers the tooltips

Hi Ali,

 

You should be able to use the java.awt.Container.setComponentZOrder(browser, value) to move the embedded browser object forwards or backwards in the parent container in which it is embedded. Here's a little excerpt from the Javadoc on that:

 

 

Moves the specified component to the specified z-order index in the container. The z-order determines the order that components are painted; the component with the highest z-order paints first and the component with the lowest z-order paints last. Where components overlap, the component with the lower z-order paints over the component with the higher z-order.

 

 

It seems like the component with the tool tip has a higher z-order than your embedded browser. Try this and see what you get.

 

 

Ken

More Like This

  • Retrieving data ...