-
Bug
-
Resolution: Fixed
-
P1
-
1.1.7
-
b01
-
sparc
-
solaris_2.6
/usr/local/java/jdk1.1.7/solaris/bin/appletviewer is calling start twice,
and two applet windows are created. Test case included below.
-------------------------------------------------------------------------
File: MinimumSizeTest.java
import java.awt.*;
import java.applet.Applet;
public class MinimumSizeTest extends Applet {
public static void main(String[] args) {
new MinimumSizeTest().start();
}
public void start() {
System.out.println("Start called.");
new MinimumSizeTestFrame();
}
}
class MinimumSizeTestFrame extends Frame {
public MinimumSizeTestFrame() {
super("MinimumSizeTest");
setVisible(true);
setSize(0, 0);
}
}
------------------------------------------------------
File: MinimumSizeTest.html:
<HTML>
<!-- @test @(#)MinimumSizeTest.html 1.2 98/07/20
@bug 1256759
@summary Checks that Frames with a very small size don't cause Motif
to generate VendorShells which consume the entire desktop.
@run applet/manual=yesno MinimumSizeTest.html
@author dpm
-->
<HEAD>
<TITLE>MinimumSizeTest</TITLE>
</HEAD>
<BODY>
A very small Frame should be generated by this applet (almost the size of
a dot). If instead the entire screen is covered by a blue background (or
something similar), the test fails.
<APPLET CODE="MinimumSizeTest.class"
CODEBASE = "."
WIDTH=350 HEIGHT=100>
</APPLET>
</BODY>
</HTML>
---------------------------------------------------------
/usr/local/java/jdk1.1.7/solaris/bin/javac -g MinimumSizeTest.html
/usr/local/java/jdk1.1.7/solaris/bin/appletviewer MinimumSizeTest.html
Start called.
Start called.
This is not a problem in JDK1.2,
/usr/local/java/jdk1.2/solaris/bin/appletviewer
mike.bronson@eng 1998-08-19
and two applet windows are created. Test case included below.
-------------------------------------------------------------------------
File: MinimumSizeTest.java
import java.awt.*;
import java.applet.Applet;
public class MinimumSizeTest extends Applet {
public static void main(String[] args) {
new MinimumSizeTest().start();
}
public void start() {
System.out.println("Start called.");
new MinimumSizeTestFrame();
}
}
class MinimumSizeTestFrame extends Frame {
public MinimumSizeTestFrame() {
super("MinimumSizeTest");
setVisible(true);
setSize(0, 0);
}
}
------------------------------------------------------
File: MinimumSizeTest.html:
<HTML>
<!-- @test @(#)MinimumSizeTest.html 1.2 98/07/20
@bug 1256759
@summary Checks that Frames with a very small size don't cause Motif
to generate VendorShells which consume the entire desktop.
@run applet/manual=yesno MinimumSizeTest.html
@author dpm
-->
<HEAD>
<TITLE>MinimumSizeTest</TITLE>
</HEAD>
<BODY>
A very small Frame should be generated by this applet (almost the size of
a dot). If instead the entire screen is covered by a blue background (or
something similar), the test fails.
<APPLET CODE="MinimumSizeTest.class"
CODEBASE = "."
WIDTH=350 HEIGHT=100>
</APPLET>
</BODY>
</HTML>
---------------------------------------------------------
/usr/local/java/jdk1.1.7/solaris/bin/javac -g MinimumSizeTest.html
/usr/local/java/jdk1.1.7/solaris/bin/appletviewer MinimumSizeTest.html
Start called.
Start called.
This is not a problem in JDK1.2,
/usr/local/java/jdk1.2/solaris/bin/appletviewer
mike.bronson@eng 1998-08-19