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.
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