package com.ts3client; import com.ts3client.config.Settings; import com.ts3client.ui.IconTheme; import com.ts3client.ui.LookAndFeelManager; import com.ts3client.ui.MainFrame; import javax.swing.SwingUtilities; /** * Application entry point. Loads settings, installs the look-and-feel and shows the * main window on the Swing event dispatch thread. */ public final class Main { public static void main(String[] args) { // ts3j is verbose by default; keep the console quiet unless debugging. try { com.github.manevolent.ts3j.util.Ts3Debugging.setEnabled(false); } catch (Throwable ignored) { } final Settings settings = Settings.load(); SwingUtilities.invokeLater(() -> { LookAndFeelManager.install(settings.appearance); IconTheme.get().reload(settings); new MainFrame(settings).setVisible(true); }); } }