- data_view.setMinimumSize( Constants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
- tree_view.setMinimumSize( Constants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
- split_pane.setDividerLocation( 400 );
- split_pane.setPreferredSize( Constants.NODE_PANEL_SIZE );
- add( split_pane );
+ data_view.setMinimumSize( AptxConstants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
+ tree_view.setMinimumSize( AptxConstants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
+ split_pane.setDividerLocation( 300 );
+ split_pane.setPreferredSize( AptxConstants.NODE_PANEL_SIZE );
+
+
+ close_button.addActionListener( new ActionListener() {
+ public void actionPerformed( final ActionEvent e ) {
+ parent.close();
+ }
+ } );
+
+
+ close_button.setAlignmentX( Component.CENTER_ALIGNMENT );
+ split_pane.setAlignmentX( Component.CENTER_ALIGNMENT );
+ final JPanel panel = new JPanel();
+ panel.setLayout( new BoxLayout( panel, BoxLayout.Y_AXIS ) );
+ panel.add( split_pane );
+ panel.add( close_button );
+ add( panel );