1 import java.awt.Toolkit ; 2 import javax.swing.ImageIcon ; 3 import java.net.URL ; 4 5 8 public final class Icons{ 9 public static final ClassLoader CL=(new Dummy()).getClass().getClassLoader(); 10 11 public static ImageIcon get(String url){ 12 try{ 13 URL iconUrl=CL.getResource(url); 14 if(iconUrl==null){ 15 return null; 16 } 17 return new ImageIcon (iconUrl); 18 } 19 catch(Exception e){ 20 e.printStackTrace(); 21 return null; 22 } 23 } 24 25 public static final ImageIcon LOGO=get("img/logo.gif"); 26 public static final ImageIcon QUIT=get("img/quit.gif"); 27 public static final ImageIcon SAVE=get("img/save.gif"); 28 public static final ImageIcon CANCEL=get("img/cancel.gif"); 29 public static final ImageIcon HELP=get("img/help.gif"); 30 public static final ImageIcon CLOSE=get("img/close.gif"); 31 public static final ImageIcon CONFIG=get("img/gear.gif"); 32 public static final ImageIcon BROWSE=get("img/browse.gif"); 33 public static final ImageIcon LOGIN=get("img/plug.gif"); 34 public static final ImageIcon NEW_ACCOUNT=get("img/new.gif"); 35 public static final ImageIcon CONTENTS=get("img/contents.gif"); 36 public static final ImageIcon INDEX=get("img/index.gif"); 37 public static final ImageIcon NEXT=get("img/next.gif"); 38 public static final ImageIcon BACK=get("img/back.gif"); 39 public static final ImageIcon FINISHED=get("img/finish.gif"); 40 public static final ImageIcon PADLOCK=get("img/padlock.gif"); 41 public static final ImageIcon KEY=get("img/key.gif"); 42 public static final ImageIcon UNLOCKED=get("img/unlocked.gif"); 43 public static final ImageIcon WARNING=get("img/warning.gif"); 44 public static final ImageIcon SECURE_CHANNEL=get("img/sc.gif"); 45 public static final ImageIcon REGISTER=get("img/register.gif"); 46 public static final ImageIcon STATUS_ONLINE=get("img/status_online.png"); 49 public static final ImageIcon STATUS_AVAILABLE=get("img/status_available.png"); 50 public static final ImageIcon STATUS_AWAY=get("img/status_away.png"); 51 public static final ImageIcon STATUS_XA=get("img/status_xa.png"); 52 public static final ImageIcon STATUS_DND=get("img/status_dnd.png"); 53 public static final ImageIcon STATUS_INVISIBLE=get("img/status_invisible.png"); 54 public static final ImageIcon STATUS_OFFLINE=get("img/status_offline.png"); 55 public static final ImageIcon STATUS_UNKNOWN=get("img/status_unknown.png"); 56 public static final ImageIcon CHAT=get("img/chat.gif"); 58 public static final ImageIcon MESSAGE=get("img/message.gif"); 59 public static final ImageIcon SINGLE_CHAT=get("img/singlechat.gif"); 60 public static final ImageIcon GROUP_CHAT=get("img/groupchat.gif"); 61 public static final ImageIcon TOOLS=get("img/tools.gif"); 62 public static final ImageIcon DISCO=get("img/disco.gif"); 63 public static final ImageIcon PROFILE=get("img/profile.gif"); 64 public static final ImageIcon PREFERENCES=get("img/preferences.gif"); 65 public static final ImageIcon ABOUT=get("img/about.gif"); 66 public static final ImageIcon ADD_CONTACT=get("img/addcontact.gif"); 68 public static final ImageIcon DELETE_CONTACT=get("img/deletecontact.gif"); 69 public static final ImageIcon CONTACTS=get("img/contacts.gif"); 70 public static final ImageIcon GROUP=get("img/group.gif"); 71 75 public static final ImageIcon RENAME=get("img/rename.gif"); 76 public static final ImageIcon SEND=get("img/send.gif"); 78 79 public static final ImageIcon NEW_MESSAGE=get("img/new_message.gif"); 80 81 public static final ImageIcon ACCEPT=get("img/accept.gif"); 83 public static final ImageIcon DENY=get("img/deny.gif"); 84 85 public static final ImageIcon REFRESH=get("img/refresh.gif"); 87 88 public static final ImageIcon LEAVE=get("img/leave.gif"); 90 public static final ImageIcon OWNER=get("img/owner.gif"); 91 public static final ImageIcon ADMIN=get("img/admin.gif"); 92 public static final ImageIcon MODERATOR=get("img/moderator.gif"); 93 public static final ImageIcon MEMBER=get("img/member.gif"); 94 public static final ImageIcon VISITOR=get("img/visitor.gif"); 95 public static final ImageIcon SUBMIT=get("img/submit.gif"); 96 public static final ImageIcon PRIVATE_MESSAGE=get("img/private_msg.gif"); 97 public static final ImageIcon KICK=get("img/kick.gif"); 98 99 public static final ImageIcon RESET=get("img/reset.gif"); 101 public static final ImageIcon APPEARANCE=get("img/laf.gif"); 102 public static final ImageIcon ALERTS=get("img/alerts.gif"); 103 public static final ImageIcon ACCOUNT_SETTINGS=get("img/account_settings.gif"); 104 public static final ImageIcon EMOTICONS=get("img/emoticons.png"); 105 public static final ImageIcon SOUND=get("img/sound.png"); 106 107 public static final ImageIcon SEARCH=get("img/search.gif"); 109 public static final ImageIcon HOME=get("img/home.gif"); 110 } | Popular Tags |