O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

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

Chapter 4. Developing Desktop Applications with NetBeans

In this chapter, we will cover the following recipes:

  • Creating a Swing application
  • Adding components to a form
  • Creating menus
  • Creating dialogs
  • Creating toolbars
  • Responding to events
  • Building a distributable application from NetBeans

Introduction

The Java Swing API is a complete GUI toolkit that provides many different classes that allow developers to build complex user interfaces. Swing is based on the Model-View-Controller (MVC) pattern, which allows data to be decoupled from GUI controls and therefore encourages developers to write more maintainable code.

This may all sound very complicated to developers who are new to Swing, but fortunately, one of the greatest strengths of NetBeans is the powerful ...

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