3
When I deploy my application to Windows CE that contains images on the screen or in Buttons no element is displayed, but in the emulator works normally. When I remove images it works normally.
public class Teste extends Container {
    private ScrollContainer sc;
    private Container contTopo,contRodape;
    private Edit edtIdentificador;
    private Button btIdentificador,btFinalizar;
    private Label lblMultiplicacao,lblMensagem;
    public void initUI() {
        setBackColor(Colors.GRAY);
        setBorderStyle(BORDER_SIMPLE);
        try {
            edtIdentificador = new Edit();
            edtIdentificador.caption = "Insira o identificador";
            edtIdentificador.setFont(Font.getFont("Lato Medium", false, edtIdentificador.getFont().size -2));
            edtIdentificador.setBackForeColors(Color.BLACK, Color.BLACK);
            edtIdentificador.requestFocus();
            btIdentificador =
                  new Button(
                      new Image("images/barra.png")
                          .hwScaledFixedAspectRatio((int) (Settings.screenDensity * 24), true));
            btIdentificador.setBorder(Button.BORDER_NONE);
            btIdentificador.setBackForeColors(Color.WHITE, Color.WHITE);
            contTopo = new Container();
            contTopo.setBackForeColors(Color.WHITE, Color.WHITE);
            add(contTopo, CENTER, TOP, PARENTSIZE, PARENTSIZE+15);
            contTopo.add(edtIdentificador, LEFT+170, TOP, PARENTSIZE+60, PARENTSIZE+80);
            contTopo.add(btIdentificador, RIGHT, TOP, PARENTSIZE+20, PARENTSIZE+100);
            lblMensagem = new Label("Adicione um indicador para listagem",CENTER);
            lblMensagem.setBackForeColors(Colors.GRAY,0x999999 );
            lblMensagem.setFont(Font.getFont("Lato Medium", false, lblMensagem.getFont().size -5));
            add(lblMensagem,CENTER,CENTER,PARENTSIZE,PARENTSIZE+10);
            contRodape = new Container();
            contRodape.setBackForeColors(Colors.GREEN, Color.WHITE);
            add(contRodape, CENTER, BOTTOM, PARENTSIZE, PARENTSIZE+10);  
            btFinalizar = new Button("Finalizar");
            btFinalizar.transparentBackground = true;
            contRodape.add(btFinalizar, RIGHT, CENTER, (int) (Settings.screenDensity * 100), PREFERRED+20);
          } catch (IOException | ImageException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
         }
    }
}
Excellent reply! it was very detailed some things I did not understand. Thank you!
– João