2. Click the "Open Popup" button.
3. Click in the JTextfield of the popup to gain focus.
4. Drag the JFrame containing the "Open Popup" button down over the popup.
You may have to try this 2 or 3 times for the VM to crash.
I tried to keep this example as simple as possible.
- Code: Select all
@SuppressWarnings("serial")
public class JidePopupDemo extends JFrame {
public JidePopupDemo() {
super("JidePopupDemo");
setDefaultCloseOperation(EXIT_ON_CLOSE);
Action openPopup = new AbstractAction("Open Popup") {
/* (non-Javadoc)
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
@Override
public void actionPerformed(ActionEvent e) {
JidePopup popup = new JidePopup();
popup.getContentPane().add(new JTextField("Click here.", 35));
popup.setFocusable(true);
popup.showPopup(JidePopupDemo.this);
}
};
add(new JButton(openPopup));
pack();
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new JidePopupDemo().setVisible(true);
}
});
}
}
My guess is that something down in JidePopup.ancestorMoved() is wreaking havoc, but I haven't dug deep yet.
Here is the exception and I've attached the dump.
- Code: Select all
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x010c0136, pid=6252, tid=4152
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C 0x010c0136
#
# An error report file with more information is saved as:
# C:\sandbox\JideSandbox\hs_err_pid6252.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#