package jalview.bin; import java.awt.Image; import java.awt.Taskbar; public class JalviewTaskbar { public JalviewTaskbar() { } protected static void setTaskbar(Jalview jalview) { if (Taskbar.isTaskbarSupported()) { Taskbar tb = Taskbar.getTaskbar(); if (tb.isSupported(Taskbar.Feature.ICON_IMAGE)) { try { java.net.URL url = jalview.getClass() .getResource("/images/JalviewLogo_Huge.png"); if (url != null) { Image image = java.awt.Toolkit.getDefaultToolkit() .createImage(url); tb.setIconImage(image); } } catch (Exception e) { System.out.println("Unable to setIconImage()"); } } } } }