Java Reference
In-Depth Information
Developing Your Second JavaFX Program: “More Cowbell!”
If you're familiar with the Saturday Night Live television show, you may have seen the “More Cowbell” sketch, in
which Christopher Walken's character keeps asking for “more cowbell” during a Blue Oyster Cult recording session.
The following JavaFX example program covers some of the simple but powerful concepts of JavaFX in the context
of an imaginary application that lets you select a music genre and control the volume. Of course, “Cowbell Metal,”
shortened to “Cowbell,” is one of the available genres. Figure 1-9 shows a screenshot of this application, which has a
sort of retro iPhone application look.
Figure 1-9. The Audio Configuration “More Cowbell” program
Building and Running the Audio Configuration Program
Earlier in the chapter, we showed you how to create a new JavaFX project in NetBeans. For this example (and the
rest of the examples in the topic), we take advantage of the fact that the code download bundle for the topic contains
both NetBeans and Eclipse project files for each example. Follow the instructions in this exercise to build and run the
Audio Configuration application.
BUILDING aND rUNNING the aUDIO CONFIGUratION prOGraM
USING NetBeaNS
to build and execute this program using netBeans, perform the following steps.
1.
From the File menu, select the Open project menu item. in the Open project dialog box,
navigate to the Chapter01 directory where you extracted the topic's code download bundle,
as shown in Figure 1-10 .
 
Search WWH ::




Custom Search