PDA

View Full Version : How to set Java swing componant JTextPane Boder with theme use



sthiranga
July 3rd, 2009, 11:27 AM
I've develop java swing application and used third party theme(Substance.jar).
it has jtextpane and i want it's border to zero.(no border).I try both this

jtextpane.setborder(null);
jtextpane.setborder(BorderFactor.createEmptyBorder ());

But both of them not work.
Then i remove theme and run with default and it's work.
Is there anyway to remove this border when themes use?
Thanks.