Book Image

NetBeans IDE 7 Cookbook

By : Rhawi Dantas
Book Image

NetBeans IDE 7 Cookbook

By: Rhawi Dantas

Overview of this book

<p>Java IDEs have grown bigger and more complicated with time. Some development environments even require the user to spend countless hours searching for more software to bundle with the IDE just to start working. NetBeans abstracts much of the work needed to configure the environment and makes it convenient for Java developers to start coding straight away. With this book in hand you will tap into the endless possibilities of developing modern desktop and web applications in Java.<br /><br />NetBeans IDE 7 Cookbook is perfect for you if you are ready to take the next step from the standard tutorials and move into the practical world. It will show you all the features of the NetBeans IDE used by Java developers. It goes to great lengths in explaining different ways of achieving a desired goal and uncovering features present in NetBeans that are often overlooked or forgotten.<br /><br />The NetBeans IDE 7 Cookbook will appeal to Java programmers at all levels who are ready to go beyond just tutorials.</p>
Table of Contents (19 chapters)
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a Panel


In the next step, we will create a JPanel.

A JPanel can incorporate many different combinations of components and behaviors. This way, it is possible to interchange the Panels on top of the Frame and let other behavior take place at the window.

Each JPanel is configured with a layout; the layout determines how the components will be arranged on the top of the panel. NetBeans makes it easy to change the layouts with a click of a button.

Getting ready

It is necessary to have the source of a Java Desktop project open in NetBeans. Many of the files created in this recipe build upon previous recipes in this chapter, because we wish to give continuity to the recipes.

Tip

If you are unsure how to do these steps, please refer to the previous recipes of this chapter.

The project and file name references come from the other recipes in this chapter, so feel free to use the same naming if not confident enough.

It is necessary to have an empty JFrame form so the JPanel can be used.

How to do...