How palette works

We can see the Java code that comprises our file in the Source code tab; there's actually a whole lot of code in this file if we expand it out. It's all been generated for us by the NetBeans GUI editor called Palette as shown in the following screenshot. Changes we make to this Java file will affect our Design file and vice versa. From this Design file, we have access to a drag and drop editor, and we can also edit the properties of individual elements without having to jump into our Java code, that is, the Source file. Eventually, in pretty much any application we ever create, we're going to have to drop into our Java code to provide the backend programming functionality to the pieces we put into our editor; for now, let's ...

Get Java Programming for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.