Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Event driven development

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I think will be easy for me start with a GUI and then make things happens when the user clic on Buttons.

Is there a good book about Event driven development on Java?

Or we jus have some chapters inside generics books?
 
author & internet detective
Posts: 40169
812
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which technology are you thinking about for your GUI? Swing?

I ask because you are correct that what you want would be part of another book. So that book should be on the right technology.
 
Federico Techera
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Which technology are you thinking about for your GUI? Swing?

I ask because you are correct that what you want would be part of another book. So that book should be on the right technology.



Hello Jeanne.

I'm new into Java but I have small experience on the old Visual Basic. I know is better learn the core of Java first but also I find easy for me build a GUI and then adding the code.

I'm using Netbeans and Swing, yes, and I only need connection to one simple database so I can handle records.

Thanks for any opinion.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I am not able to interpret the question or what you want to achieve but here are my thoughts.
Event driven programming does not mean GUI. I know GUI stuff like Swing uses event driven approach, but it is transparent to the developer.
The events are fired/triggered for you by the API and all you do is associate the handler and put business logic into it. That handler is invoked during runtime.
For me event driven programming would be an application which uses sensors or elements that activate on particular event. Then you fire the event so an handler can be invoked.

The difference here is who is responsible for event management, the developer or the underlying framework.
 
Ranch Hand
Posts: 116
2
Eclipse IDE PHP Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Federico Techera wrote:I'm new into Java but I have small experience on the old Visual Basic. I know is better learn the core of Java first but also I find easy for me build a GUI and then adding the code.



The only books that I have experience with include some chapters on Swing but focus mosly on core Java and OOP concepts. Then later in the book then introduce Swing and how to apply what you have learned about core Java to a GUI.

Building Swing isn't quite like VB where you drag and drop a button, then write some code in the Button OnClick sub routine.

I would highly recomend learning the core Java language first as building a Swing GUI does require you to know about inheritance, interfaces, etc.

The book that I learned from is "Head First Java". It does go over core Java and some Swing toward the end.
 
Rancher
Posts: 3204
29
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with the Swing Tutorial for GUI basics.
 
Federico Techera
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Amit Ghorpade wrote:I know GUI stuff like Swing uses event driven approach, but it is transparent to the developer.
The events are fired/triggered for you by the API and all you do is associate the handler and put business logic into it.



Just was I looking for! Thanks. I understand.
 
Federico Techera
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Scott Winterbourne wrote:

Federico Techera wrote:I'm new into Java but I have small experience on the old Visual Basic. I know is better learn the core of Java first but also I find easy for me build a GUI and then adding the code.



The only books that I have experience with include some chapters on Swing but focus mosly on core Java and OOP concepts. Then later in the book then introduce Swing and how to apply what you have learned about core Java to a GUI.

Building Swing isn't quite like VB where you drag and drop a button, then write some code in the Button OnClick sub routine.

I would highly recomend learning the core Java language first as building a Swing GUI does require you to know about inheritance, interfaces, etc.

The book that I learned from is "Head First Java". It does go over core Java and some Swing toward the end.



Thanks a lot, I will buy the book you say.
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic