I develop RiboVision, http://apollo.chemistry.gatech.edu/RiboVision/
Some within the last few months, my site developed a problem on macs. I use the Jmol Java applet. It is not receiving mouse focus anymore, but only on Macs, and in all browsers, Safari, Chrome, and Firefox. It has to be related to some update Apple did to Java.
A really odd thing is that FirstGlance, does work on a Mac. It's basically the same Java Applet embedded in their page. http://bioinformatics.org/firstglance/fgij/fg.htm?mol=1d66&JAVA
I have no idea what I'm doing differently.
EDIT.
On a PC using Chrome, the applet works initially, but does not work after switching tabs. On a PC using firefox, it works correctly. On the mac, again, on all browsers, it doesn't work even the first time.
I don't know how to debug something so complex and elusive. No errors show in the console.
I solved this. Turns out, it was an issue with the z-index. I had the z-index of the Java applet set to -9000. This had no negative consequences before. I don't know when Apple changed something, but now it listens to the Z-index. I set the Z-index to something more appropriate and it's back to normal.
Related
I'm having a problem printing line graphs from AMCharts.
On my page, the chart is right, but when I try to print it, some spaces are blank.
For example, this image shows how I see the image on my page:
When I try to print it (CTRL + P), some spaces are blank. Look this image:
The problem happens only with IE8 or lower.
In IE9 and IE10 this problem happens when I put in compatibility mode.
In other browsers it works OK.
I need it working in IE8. We have some terminal servers running Windows Server 2003 and can not update the version of IE.
Using another browser is not possible either, because we need multisession and only IE provides this option. We plan to upgrade our servers to a new version of Windows, but it will require some time, and I'm looking for a quick fix.
From what I researched, the amCharts builds the graphics using SVG.
However, in IE8 (or IE9~IE10 using compatibility mode) it uses VML.
Is there any way to make it work with IE8?
Or convert the VML code generated to an Image using Java (language used in the system)?
I researched but dont find anything that can help me.
Is there anything I can do to make it work properly in IE8?
I made an applet using Swing. This is working fine in all Windows browsers. But when we run same applet on Mac. machine in Safari browser, it shows problems with labels, buttons and combo boxes. What should I do to fix this?
Emm... if the look and feel is set to "UIManager.getCrossPlatformLookAndFeelClassName()" the Mac is totally changes the usual look and feel and, of course, (in absolute components location) all components shapes and sizes get wrong... so the thing I can suggest in your case is...
This is working fine in all Windows browsers.
so set look and feel manually to the IE (Windows) one as
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
code integration examples you can find here look and feel
Good luck
I think I am having a weird problem:
I 've written a small application in java implementing a JTable to display some results.
I am also using the Substance L&F as my "skin".
Everything seems to be working perfectly.
When I upload the app on my server as webstart, strange things start to happen:
At some point my app generates a little JTable. Every time I mouse over that table,
the app's JButtons or menus or any swing control in general will stop responding. My only option is to close the window and restart the application. Note that the interface seems not to be frozen but like it's lost its focus... if I try to click in any of the table's cells, the UI will still be responsive (not on the swing controls though).
If I get rid of Substance, the problem goes off and everything is working normally again.
If I use another "skin" like JTattoo everything works flawlessly as well.
This only happens when I use the webstart. Does anybody know why..?
or better has any hints on how to fix it?
In an applet when opened in Internet Explorer, the focus should come back automatically to the applet instead of going to IE when any window comes over IE and goes back (Internet Explorer again becomes the active window).
To get the focus RequestFocus() and RequestFocusInWindow() are not working for an applet in my case.
Can anyone explain how this can be done?
I can only suppose here. Java can't influence on the environment out of the it's, I don't know exactly how to name it, control area -> you can't influence on IE from an applet.
We're running Java Swing and are using an SWT bridge to get ahold of the SWT browser. Everything normally works just fine, but we have a problem on a Vista test machine. It worked fine until just a week ago or so. The call stack:
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.browser.IE.create(IE.java:184)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
...
I have tried IE7 and IE8 through the SWT browser, but none is working (XULRunner is not applicable on our application since we need two browser instances).
XP, Windows7 and Vista is working on other machines, and I can't exclude something being correpted on this specific machine. We got some Windows updates close to when this error started happening, they seem related. It is a our only Vista test machine with a virtual screen, has there been any Windows updates for IE relating to virtual screens that could cause this? To me it looks like a likely target for security holes, so maybe that could be it?
I know this is looking for a needle in a haystack, but has anybody seen anything similar lately?
Edit: looking at the source, I see that the IE.create method swallows an exception to throw this error - I'd step into the WebSite constructor to try and figure out what's happening.
My solution is not to embed the SWTBrowser into our Swing application at all. (I've always hated web tech on desktop apps anyway. :)