Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 14, 2016 07:51
Show Gist options
  • Save codenameone/2001562d621473fd42c5 to your computer and use it in GitHub Desktop.
Save codenameone/2001562d621473fd42c5 to your computer and use it in GitHub Desktop.
Sample of using the multi image with multiple images
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);
@codenameone
Copy link
Author

Sample usage of the ImageViewer class.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment