Skip to content

Instantly share code, notes, and snippets.

@colin-haber
Created September 5, 2011 06:43
Show Gist options
  • Select an option

  • Save colin-haber/1194257 to your computer and use it in GitHub Desktop.

Select an option

Save colin-haber/1194257 to your computer and use it in GitHub Desktop.
A new contender for the Dojo Longest Line Award
tpInput.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4), BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(consoleForeground), BorderFactory.createEmptyBorder(4, 4, 4, 4))));
@colin-haber
Copy link
Copy Markdown
Author

BorderFactory makes borders. Seriously, that's it. You don't do Border bill = new Border();, you do Border bill = BorderFactory.createSomethingBorder();.

@sleepdeprecation
Copy link
Copy Markdown

I got that. WHAT IS IT?

@colin-haber
Copy link
Copy Markdown
Author

You're bad at explaining yourself, because I'm pretty sure I just told you what a BorderFactory is. Check the JavaDocs for more info,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment