Java Swing Icon getApplicationIcons()

Here you can find the source of getApplicationIcons()

Description

get Application Icons

License

Open Source License

Declaration

public final static List<Image> getApplicationIcons() 

Method Source Code

//package com.java2s;
/**/*from ww  w. j a va  2 s . c o m*/
 * Title: tn5250J
 * Copyright:   Copyright (c) 2001,202,2003
 * Company:
 * @author  Kenneth J. Pouncey
 * @version 0.4
 *
 * Description:
 *
 * 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, 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 software; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 *
 */

import java.awt.Image;

import java.util.ArrayList;
import java.util.List;
import javax.swing.ImageIcon;

public class Main {
    private static List<Image> tnicon;

    public final static List<Image> getApplicationIcons() {

        if (tnicon == null) {
            tnicon = new ArrayList<Image>();
            tnicon.add(
                    new ImageIcon(ClassLoader.getSystemClassLoader().getResource("tn5250j-16x16.png")).getImage());
            tnicon.add(
                    new ImageIcon(ClassLoader.getSystemClassLoader().getResource("tn5250j-32x32.png")).getImage());
            tnicon.add(
                    new ImageIcon(ClassLoader.getSystemClassLoader().getResource("tn5250j-48x48.png")).getImage());
        }
        return tnicon;
    }
}

Related

  1. createTransparentIcon()
  2. createTransparentIcon(final int width, final int height)
  3. createTransparentIcon(int width)
  4. darken(Icon icon)
  5. emptyIcon(final int width, final int height)
  6. getBadgedIcon(Icon icon, Icon badge)
  7. getbtnIcon(String iconpath)
  8. getbtniconpresspress(String Iconpath1, String pressIconpath2, String pressIconpath3)
  9. getClosestIcon(Collection icons, int height)