jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes problem with getPeer() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem with getPeer() method" Watch "problem with getPeer() method" New topic
Author

problem with getPeer() method

ju doyle
Greenhorn

Joined: Dec 08, 2004
Posts: 6
Hi,
I've installed J9 and Swing libraries on my PDA but I'm having some problems running Swing programs. My application will display JFrames, but none of the components I place inside the Frame. I'm getting the following runtime error:

'Exception in thread java.lang.NoSuchMethodError: java/awt/Component.getPeer()Ljava/awt/peer/ComponentPeer;'

I'm compiling under jdk 1.3.1_13 and have been told that the method getPeer() has been deprecated. Does anyone know of a way to get around this? Or if there's a version of the method I could use that hasn't been deprecated.

Thanks.
 
 
subject: problem with getPeer() method
 
Similar Threads
public boolean handleEvent(Event e) method:
awtEvents
Any success using threads to isolate printing functions?
Rendering of text on canvas in jdk1.4
Removing component