Name: gm110360 Date: 06/12/2002
FULL PRODUCT VERSION :
java version "1.1.7B"
----
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 :
Windows 98 [Version 4.10.2222]
EXTRA RELEVANT SYSTEM CONFIGURATION :
1.4 Plugin is in Internet Explorer 5.50.4807.2300
A DESCRIPTION OF THE PROBLEM :
In the new 1.4 plugin in Internet Explorer, the applet GUI
is inapprorpriately NOT allowed to run. Instead, we see
an ugly status message (from the plugin?)
This breaks the attached applet and very likely will break
many types of applets (object movie, slideshow, etc) -- It
breaks over half of my applets. Not nice at all!
The attached demo will illustrate this. Run when connected
to the web page via a modem line (<56k).
LET APPLET PROGRAMMERS CONTROL THE APPLET GUI 100% -- do not
assume that you know why they are loading images, you don't!
I have no problem with a nice display when the applet is
loading classes before the init(), but once the init()
function returns, let the applet control the GUI!
REGRESSION. Last worked in version 1.1.3
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Place applet in a web page
2. create slide1.jpg through slide9.jpg images and place
next to the applet
3. View the applet over a modem line
EXPECTED VERSUS ACTUAL BEHAVIOR :
In Java 1.1, you see the slide show (the images: slide1.jpg
to slide9.jpg).
In Java 1.4, you see "Loading resource xxx" instead of the
slide show and never see a single image displayed, then the
slideshow ends.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.applet.*;
public class noani extends Applet implements Runnable {
private Image m_images[] = new Image[10];
private MediaTracker m_mt = new MediaTracker(this);
private int m_view;
public void init() {
setBackground( Color.yellow );
for (int loop=1; loop<m_images.length; ++loop) {
m_images[loop] = getImage(getDocumentBase(),"slide"+loop+".jpg");
m_mt.addImage(m_images[loop],loop);
}
new Thread(this).start();
}
public void paint( Graphics g ) {
int view = m_view;
if (view>0) {
g.drawImage( m_images[view], 0, 0, this );
g.setColor( Color.black );
g.drawString( "Viewing slide "+view, 2, size().height-5 );
}
}
public void run() {
for (int loop=1; loop<m_images.length; ++loop) {
try { m_mt.waitForID(loop); } catch (Exception e) {}
m_view = loop;
repaint();
}
m_view = 0;
repaint();
}
}
---------- END SOURCE ----------
(Review ID: 153440)
======================================================================
Name: gm110360 Date: 06/12/2002
FULL PRODUCT VERSION :
java version "1.1.7B"
----
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 :
Windows 98 [Version 4.10.2222]
EXTRA RELEVANT SYSTEM CONFIGURATION :
1.4 Plugin is in Internet Explorer 5.50.4807.2300
A DESCRIPTION OF THE PROBLEM :
Images in applets no longer display as they are loaded,
like they used to.
The attached applet demonstrates this.
REGRESSION. Last worked in version 1.1.3
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. place the applet onto a web page
2. create large test.gif (600x500) and place with the applet
3. view the web page (on a modem line!)
EXPECTED VERSUS ACTUAL BEHAVIOR :
In Java 1.1, the image displays as it loads. Now in 1.4,
the image does not. It only displays when the image is
finished loading.
1.1: you see the applet gui right away, then the image as
it loads
1.4: you see the applet gui right away, there is a long
pause, the the entire image appears.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.applet.*;
public class nodisplay extends Applet {
private Image m_image;
public void paint( Graphics g ) {
g.setColor( Color.red );
g.fillRect( 0, 0, 1000, 1000 );
if (m_image==null) {
m_image = getImage( getDocumentBase(), "test.gif" );
}
g.drawImage( m_image, 0, 0, this );
}
}
-----------------
<html>
<body>
<applet code=nodisplay.class width=600 height=500></applet>
</body>
</html>
---------- END SOURCE ----------
(Review ID: 148299)
======================================================================
- duplicates
-
JDK-4712154 Java 1.4 locks the applet GUI while loading images
-
- Closed
-