import org.eclipse.swt.widgets.Display; public class MainClass { static Display display = new Display(); public static void main(String[] args) { System.out.println(display.getIconDepth()); } }