O'Reilly logo

NetBeans IDE 7 Cookbook by Rhawi Dantas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Frame

NetBeans is using javax.swing.JFrame as a base for all Swing applications; in this recipe, we will use the word Frame to denote instances of javax.swing.JFrame class.

The Frame is nothing more than a border where the developer will place the components; think of a real frame where the canvas goes, so the artists can paint on it, and where other components will be added. The provided implementation from NetBeans is very basic in its content but it already has some basic controls, so the designer can close, expand, and align the components implemented.

Desktop Applications will have at least one Frame, but several other components can be included in its "body".

Getting ready

For this recipe, you will require a Java Desktop Project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required