Name: jk109818 Date: 04/29/2003
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
Service Pack 3
ADDITIONAL OPERATING SYSTEMS :
not tested
EXTRA RELEVANT SYSTEM CONFIGURATION :
IE 6.0.2800.1106 SP1
using Plug-in Java(TM): Version 1.4.0
A DESCRIPTION OF THE PROBLEM :
When two navigator windows are opened and show the same
applet if a modal dialog is opened in one applet the second
one is locked
The same locking occurs if the second applet is loaded
while the first has already a modal dialog opened
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see description
EXPECTED VERSUS ACTUAL BEHAVIOR :
locking should not occur
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Component;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JDialog;
public class TestFrame extends JApplet
{
JDialog dlog;
public Frame getFrame()
{
Frame browserFrame;
Component comp = this;
while (comp != null && !(comp instanceof Frame))
comp = comp.getParent();
return browserFrame = (Frame) comp;
}
public TestFrame()
{
JButton b = new JButton("test");
getContentPane().add(b);
b.addActionListener(new ActionListener()
{
/**
* @see java.awt.event.ActionListener#actionPerformed
(ActionEvent)
*/
public void actionPerformed(ActionEvent e)
{
dlog = new JDialog(getFrame());
dlog.setTitle("Modal child of frame 1");
dlog.setSize(new Dimension(200, 100));
dlog.setLocation(150, 50);
dlog.setModal(true);
dlog.show();
}
});
}
}
---------- END SOURCE ----------
(Review ID: 180483)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
Service Pack 3
ADDITIONAL OPERATING SYSTEMS :
not tested
EXTRA RELEVANT SYSTEM CONFIGURATION :
IE 6.0.2800.1106 SP1
using Plug-in Java(TM): Version 1.4.0
A DESCRIPTION OF THE PROBLEM :
When two navigator windows are opened and show the same
applet if a modal dialog is opened in one applet the second
one is locked
The same locking occurs if the second applet is loaded
while the first has already a modal dialog opened
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see description
EXPECTED VERSUS ACTUAL BEHAVIOR :
locking should not occur
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Component;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JDialog;
public class TestFrame extends JApplet
{
JDialog dlog;
public Frame getFrame()
{
Frame browserFrame;
Component comp = this;
while (comp != null && !(comp instanceof Frame))
comp = comp.getParent();
return browserFrame = (Frame) comp;
}
public TestFrame()
{
JButton b = new JButton("test");
getContentPane().add(b);
b.addActionListener(new ActionListener()
{
/**
* @see java.awt.event.ActionListener#actionPerformed
(ActionEvent)
*/
public void actionPerformed(ActionEvent e)
{
dlog = new JDialog(getFrame());
dlog.setTitle("Modal child of frame 1");
dlog.setSize(new Dimension(200, 100));
dlog.setLocation(150, 50);
dlog.setModal(true);
dlog.show();
}
});
}
}
---------- END SOURCE ----------
(Review ID: 180483)
======================================================================
- duplicates
-
JDK-6360418 Java Console opened makes Firefox 1.5 freezed
-
- Closed
-