This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
AWT and Swing with gcj...
- From: Vaillant Etienne <vaillant dot etienne at free dot fr>
- To: java at gcc dot gnu dot org
- Date: Wed, 08 Oct 2003 15:40:33 +0200
- Subject: AWT and Swing with gcj...
Hello,
I wand to creat a cross-plateform GUI with AWT or Swing but I have an
error :
Exception in thread "main" java.lang.Error: not implemented
at javax.swing.UIDefaults.put(java.lang.Object, java.lang.Object)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.plaf.basic.BasicDefaults.BasicDefaults()
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults()
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.UIManager.getDefaults() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.UIManager.getUI(javax.swing.JComponent)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.updateUI() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.JPanel(java.awt.LayoutManager, boolean)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.JPanel() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.createGlassPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.getGlassPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.JRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.createRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.getRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.frameInit() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.JFrame(java.lang.String) (/usr/lib/libgcj.so.4.0.0)
at test3bis.test3bis() (Unknown Source)
at test3.main(java.lang.String[]) (Unknown Source)
so, I don't understand why...
to creat, my application :
$ gcj -c test3.java -o test3.o
$ gcj -jni -c test3bis.java -o test3bis.o
$ gcj --main=test3 -o test3 test3.o test3bis.o
Version :
gcj : 3.3.2
Linux(debian) Testing
Thank
Etienne
public class test3{
public static void main(String[] args){
test3bis t = new test3bis();
}
}
import javax.swing.*;
import java.awt.event.*;
public class test3bis{
public test3bis(){
JFrame mf = new JFrame("test3bis");
mf.setVisible(true);
}
}