This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Consider this question

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
I would like anybody to please post me a source code where Simple eventListner is being implemented, prefarable something that has to do with buttons, sending texts to Textfileds as in simple calculator....

i have some codes that i am trying to study, but still kinda complex for me to comprehend..

Maybe a simple code to show like addition of two numbers and display the result, i will build on that to move on in my career.

(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you run through the Sun Swing Tutorial? The Sun materials are almost always great for an introduction to new APIs.

For my own part, I like my event listeners to do as little as possible, maybe one line that tells some non-Swing object (like your calculator object) that a button was pressed.

See what kind of code you can put together. The ranch works best when you show us something that almost works and we can help you get past whatever is holding you up.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!