Created
September 5, 2011 06:43
-
-
Save colin-haber/1194257 to your computer and use it in GitHub Desktop.
A new contender for the Dojo Longest Line Award
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tpInput.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4), BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(consoleForeground), BorderFactory.createEmptyBorder(4, 4, 4, 4)))); |
Author
what is BorderFactory was actually what I wanted, I got what the thing did.
Author
BorderFactory makes borders. Seriously, that's it. You don't do Border bill = new Border();, you do Border bill = BorderFactory.createSomethingBorder();.
I got that. WHAT IS IT?
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
Seriously. It takes a
JTextPaneand gives it 4px of padding and margin each, with a 1px solid white border.