Execute the following program:
// java.*
import java.awt.Frame;
import java.awt.Window;
import java.awt.image.ImageObserver;
/**
* Class declaration
*
*
* @author
* @version %I%, %G%
*/
public class Test extends Window implements ImageObserver
{
private static final int HEIGHT = 251;
private static final int WIDTH = 382;
/**
* Constructor
* @param parent the parent frame
*/
public Test(Frame parent)
{
super(parent);
setSize(WIDTH, HEIGHT); // wizard size
}
public static void main(String[] argv) throws Exception
{
Frame f = new Frame();
Test t = new Test(f);
t.setVisible(true);
}
}
The following message is shown on the console:
Warning: Cannot convert string
"-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
###@###.### 10/19/04 20:09 GMT
// java.*
import java.awt.Frame;
import java.awt.Window;
import java.awt.image.ImageObserver;
/**
* Class declaration
*
*
* @author
* @version %I%, %G%
*/
public class Test extends Window implements ImageObserver
{
private static final int HEIGHT = 251;
private static final int WIDTH = 382;
/**
* Constructor
* @param parent the parent frame
*/
public Test(Frame parent)
{
super(parent);
setSize(WIDTH, HEIGHT); // wizard size
}
public static void main(String[] argv) throws Exception
{
Frame f = new Frame();
Test t = new Test(f);
t.setVisible(true);
}
}
The following message is shown on the console:
Warning: Cannot convert string
"-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
###@###.### 10/19/04 20:09 GMT
- duplicates
-
JDK-4901613 Warning messages produced after running test cases.
- Closed