Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setIcon() throws IOException {
- // erstelle ein packet namens 'icons' im ordner dieser klasse und ziehe da die Icons (icon_16.png, icon_32.png)
- Display.setIcon(new ByteBuffer[] {
- new ImageIOImageData().imageToByteBuffer(
- ImageIO.read(getClass().getResourceAsStream("icons/icon_16.png")), false, false, null),
- new ImageIOImageData().imageToByteBuffer(
- ImageIO.read(getClass().getResourceAsStream("icons/icon_32.png")), false, false, null) });
- }
Add Comment
Please, Sign In to add comment