}
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JadxWrapper wrapper = new JadxWrapper(jadxArgs);
MainWindow window = new MainWindow(wrapper);
window.pack();
window.setLocationAndPosition();
window.setVisible(true);
window.setLocationRelativeTo(null);
window.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
if (jadxArgs.getInput().isEmpty()) {
window.openFile();
} else {
window.openFile(jadxArgs.getInput().get(0));
}
}
});
} catch (Throwable e) {
LOG.error("Error: " + e.getMessage());