X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fclient%2Fgui%2FSwingClient.java;h=2ad4ae2d7e663d9dc103402ce49ac1ded43fa870;hb=3a5ed167e6e6074ff530c07e6e4dfad9ccfd8077;hp=27b98de9790abd08bb1f3d7fc2fc586903a2b4ef;hpb=16289838616dbf25d96a20f82164415d40181e46;p=jaddressbook-lib.git diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java index 27b98de9..2ad4ae2d 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java +++ b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java @@ -16,15 +16,19 @@ */ package org.mxchange.addressbook.client.gui; +import java.io.IOException; +import java.sql.SQLException; import org.mxchange.addressbook.client.AddressbookClient; import org.mxchange.addressbook.client.BaseAddressbookClient; -import org.mxchange.addressbook.contact.Contact; -import org.mxchange.addressbook.contact.Gender; import org.mxchange.addressbook.menu.Menu; import org.mxchange.addressbook.menu.item.SelectableMenuItem; import org.mxchange.jcore.application.Application; +import org.mxchange.jcore.client.gui.ClientFrame; +import org.mxchange.jcore.contact.Contact; +import org.mxchange.jcore.contact.Gender; import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException; import org.mxchange.jcore.exceptions.UnhandledUserChoiceException; +import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException; /** * @@ -104,7 +108,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli * Shuts down this client */ @Override - public void doShutdown () { + public void doShutdown () throws SQLException, IOException { // Debug message this.getLogger().trace("CALLED!"); //NOI18N @@ -176,13 +180,13 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli // Debug message this.getLogger().trace("CALLED!"); //NOI18N - // Init contact manager here - this.initContactManager(); - try { + // Init contact manager here + this.initContactManager(); + // Init frame this.frame.init(); - } catch (final FrameAlreadyInitializedException ex) { + } catch (final FrameAlreadyInitializedException | UnsupportedDatabaseBackendException | SQLException ex) { // Abort program this.abortProgramWithException(ex); }