Container
Overview
Separation of concepts: What is the best way to create UI interfaces?Usage
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
Referencies
Last updated
Was this helpful?