Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Event driven development  RSS feed

 
Federico Techera
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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • 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.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser 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.
 
Scott Winterbourne
Ranch Hand
Posts: 116
2
Eclipse IDE Java PHP
  • 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.
 
Rob Camick
Ranch Hand
Posts: 2787
12
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!