public TrainingSetPanel(){
  final JSplitPane split=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
  JPanel filler1=new JPanel();
  filler1.setBackground(Color.lightGray);
  JPanel filler2=new JPanel();
  filler2.setBackground(Color.lightGray);
  split.setLeftComponent(filler1);
  split.setRightComponent(filler2);
  split.setResizeWeight(.5);
  split.setBorder(null);
  setLayout(new GridBagLayout());
  GridBagConstraints wholePanelConstraints=new GridBagConstraints();
  wholePanelConstraints.fill=GridBagConstraints.BOTH;
  wholePanelConstraints.weightx=0.5;
  wholePanelConstraints.weighty=0.5;
  wholePanelConstraints.gridx=0;
  wholePanelConstraints.gridy=0;
  add(split,wholePanelConstraints);
}

public TrainingSetPanel ( ) { final JSplitPane split = new JSplitPane ( JSplitPane . HORIZONTAL_SPLIT ) ; JPanel filler1 = new JPanel ( ) ; filler1 . setBackground ( Color . lightGray ) ; JPanel filler2 = new JPanel ( ) ; filler2 . setBackground ( Color . lightGray ) ; split . setLeftComponent ( filler1 ) ; split . setRightComponent ( filler2 ) ; split . setResizeWeight ( .5 ) ; split . setBorder ( null ) ; setLayout ( new GridBagLayout ( ) ) ; GridBagConstraints wholePanelConstraints = new GridBagConstraints ( ) ; wholePanelConstraints . fill = GridBagConstraints . BOTH ; wholePanelConstraints . weightx = 0.5 ; wholePanelConstraints . weighty = 0.5 ; wholePanelConstraints . gridx = 0 ; wholePanelConstraints . gridy = 0 ; add ( split , wholePanelConstraints ) ; }
create a panel for use in testing .
