public boolean deletePanel(){
  log.debug("deletePanel");
  int selectedValue=JOptionPane.showOptionDialog(_targetPanel,Bundle.getMessage("QuestionA") + "\n" + Bundle.getMessage("QuestionB"),Bundle.getMessage("DeleteVerifyTitle"),JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,null,new Object[]{Bundle.getMessage("ButtonYesDelete"),Bundle.getMessage("ButtonNoCancel")},Bundle.getMessage("ButtonNoCancel"));
  return (selectedValue == JOptionPane.YES_OPTION);
}

public boolean deletePanel ( ) { log . debug ( "deletePanel" ) ; int selectedValue = JOptionPane . showOptionDialog ( _targetPanel , Bundle . getMessage ( "QuestionA" ) + "\n" + Bundle . getMessage ( "QuestionB" ) , Bundle . getMessage ( "DeleteVerifyTitle" ) , JOptionPane . YES_NO_OPTION , JOptionPane . QUESTION_MESSAGE , null , new Object [ ] { Bundle . getMessage ( "ButtonYesDelete" ) , Bundle . getMessage ( "ButtonNoCancel" ) } , Bundle . getMessage ( "ButtonNoCancel" ) ) ; return ( selectedValue == JOptionPane . YES_OPTION ) ; }
ask user if panel should be deleted . the caller should dispose the panel to delete it .
