Mouse focus in java applet with some java versions - java

We have written an application to run oracle forms java applets years ago.
The application works fine on forms versions 11.1.1.7.
But now we have on some sites a forms 11.1.2.x installed.
If we run the application with IE, firefox or chrome we don't have any mouse focus problems and everything runs fine. Also if we use java web start.
But if we run the application with our own written application we have mouse focus problems with jre 7 and 8. If we run the same application with jre 6 we don't have any problems at all.
I can't post all the code because it is too much code.
Can someone explain how it is possible that if we run the applet with a browser or java webstart it works fine with jre 8 and if we run it with our application with jre 8 it has mouse focus problems. And if we run it with jre 6 we don't have the problems?
Update
We just found out that a go_item in the first form we start is causing this error. If we click on another item in the first form before continuing we don't lose the focus.
We have tried putting a synchronize after the go_item but this doesn't seem to resolve the issue.

Related

Running JavaFX 8 applications in Java 10 rendered in bigger windows and differently styled contents

For a while I've been developing JavaFX applications in Java 8 and I recently upgraded to Java 10 which still includes JavaFX. Attempting to run my previously created applications leads to uglier-looking applications. The window is much larger than what it should be and everything is bigger than normal. To demonstrate with one of my GitHub applications:
I am able to reproduce this by uninstalling (and installing Java 8) running the application and then reinstalling Java 10 and running the application. Were there changes to JavaFX in 10 that could cause this? Is there anyway to fix it or do I just recommend users to stay on Java 8?

Java Intranet Applet not working in Internet Explorer 11

for days now I'm having a lot of issues of IE 11 with Java.
History
On my father's computer there's an Intranet Java app that works only with IE, not any other browser.
Until couple of days ago it worked almost perfect. I tried updating Java and since then it doesn't work with IE 11.
No Solution
I tried a lot Googling and looked for other peoples similar problems, none of the solutions people offered has worked for me.
I tried un-installing and re-installing many times. At first the Java was completely blocked, now I have installed an older version (Java 7) which works when I go to java.com and do the Verify Java Version.
However when I open the app (which opens through IE 11) I get this 404 message.
Other Browsers
In FireFox it actually opens the screen IE should open using Java, however the rest of the program is not compatible with FireFox so I am forced to use Java. But it shows that the problem is definitely in the hook of Java with IE but I can't figure out what it is.

Internet Explorer 11 Java 1.7 Applet crash "Target jvm seems to have already exited"

I am developing an application that use an applet for signing documents.
Everything works fine, but if you try to sign two times in a row the applet fails and shows this error:
"Target jvm seems to have already exited"
The funny thing is that this problem only occurs in Internet Explorer 11 in Firefox is working properly. But the corporative browser is IE11, so there is no option to use another.
I'm using Java 1.7.0_51-b13 compilation.
Thanks in advance, greetings.
Edit
A curious thing is that sometimes this problem does not occur when I use an ajax modal dialog. From what I could see in the Java console is as if the virtual machine is rebooted in the moment I finish of using the modal dialog, and from that reset would work as expected, allowing signing the time it takes.

(Java 7) Swing application loses keyboard focus

My application is a GUI frontend for a database, and is built using Java's Swing library. The application is compiled using Java 5 (1.5).
When the application is ran using Java 7 I am able to write in textfields, comboboxes, etc. using the keyboard, until the data is loaded from the database then the cursor continues to blink but what I type is not typed on the screen. However, if I click on another windows e.g. my browser and then come back to my application, or minimize and maximize my application, the keyboard input works and behaves as normal.
When I run with Java 1.5 or 1.6, however this issue does not appear.Any insight on what might have changed in Java 1.7, and possibly a workaround?
PS: So far I made a workaround as follows:
frame.setFocusableWindowState(false);
frame.setFocusableWindowState(true);
However, I have this inside a timer, as I don't know where exactly the issue occurs. This is not really a proper solution...
Thanks

java application on Windows 8 start screen

I have been googling on this but I can't find the answer.
Can anyone tell me if you can put a Java application on the windows 8 start screen?
According to java.com
When will Java be supported in Windows 8? Windows 8 is officially
supported with the release of Java 7 Update 10. Java will only be
supported in Desktop screen. Java will not run in the Start screen.
I am not sure how to interpret this since I do not know the startscreen of Windows 8 and they talk about internet explorer 10 on the same page which makes me think they may only be talking about the browser.
Basically I want to have a tile to act like a classic windows icon. Is this the way it works and is this the way you can run a java application? Or do you need to go to the desktop interface first?
No. You can't.
All the apps on the Windows 8 start screen are the apps downloaded from the Windows Store.
All the other Java applications that you develop will run in the desktop environment, but not in the start screen.
As per this source, you can look forward towards creating apps for Windows Store using Java and then you can maybe think of putting a Java application on the Windows start screen.
You cannot put directly a Java application in the start screen in windows 8 (just as you couldn't create shortcut icons on the Desktop in Windows 7), however notice this is rarely what you want with a Windows desktop application.
Most of the times you will want to wrap your Java desktop application with a windows installer which will put the start screen icon on windows 8.
Your Java code will then be launched by the installer executable which might do some house cleaning jobs like checking what compatible version of Java is installed in the computer and if required install a newer one.

Categories

Resources