Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn the book teach event handling? Doesn every Java programmer need to know how to handle events?

0
Posted

Why doesn the book teach event handling? Doesn every Java programmer need to know how to handle events?

0

This is a book about computing concepts, not about writing Java applets. There are many excellent Java books on the market. (Only modesty prevents me from mentioning the bookCore Java by myself and Gary Cornell.) Event handling in Java is complex, especially for beginners. There is no doubt that Java programmers need to master it, but I do not believe that the first programming course is the appropriate place. (This could change in the future when tools become widely available that produce the event handling code automatically, as in Visual Basic.) Consider this example, from page 28 of an introductory programming book that ought to remain unnamed. (It is Deitel & Deitel). // Addition program import java.awt.*; // import the java.awt package import java.applet.Applet; public class Addition extends Applet { Label prompt; // prompts user to input TextField input; // input values here int number; int sum; // setup the graphical user interface components // and initialize variables public

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123