public static PopulateDb.ConflictHandler createSaveToDbConflictHandler(final Component parent) { return new PopulateDb.ConflictHandler() { public int handleConflict(Object msg, Object[] choices, Object defaultChoice) { return JOptionPane.showOptionDialog(parent, msg, "Database Conflict", JOptionPane.WARNING_MESSAGE, JOptionPane.DEFAULT_OPTION, null, choices, defaultChoice); } };
public static DBConflictHandler createSaveToDbConflictHandler(final Component parent) { return new GUIDBConflictHandler(parent);
  public static PopulateDb.ConflictHandler createSaveToDbConflictHandler(final Component parent) {    return new PopulateDb.ConflictHandler() {      public int handleConflict(Object msg, Object[] choices, Object defaultChoice) {        return JOptionPane.showOptionDialog(parent,                                            msg,                                            "Database Conflict",                                            JOptionPane.WARNING_MESSAGE,                                            JOptionPane.DEFAULT_OPTION,                                            null,                                            choices,                                            defaultChoice);      }    };  }