class InfoPanel extends Panel { final int TextWidth = 40; final int TextHeight = 6; TextField nameT, phoneT; TextArea addressT; InfoPanel() { Label nameL = new Label("Name"); nameT = new TextField(TextWidth); Label phoneL = new Label("Phone"); phoneT = new TextField(TextWidth); Label addressL = new Label("Snail Mail Address"); addressT = new TextArea(TextHeight, TextWidth); // lots of geometry stuff here }