java hjälp|Programmering / Grafisk formgivning|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
java hjälp
oxiswoofer
Member
Medlem
Forum Posts: 2101
Member Since:
April 1, 2003
sp_UserOfflineSmall Offline
1
June 13, 2005 - 8:01 pm
sp_Permalink sp_Print

tjoho!

sitter o försöker haxxa ihop lite grafiska java grejjer...men lyckas inte så bra....får något konsigt meddelanden när jag kör programmet....
min kod:

import javax.swing.*;
public class Test {

public static void main(String[] args){
JFrame frame = new JFrame("m");
frame.setSize(200,200);
frame.setVisible(true);
}
}

o när jag har kompilerat(inte problem) och skriver java Test så får jag följande:

[oxis@oxis java]$ java Test
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 Test.main(java.lang.String[]) (Unknown Source)

nån som vet vad problemet är? använder Mandrake...

ren
Kommer du hit ofta?
Medlem
Forum Posts: 833
Member Since:
January 15, 2004
sp_UserOfflineSmall Offline
907689
June 13, 2005 - 9:16 pm
sp_Permalink sp_Print

Error: not implemented

Det ser ut som om gcj inte har implementerat funktionerna som behövs.

Har du provat med Java SDK:n från Sun?

oxiswoofer
Member
Medlem
Forum Posts: 2101
Member Since:
April 1, 2003
sp_UserOfflineSmall Offline
907741
June 13, 2005 - 11:10 pm
sp_Permalink sp_Print

nope har inte provat..får ta o göra det..installerade något java paket o antog att allt skulle fungera...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 492
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL