What is the Spacer class?

March 7th, 2008 by uCertify Leave a reply »

The Spacer class extends the Item class. It positions other items on the Form object, and therefore it is non-interactive. A developer cannot add commands to a Spacer object by using the addCommand() method, as it will throw an IllegalStateException. The Spacer object have no label, and an attempt to set a label using the setLabel() method throws an IllegalStateException. It defines the following constructor:

public Spacer(int width, int height)

Here, the width parameter specifies the width of the Spacer object in pixels, and the height parameter specifies the height of the Spacer object in pixels.

Pass SCMAD in first attampt. Click here to get free CX310-110 SCMAD Mobile Application Developer exam practice questions.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.