Container

Overview

The container is a control that contains child controls. It is possible to adjust its transparency, screen transition effects, borders and background style.

If you want to know more about how differences between windows and container, how to navigate between interfaces and what are the best ways to handle containers and windows, just click on the link below:

Usage

Container
class ContainerSample extends Container{
	
	@Override
    public void initUI() {
      try {
            ImageControl logo = new ImageControl(new Image("path_of_your_logo_img"));
            logo.scaleToFit = true;
            logo.centerImage = true;
            logo.transparentBackground = true;
            add(logo, CENTER, CENTER, PARENTSIZE + 50, PARENTSIZE + 50);
        } catch (ImageException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Features of Container

Method

Some methods that are most commonly used

Referencies

You can see more information in javaDoc

Last updated