setLayout(new BorderLayout()); setBorder(new TitledBorder(new EtchedBorder(), "Performance")); add(surf = new Surface());