I have requirement of Text wrapping + Text Centering + Nimbus Look and Feel + with a background color black.
I tried out with the following 2 components
1. JTextPane
-------supports: Text Wrapping + Text Centering using StyledDocument
-------issue : custom background color doesn't work Nimbus Look and Feel(be it disabled or enabled)
which is bug as show here http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=ab1938d61a7fd83ca2b54eb8df7?bug_id=6789980
my jdk version is : 1.6.0_33
Fixes tried :
UIManager.getLookAndFeelDefaults().put("TextPane.background", Color.RED);
but this also is unable to override the Nimbus default which is #d6d9df (214,217,223)
Can anyone help me with text Centering in the JTextArea?
Thanks in advance
1. JTextArea
-------supports: Text Wrapping + background coloring with Nimbus LnF (only when its enabled)
-------issue : Text Centering is an issue in here