A good answer might be:

// button Box
buttonBox = new Box( BoxLayout.X_AXIS );
buttonBox.add( genderPanel );
buttonBox.add( Box.createHorizontalGlue() );
buttonBox.add( heightPanel );

End of the Chapter

You have reached the end this chapter. You may wish to review the following. Click on a blue subject that interests you to go to where it was discussed. To get back here, click on the "back arrow" button of your browser.



Click here     Back to the main menu.

You have reached the end of the chapter.