1.  
  2. ...
  3. var closeButtonContainer = new BiComponent();
  4. var closeButton = new BiButton();
  5. closeButtonContainer.add(closeButton);
  6. closeButton.setSize(116,21);
  7. closeButtonContainer.setSize(closeButton.getWidth(), closeButton.getHeight());
  8. closeButtonContainer.setLocation(275,175);
  9. closeButton.setStyleProperty("border", "1px solid #c0c7c8");
  10. closeButton.setStyleProperty("backgroundImage", "url(./buttonSliver.gif)");
  11. closeButton.setStyleProperty("backgroundRepeat", "repeat-x");
  12. ...
  13. var closeX = new BiImage("./close.gif");
  14. closeX.setLocation(9,7);
  15. closeButtonContainer.add(closeX);
  16.  
  17. var closeLabel = new BiLabel("Close tips");
  18. closeLabel.setLocation(18,4);
  19. closeLabel.setStyleProperty("marginLeft", "9px");
  20. closeButtonContainer.add(closeLabel);
  21. ...
  22.  
  23.