L2jMobius icon and path changes.

This commit is contained in:
MobiusDev 2018-04-30 17:27:47 +00:00
parent d4ac772ecb
commit 7fb5418186
48 changed files with 32 additions and 392 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -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;

View File

@ -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;

View File

@ -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);
}
}