Created
February 14, 2016 07:51
-
-
Save codenameone/2001562d621473fd42c5 to your computer and use it in GitHub Desktop.
Sample of using the multi image with multiple images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form hi = new Form("ImageViewer", new BorderLayout()); | |
Image red = Image.createImage(100, 100, 0xffff0000); | |
Image green = Image.createImage(100, 100, 0xff00ff00); | |
Image blue = Image.createImage(100, 100, 0xff0000ff); | |
Image gray = Image.createImage(100, 100, 0xffcccccc); | |
ImageViewer iv = new ImageViewer(red); | |
iv.setImageList(new DefaultListModel<>(red, green, blue, gray)); | |
hi.add(BorderLayout.CENTER, iv); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of the ImageViewer class.
From the Codename One project