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

Creating dialogs

In the previous recipe, we saw how to add menus to a form. We added a menu that will allow us to display an About box for our application. So far, we've not created any dialogs though.

In this recipe, we'll see how to create dialogs.

Getting ready

To complete this recipe, we need to have the JarViewer project that was created in the Creating menus recipe. If you have not completed this recipe, the source code is available with the code download bundle for this chapter.

How to do it…

  1. Right-click on the com.davidsalter.cookbook.jarviewer.gui package in the Projects explorer and select New and then Other….
  2. In the New File dialog, select Swing GUI Forms under Categories and OK / Cancel Dialog Sample Form from the File Types section.
  3. Click ...

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