Skip to end of metadata
Go to start of metadata

Generated Object

A javax.swing.border.EmptyBorder, a border whose margins are not painted with anything.

Value Argument

Either an Integer or an array of four Integers. 

A single integer is expanded to an array of four integers of the same value.

An array of four integers is used to generate the top, left, bottom, and right margins, respectively.

If a value argument is used then the top:, left:, bottom:, and right: attributes cannot be used. 


If any of top:, left:, bottom:, or right: are specified the all of them must be specified.

  • top <int> the top margin of the border
  • left <int> the left margin of the border
  • bottom <int> the bottom margin of the border
  • right <int> the right margin of the border
  • parent <boolean> Whether or not this border is to be added to the parent JComponent


emptyBorder() is a leaf node, no child content is allowed.



Do work:

Does not work:

  • No labels