Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.9K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 111 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 161 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 475 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
OHJ4.1.16 Repainting Problems and 100%CPU on java 1.4

358672
Member Posts: 7
Hi
We are considering using OHJ4.1.16 as our application help, I have it working such that when the help is invoked either from the toolbar or the menu OHJ is displayed, but there are major repainting problems when the OHJ window is closed by clicking on the X button and then the help is invoked again from the toolbar or the menu item.
Please note that the first time it displays and paints fine only when the OHJ frame is closed and invoked again the problem occurs
The problems encountered are repainting(really whacky), 100% CPU utilization
Please have a look at the code below and tell me if i am not doing it right, Also is there anyway i can trap events on the OHJ frame so that i can dispose it everytime the window is closed by the user??
The following code is executed when the help is invoked
public void startHelp()
{
helpObject.showNavigatorWindow();
helpObject.setVisible(true);
}
public static void launchApplication()
{
String helpset1 = "/resources/help/Test.hs";
Vector booksVector = new Vector();
booksVector.add(helpset1);
if(m_instance == null)
m_instance = new ApplicationHelp(booksVector);
else
m_instance.startHelp();
}
we are using java 1.4, the above problem makes OHJ unusable!!
We are considering using OHJ4.1.16 as our application help, I have it working such that when the help is invoked either from the toolbar or the menu OHJ is displayed, but there are major repainting problems when the OHJ window is closed by clicking on the X button and then the help is invoked again from the toolbar or the menu item.
Please note that the first time it displays and paints fine only when the OHJ frame is closed and invoked again the problem occurs
The problems encountered are repainting(really whacky), 100% CPU utilization
Please have a look at the code below and tell me if i am not doing it right, Also is there anyway i can trap events on the OHJ frame so that i can dispose it everytime the window is closed by the user??
The following code is executed when the help is invoked
public void startHelp()
{
helpObject.showNavigatorWindow();
helpObject.setVisible(true);
}
public static void launchApplication()
{
String helpset1 = "/resources/help/Test.hs";
Vector booksVector = new Vector();
booksVector.add(helpset1);
if(m_instance == null)
m_instance = new ApplicationHelp(booksVector);
else
m_instance.startHelp();
}
we are using java 1.4, the above problem makes OHJ unusable!!
Comments
-
Hi, John. We're trying to reproduce your problem. If you run any of the OHJ 4.1.16 demos in the bin directory of the installation, do you run into the 100% CPU utilization problem? If so, how? The cshDemo.bat file creates a dummy application that has an OHJ deployment, so please test that one in particular.
Thanks,
Ryan -
Hi Ryan
I just put in a fresh build with no changes to the code and jar file and everything works just great, I am stumped, I am going to follow this very closely and let you know if the problem occurs again
Also could you let me know when a java 1.4 certified version will be released??
thanks
John -
John,
We intend to release the JDK 1.4 certified OHJ 4.2 in late November. Of course, we won't be able to fix whatever odd problem you encountered unless we can reproduce it, so please keep us posted about it.
Thanks,
Ryan
This discussion has been closed.