Hi!

in an example, on the BXMLPrimer I noticed that a casting is missing when
getting reference to a Label.

public void startup(Display display, Map<String, String> properties)
    throws Exception {
    BXMLSerializer bxmlSerializer = new BXMLSerializer();
    Window window =
        (Window)bxmlSerializer.readObject(getClass().getResource(
"window.bxml"));

   * **Label label = bxmlSerializer.getNamespace().get("label");*
    label.setText("Welcome to Pivot!");

    window.open(display);
}


Cheers,
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

Reply via email to