Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Just updated JOGL, problem with listeners  (Read 363 times)
0 Members and 1 Guest are viewing this topic.
Offline Kakashi266

Jr. Member
**

Posts: 55



« on: 2011-08-15 15:31:18 »

Okay so first I'll say that all my programming knowledge (beyond basics) is self-learned, and it's hard to learn well that way. In my program, I had the KeyListener and FocusListener added to the autodrawable. Why? Because it worked, and I'm not sure about any other reason. Trying to add it to the frame or canvas brought up static issues. But now that I've updated JOGL, the autodrawable isn't supporting my listeners anymore. Any suggestions?

Offline lhkbob

JGO Neuromancer
****

Posts: 1174
Medals: 35



« Reply #1 on: 2011-08-15 16:22:54 »

The GLAutoDrawable is no longer defined as extending from something that allows you to add those listeners.  If you add them directly to your GLCanvas or GLJPanel (where you have the type declared as GLCanvas or GLJPanel) you should still be able to add those events.

This happened because JOGL has been updated to support multiple window systems (not all of which use the listeners defined in AWT).

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.126 seconds with 21 queries.