• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

listener dead?

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i have 1 GUI class that has buttons,
and the listener is in the CTRL class.

they are somehow connected with each other.
but nothing happens when i do something with the GUI.






why is that?
thank you.

regards,
kelvin
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a fine line to walk when posting code. You want to post enough code for us to help you, but if you post too much code, no one will bother to read it. In your case, you posted a ton of code, but you failed to post HoyreStud or SorStud, which are obviously important pieces to this puzzle. If you did post these classes, I could practically gaurantee that noone would bother to dig through all that code. In the future, you should pare your code down to to a simple test case. One that a reader can compile and run. You'd be surprised at what you can figure out by concentrating on the problem rather than 100's of lines of code.
That said, my wild guess is that HoyreStud.getRadioNr() is creating a new radio button instance with every call, so you are putting one radio button on the GUI and setting the listener on another instance.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic