Traversing To and Fro with SQL Server Based Java Applications using NetBeans IDE
This series introduces you to a step-by-step process for developing Java (or JFC) based applications with Microsoft SQL Server as the database, using NetBeans IDE. In this article (which is the last in this series), I shall introduce you to traversing through a set of rows more efficiently. This will be a bit different from any of the articles in this series.
Traversing To and Fro with SQL Server Based Java Applications using NetBeans IDE - The Java code from IDE (Page 3 of 5 )
In this section, I shall give you some overview of the code generated behind the scenes. I already explained the code generated in the previous article. All of my introductory articles really explain each and every statement for the code generated behind the scenes. To make it simple, I shall list the most important code, which is a bit different from other articles.
As you know, the button declaration will be a bit different from the others, as it has some "event" to be published. The following is the code for the same:
The above code will simply add "listeners" to all the buttons designed on our form. That code will be present if and only if you double click on every button to write some code (with respect to that button). You can also observe that every button is instantiated, labeled, registered with its own listener, and added to the content panel based on the bounds defined by the user.