L2jMobius icon and path changes.
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_1.0_Ertheia/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_2.5_Underground/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_3.0_Helios/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_4.0_GrandCrusade/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_C6_Interlude/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_CT_2.6_HighFive/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_Classic_2.0_Saviors/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 446 B |
BIN
L2J_Mobius_Classic_2.0_Zaken/dist/images/l2jmobius.png
vendored
Normal file
After Width: | Height: | Size: 488 B |
@ -31,7 +31,6 @@ import javax.swing.SpringLayout;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.RunTasks;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
import com.l2jmobius.tools.dbinstaller.util.mysql.MySqlConnect;
|
||||
import com.l2jmobius.tools.dbinstaller.util.swing.SpringUtilities;
|
||||
|
||||
@ -53,10 +52,10 @@ public class DBConfigGUI extends JFrame
|
||||
|
||||
public DBConfigGUI(String db, String dir)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new SpringLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_db = db;
|
||||
_dir = dir;
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import com.l2jmobius.tools.dbinstaller.DBOutputInterface;
|
||||
import com.l2jmobius.tools.dbinstaller.images.ImagesTable;
|
||||
|
||||
/**
|
||||
* @author mrTJO
|
||||
@ -41,10 +40,10 @@ public class DBInstallerGUI extends JFrame implements DBOutputInterface
|
||||
|
||||
public DBInstallerGUI(Connection con)
|
||||
{
|
||||
super("Database Installer");
|
||||
super("Mobius - DB Installer");
|
||||
setLayout(new BorderLayout());
|
||||
setDefaultLookAndFeelDecorated(true);
|
||||
setIconImage(ImagesTable.getImage("l2j.png").getImage());
|
||||
setIconImage(Toolkit.getDefaultToolkit().getImage("..\\images\\l2jmobius.png"));
|
||||
|
||||
_con = con;
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.tools.dbinstaller.images;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
/**
|
||||
* Usage of this class causes images to be loaded and kept in memory, and therefore should only be used by helper applications.<br>
|
||||
* Some icons from famfamfam (http://www.famfamfam.com/) credit *MUST* be given.
|
||||
* @author KenM
|
||||
*/
|
||||
public class ImagesTable
|
||||
{
|
||||
private static final Map<String, ImageIcon> IMAGES = new HashMap<>();
|
||||
|
||||
public static final String IMAGES_DIRECTORY = "images/";
|
||||
|
||||
public static ImageIcon getImage(String name)
|
||||
{
|
||||
if (!IMAGES.containsKey(name))
|
||||
{
|
||||
IMAGES.put(name, new ImageIcon(IMAGES_DIRECTORY + name));
|
||||
}
|
||||
return IMAGES.get(name);
|
||||
}
|
||||
}
|