SWT browser stays on top of other components [WinOS]
Hello,
I have used SWT for my application (a simple browser.
I have noticed that under Windows, the browser stays on top of other components (in this case the comboboxes).
On MacOSX it does not happen.
Is there a way to fix this?
Here is a screenshot:
http://i41.tinypic.com/ou4m7k.jpgù
Re: SWT browser stays on top of other components [WinOS]
I have tried to work on the Shell or on the BrowserPanel itself, but still the issue seems to not be solved. And it is weird as before it was not happening.
Re: SWT browser stays on top of other components [WinOS]
Most likely a matter of how the OS paints SWT and Swing, and posting an SSCCE that reproduces the problem might help. Simple solution: move the drop down menus to the bottom.
Re: SWT browser stays on top of other components [WinOS]
I fixed it by simply (simply now, I used like an hour of my Saturday for this....) using:
mainPanel.setVisible(false);
mainPanel.setVisible(true);
Re: SWT browser stays on top of other components [WinOS]
Quote:
Originally Posted by
Nesh108
I fixed it by simply (simply now, I used like an hour of my Saturday for this....) using:
mainPanel.setVisible(false);
mainPanel.setVisible(true);
It's not actually the solution towards cross platform issues, and if mainPanel is the main JFrame of your application(Swing), making it's visible property false or true doesn't effect actually. Well, it's good that you are able to solve this but i must tell you that it's not what you should think as solution for this problem.
Re: SWT browser stays on top of other components [WinOS]
I simply noticed that whenever I was changing panel and then choosing to go back to the mainPanel the issue was not present anymore. So I simply did 1+1. I put that code into a method called 'refresh' and then I call it whenever I use something on the GUI.
Anyway sadly SWT appears to be quite buggy.