jtextcomponent.getSelectionColor() return wrong color

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

jtextcomponent.getSelectionColor() return wrong color

Peter Cheung
this works:


Code:
FontColorSettings fcs = MimeLookup.getLookup(MimePath.EMPTY).lookup(FontColorSettings.class);
                Coloring c = Coloring.fromAttributeSet(fcs.getFontColors(FontColorNames.CARET_ROW_COLORING));
                g.setColor(c.getBackColor());






Loading...