2021-02-02 22:23:26 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Kent Hansen.
|
|
|
|
*
|
2024-02-02 04:27:10 +00:00
|
|
|
* This file is part of Tile Mangler.
|
2021-02-02 22:23:26 +00:00
|
|
|
*
|
2024-02-02 04:27:10 +00:00
|
|
|
* Tile Mangler is free software; you can redistribute it and/or modify
|
2021-02-02 22:23:26 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2024-02-02 04:27:10 +00:00
|
|
|
* Tile Mangler is distributed in the hope that it will be useful,
|
2021-02-02 22:23:26 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-02-02 23:33:56 +00:00
|
|
|
import javax.swing.UIManager;
|
|
|
|
|
2021-02-02 22:23:26 +00:00
|
|
|
import tm.ui.TMUI;
|
2021-02-04 19:35:07 +00:00
|
|
|
import java.awt.Color;
|
|
|
|
import java.awt.SystemColor;
|
2021-02-02 23:33:56 +00:00
|
|
|
|
|
|
|
|
2021-02-02 22:23:26 +00:00
|
|
|
/**
|
|
|
|
*
|
2024-02-02 04:27:10 +00:00
|
|
|
* Tile Mangler main class.
|
2021-02-02 22:23:26 +00:00
|
|
|
* A quite pointless class really. The application is very UI-centric,
|
|
|
|
* so the TMUI class evolved into the real application backbone.
|
|
|
|
* This class just gets the show started.
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
2024-02-02 04:27:10 +00:00
|
|
|
public class TileMangler {
|
2021-02-02 22:23:26 +00:00
|
|
|
|
2021-02-04 19:35:07 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Constructor.
|
|
|
|
*
|
|
|
|
**/
|
2021-02-02 22:23:26 +00:00
|
|
|
|
2021-02-04 19:35:07 +00:00
|
|
|
boolean isLinux = TMUI.isLinux;
|
|
|
|
boolean isWindows = TMUI.isWindows;
|
2021-02-02 23:33:56 +00:00
|
|
|
|
2024-02-02 04:27:10 +00:00
|
|
|
public TileMangler() {
|
2021-02-02 23:33:56 +00:00
|
|
|
try {
|
|
|
|
if(isLinux) UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
|
|
|
|
if(isWindows) UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
2021-02-04 19:35:07 +00:00
|
|
|
|
2021-02-02 23:33:56 +00:00
|
|
|
new TMUI();
|
2021-02-02 22:23:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-04 19:35:07 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Starts up the program.
|
|
|
|
*
|
|
|
|
**/
|
2021-02-02 22:23:26 +00:00
|
|
|
|
|
|
|
public static void main(String[] args) {
|
2024-02-02 04:27:10 +00:00
|
|
|
new TileMangler();
|
2021-02-02 22:23:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|