Add the button to the frame

Then the button is added to the NORTH location in the frame in Listing 4

(Recall that when adding objects to a JFrame, it is necessary to add them to the content pane.)

File: bh.htm [Next] [Prev]