-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.4.0
-
sparc
-
generic
Steps to reproduce:
1. Run the application pasted below.
2. Bring the mouse over the JButton colored green.
3. Wait for the tooltip to appear.
4. Now click the button on its portion not covered by the tooltip and leave the mouse pointer to stay on the button itself(this is important; if the mouse pointer is taken out of button area, the application does not freeze). The application freezes and the percentage CPU usage goes as high as 95%
This happenss on Solaris sparc and does not happen in Windows platforms.
% java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b56)
Java HotSpot(TM) Client VM (build 1.4-beta-B56, mixed mode)
Hardware & OS in which testing done:Ultra 10 & OS ver 5.7
Code to reproduce:
import java.awt.*;
import javax.swing.*;
public class poptest01 {
JButton button;
public poptest01() {
button = new JButton("Hello, World!");
button.setBackground(Color.green);
button.setToolTipText("it is a button!");
PopupFactory factory = PopupFactory.getSharedInstance();
Popup popup = factory.getPopup(null, button, 100, 200);
popup.show();
/*try {
Thread.sleep(2000);
}
catch (InterruptedException ie) {
ie.printStackTrace();
}*/
//popup.hide();
}
public static void main(String args[]) {
poptest01 s = new poptest01();
}
}
1. Run the application pasted below.
2. Bring the mouse over the JButton colored green.
3. Wait for the tooltip to appear.
4. Now click the button on its portion not covered by the tooltip and leave the mouse pointer to stay on the button itself(this is important; if the mouse pointer is taken out of button area, the application does not freeze). The application freezes and the percentage CPU usage goes as high as 95%
This happenss on Solaris sparc and does not happen in Windows platforms.
% java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b56)
Java HotSpot(TM) Client VM (build 1.4-beta-B56, mixed mode)
Hardware & OS in which testing done:Ultra 10 & OS ver 5.7
Code to reproduce:
import java.awt.*;
import javax.swing.*;
public class poptest01 {
JButton button;
public poptest01() {
button = new JButton("Hello, World!");
button.setBackground(Color.green);
button.setToolTipText("it is a button!");
PopupFactory factory = PopupFactory.getSharedInstance();
Popup popup = factory.getPopup(null, button, 100, 200);
popup.show();
/*try {
Thread.sleep(2000);
}
catch (InterruptedException ie) {
ie.printStackTrace();
}*/
//popup.hide();
}
public static void main(String args[]) {
poptest01 s = new poptest01();
}
}