void () { myColorSample = new SimpleColoredComponent(); mySamplePanel = new JPanel(new BorderLayout()); mySamplePanel.setBorder(BorderFactory.createEtchedBorder()); mySamplePanel.add(BorderLayout.CENTER, myColorSample); myChooseColorButton = new FixedSizeButton(mySamplePanel); }