03-14-2010 10:06 PM
I am trying to create a rounded border around a GridFieldManager or a VerticalFieldManager with the following code.
XYEdges xy = new XYEdges (11,11,11,11);
XYEdges colors = new XYEdges(Color.RED, Color.RED, Color.RED, Color.RED);
Border b = BorderFactory.createRoundedBorder(xy, Border.STYLE_FILLED);
I can only only see straight borders if any. Can anyone please point me to a code snippet that works.
I am using 5.0 api's.
03-14-2010 11:54 PM
This may or may not be your problem, but you aren't using the correct constructor assuming that you want to use the colors you specified in the variable XYEdges colors.
Border b = BorderFactory.createRoundedBorder(xy, colors, Border.STYLE_FILLED);