Here you can find the source of getShieldImage()
public static Image getShieldImage()
//package com.java2s; /*/*from ww w .j av a2s. co m*/ * MegaMekLab - Copyright (C) 2008 * * Original author - jtighe (torren@users.sourceforge.net) * * 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 2 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. */ import java.awt.Image; import java.io.File; import javax.swing.ImageIcon; public class Main { public static String recordSheetPath = "./data/images/recordsheets/"; public static Image getShieldImage() { String path = new File(recordSheetPath).getAbsolutePath() + File.separatorChar; Image image = new ImageIcon(path + "twbiped-shields.png").getImage(); return image; } }