• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with getPeer() method  RSS feed

ju doyle
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!