private void addDialog(final Component comp){
  pane.add(comp,JLayeredPane.PALETTE_LAYER);
}

private void addDialog ( final Component comp ) { pane . add ( comp , JLayeredPane . PALETTE_LAYER ) ; }
add a native in - window dialog to the screen .
