Swing: Works? Doesn't Work?

Nathan Meyers nmeyers at teleport.com
Wed Jul 22 08:32:41 PDT 1998


Is Swing believed to work with Kaffe? Believed not to work?

This program dies for me on Kaffe 1.0.b1/RH5.1/egcs:

> import java.text.*;
> import java.util.*;
> import java.io.*;
> import java.awt.*;
> import com.sun.java.swing.*;
>
> public class Swing extends JApplet
> {
>     Swing()
>     {
>     }
>     public static void main(String argv[])
>     {
>         new Swing();
>     }
> }
>
The trace is:


>  java.lang.NullPointerException
>         at java/awt/Color.<init>(50)
>         at java/awt/Defaults.<clinit>(60)
>         at java/awt/Toolkit.<clinit>(45)
>         at java/awt/Color.<clinit>(18)
>         at java/awt/Component.getBackground(208)
>         at com/sun/java/swing/JPanel.<init>(66)
>         at com/sun/java/swing/JPanel.<init>(109)
>         at com/sun/java/swing/JRootPane.createGlassPane(227)
>         at com/sun/java/swing/JRootPane.<init>(183)
>         at com/sun/java/swing/JApplet.createRootPane(133)
>         at com/sun/java/swing/JApplet.<init>(113)
>         at Swing.<init>(10)
>         at Swing.main(15)
>
Nathan Meyers
nmeyers at teleport.com





More information about the kaffe mailing list