protected Icon[] makeIcons(String location, int count, boolean horizontal) { Icon[] icons = new Icon[count]; BufferedImage[] images = Images.split(createImage(location), count, horizontal); for (int i = 0; i < count; i++) { icons[i] = new IconUIResource(new ImageIcon(images[i])); } return icons; }