code_junkie

How do I get a JEditorPane to highlight the full width of a line (not just the text)?

Nov 12th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ---------------------------------
  2. |Here is some text |
  3. |some more text |
  4. ---------------------------------
  5.  
  6. ---------------------------------
  7. [Here is some text] |
  8. |some more text |
  9. ---------------------------------
  10.  
  11. ---------------------------------
  12. [Here is some text ]
  13. |some more text |
  14. ---------------------------------
  15.  
  16. textPane.setSelectionColor(new Color(1.0f, 1.0f, 1.0f, 0.0f));
Add Comment
Please, Sign In to add comment