package com.ts3client; import com.ts3client.config.Settings; import com.ts3client.ui.MainFrame; import javax.swing.SwingUtilities; import javax.swing.UIManager; /** * Application entry point. Loads settings, applies the system 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(() -> { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception ignored) { // fall back to cross-platform L&F } new MainFrame(settings).setVisible(true); }); } }