Closed
Bug 98333
Opened 24 years ago
Closed 24 years ago
open file dialog in java freezes mozilla UI
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jeremy.m, Assigned: edburns)
Details
Attachments
(1 file)
|
1.95 KB,
application/octet-stream
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
BuildID: 2001090408
Opening a file dialog from A Java Applet will freeze the user interface for
mozilla browser window. Only way of killing browser is with cntrl-alt-del.
Code for Applet that demonstrates the problem:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.io.*;
public class MozillaTest extends Applet implements ActionListener
{
Button openFileBut, beepBut;
Label output;
Frame f;
/**Construct the applet*/
public MozillaTest()
{
}
/**Initialize the applet*/
public void init()
{
f = new Frame();
openFileBut = new Button( "Open File");
openFileBut.addActionListener(this);
beepBut = new Button( "I Beep Therefore I am");
beepBut.addActionListener(this);
add( openFileBut );
add( beepBut );
}
public void actionPerformed(ActionEvent e)
{
String cmd = e.getActionCommand();
if( cmd == "I Beep Therefore I am" )
Toolkit.getDefaultToolkit().beep();
else if( cmd == "Open File" )
doOpenFile();
}
private void p( String s )
{
System.out.println(s);
}
private void doOpenFile()
{
try
{
FileDialog fd = new FileDialog( f );
fd.setModal(true);
fd.setVisible(true);
}
catch( Exception e )
{
p( "Couldn't Open file because of: " + e );
}
}
}
Reproducible: Always
Steps to Reproduce:
1.Open Applet In Browser.
2.Click Open File button.
3.Click Cancel in file Dialog
4.Observe Locked up Mozilla
Actual Results: Mozilla UI frozen.
Comment 1•24 years ago
|
||
->oji?
Assignee: pchen → edburns
Component: XP Apps → OJI
QA Contact: sairuh → pmac
Humm...it works fine on windows 2000 (commercial trunk: 2001-09-05-10-trunk)
that I follow the 'steps to reproduce'.
Checked again with build 2001090703 under win2K, behaviour persists.
I can't reproduce this on WinNT.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 7•24 years ago
|
||
My results.
On Win2000 5.00.2195:
Mozilla 0.9.3 with JDK 1.3.1 and 1.4; Build 2001091303 with JDK 1.3.1 and 1.4;
Applet works and mozilla doesn't freeze.
But I can't type anything in the address bar after pressing 'Cancel' button.
I need to switch to another window and back to mozilla in order to type again.
You need to log in
before you can comment on or make changes to this bug.
Description
•