question: private void createGui ( ) { final JPanel outerNamePanel = new JPanel ( new BorderLayout ( ) ) ; outerNamePanel . setBorder ( new TitledBorder ( "Tag" ) ) ; final JPanel namePanel = new JPanel ( new BorderLayout ( ) ) ; namePanel . setBorder ( new EmptyBorder ( 0 , 0 , 5 , 0 ) ) ; final JLabel nameLabel = new CHelpLabel ( "Name" + ":" , new CNameHelp ( ) ) ; nameLabel . setPreferredSize ( new Dimension ( 110 , 25 ) ) ; namePanel . add ( nameLabel , BorderLayout . WEST ) ; namePanel . add ( m_nameTextField , BorderLayout . CENTER ) ; outerNamePanel . add ( namePanel , BorderLayout . CENTER ) ; final JPanel outerDescriptionPanel = new JPanel ( new BorderLayout ( ) ) ; outerDescriptionPanel . setBorder ( new EmptyBorder ( 5 , 0 , 0 , 0 ) ) ; final JPanel descriptionPanel = new JPanel ( new BorderLayout ( ) ) ; descriptionPanel . setBorder ( new TitledBorder ( "Description" ) ) ; descriptionPanel . setMinimumSize ( new Dimension ( 0 , 120 ) ) ; descriptionPanel . add ( new JScrollPane ( m_descriptionField ) ) ; outerDescriptionPanel . add ( descriptionPanel , BorderLayout . CENTER ) ; final JPanel buttonPanel = new JPanel ( new GridLayout ( 1 , 2 ) ) ; buttonPanel . add ( new JPanel ( ) ) ; buttonPanel . setBorder ( new EmptyBorder ( 5 , 0 , 5 , 2 ) ) ; buttonPanel . add ( m_saveButton ) ; final JPanel topPanel = new JPanel ( new BorderLayout ( ) ) ; topPanel . add ( outerNamePanel , BorderLayout . NORTH ) ; topPanel . add ( outerDescriptionPanel , BorderLayout . CENTER ) ; topPanel . add ( buttonPanel , BorderLayout . SOUTH ) ; final JPanel bottomPanel = new JPanel ( new BorderLayout ( ) ) ; bottomPanel . setBorder ( m_tableBorder ) ; final JScrollPane scrollPane = new JScrollPane ( m_childrenTagTable ) ; bottomPanel . add ( scrollPane , BorderLayout . CENTER ) ; final JSplitPane splitPane = new JSplitPane ( JSplitPane . VERTICAL_SPLIT , true , topPanel , bottomPanel ) ; splitPane . setOneTouchExpandable ( true ) ; splitPane . setDividerLocation ( splitPane . getMinimumDividerLocation ( ) ) ; splitPane . setResizeWeight ( 0.5 ) ; add ( splitPane ) ; }
target:  Creates the GUI of the component.