private JPanel createImageFilePanel(){
  JPanel panel=new JPanel();
  panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
  panel.add(imageFileName);
  panel.add(Box.createHorizontalStrut(6));
  panel.add(new JButton(openImageFile));
  return panel;
}

private JPanel createImageFilePanel ( ) { JPanel panel = new JPanel ( ) ; panel . setLayout ( new BoxLayout ( panel , BoxLayout . X_AXIS ) ) ; panel . add ( imageFileName ) ; panel . add ( Box . createHorizontalStrut ( 6 ) ) ; panel . add ( new JButton ( openImageFile ) ) ; return panel ; }
create and return the image file panel .
