Printing AMCharts graphs on IE8 - java

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?

Related

Java Swing Arabic text reversed direction

I had a correctly working/displaying Java Swing app that manipulated text IO in Arabic. Suddenly today, I find every Arabic text word displayed in reverse direction on my MacBook Pro with a Java8u171. To verify it's not something wrong with my programs, I recreated the app on the Oracle Tutorial page and ran it on my laptop. To my surprise, I am getting the same reversed display! Namely, instead of getting this correct image shown below (extracted from the referenced tutorial page):
I am getting this one instead when I build the app as is and run on my laptop:
Could anybody shed light on what happened here please? Thank you.
If you're using a Windows based computer, you're probably fine according to the comments in the original post. For your Mac OS'ers, you need to step away from Java 8 entirely and into Java 11 (or newer going forward). Testing with that gives the desired look shown below. I tested this with my own apps on JTextPane and all those input text components, we're back in business :-)

Disable Mac character accents menu while my Java app is running

I am building a Java game in Swing, and I have an issue where keyPressed events stop registering after holding the A or S keys for too long on Mac (this is a big problem considering that the game uses WASD movement).
After digging around Stack Overflow, I found out that holding down keys like this suspends focus because it attempts to open the accented characters menu, even though the normal list of accented characters does not appear. When I disable the character accents menu on my Mac, everything works fine. However, I'd like to know if there is a Java-native way to work around this behavior (such as a wrapper for KeyListeners) since I don't want all Mac users to have to deal with this issue.
I had the same question, and the issue was the Java version.
I had JDK 1.8.0_151, but apparently this issue was fixed in some iteration up to JDK 1.8.0_172.
You could fix the issue by updating your JDK for your development and prevent this issue for your users by checking their java version using org.apache.commons.lang3.SystemUtils
e.g.
if(isJavaVersionAtLeast(JavaVersion.JAVA_1_9)) {
/* Insert message/pop-up to update and give link to Java download
* You can exit the program using System.exit(0) or send them to the
* download site or link using Desktop.getDesktop().browse(new URI(url))
* Where url is the URL of the site or link in the form of a String
}

Cannot get Java Applets to work in any browser

We are trying to download something from GE that uses Java to download when logging into the site. This is a windows 7 Professional PC. I have other computers that are able to do this successfully. Here is my order of operations:
Log into the site and select the file I want to download
Click download
It takes me to the page that says it will start in a few seconds but nothing happens. It is supposed to have a box that asks for Java to run.
I have reinstalled Java fresh and still nothing. Tried with multiple user accounts. Added the site to the list of exceptions in the firewalls and Java configuration. I have tried an earlier version of Java. This happens in Mozilla, Chrome and IE. I have made sure that the Java plugin shows up and is enabled. I just cant think of what I am missing. And since we are a contractor GE is not going to help us. Can anyone here think of anything?
Are you sure you have the Java plugin enabled? e.g. in Firefox, go to Settings, Plugins, and change Java Platform SE8 'Next Generation Java Plugin' to 'always activate'?
This sounds similar to the issues I had with Cisco WebVPN, Java-style. Once you have Java installed correctly and set as a plugin for any of the browsers you would like to use, see below.
Before you even start looking at browsers - if you think it is already set up correctly
Look at your Anti-Virus programs or anything else that could prevent it from working. McAfee Host Intrusion Protection is known to cause many Java programs to fail. Kapersky had issues, a while back, with Java on Windows (Java Applets not loading in Windows 8 ).
You must have a 64-bit browser to use 64-bit Java (also mentioned in the Chrome link below).
See below for any specific things that can be modified in the browser.
Chrome 43 is the more complicated browser to set up. They have a dedicated page with instructions.
How do I use Java with the Google Chrome browser?
Firefox 38 will prompt you.
In Internet Explorer 11, it's under Internet Options->Security. I recommend adding the hostname the applet is on as a Trusted Site (Select Trusted Sites and click the Sites button, then add the first part of the url). Click the Custom level button and make sure that Scripting of Java applets is not disabled.
If you still have problems with the applet:
Verify your Java version will work with the applet you are accessing
Verify the plugin is enabled for the browser through the Java Control Panel, which is available in Windows Control Panel, or on Mac/Linux, execute it from the JDK directory ($JAVA_HOME/ControlPanel ).
I ended up fixing the issue. I had to allow their UK site on the list for Java and enable the SSL 2.0 for HTTP in Java config as well

Java applet won't receive mouse focus on OSX

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.

My first applet won't load in browser

I've been learning java for a while. I recently decided it's time to leave the simple console applications and start making applets. Everything is great so far except the fact that I can't find a way to run any applet made in eclipse on either of my browsers.
I downloaded this example to make sure everything is alright and it still renders the very same result when loaded in the browser.
When I open the html file the only thing in the tab is the border of the applet and the line "Error: click for details" top left. After I click the Java Console comes up and all that it says under the block of key instructions is:
Detected from bootclasspath: C:\PROGRA~1\Java\jre7\lib\deploy.jar
I don't even know if this is any sort of error report or just a notification... after the console is cleared it won't come up again...
I tried with: IE 8 and Chromium 17 on winxp 32
Applets on webpages run fine.
Please help me! This makes me very sad. The fact that I don't know anything about JRE and whether it needs any further configuration after installation gives me hope that there might be a simple and trivial solution to my issue.
Not too sure what your issue is right now. That's not an error report, just saying that deploy.jar, from the JRE, is being used.
When you say the example "renders the very same result" what result is that?
Can you properly run the "this example" you posted?
Are you compiling the project properly into a jar?
Are those jars in the same directory?

Categories

Resources