Jump to content
JasperReports Library 7.0 is now available ×

JRBox not showing padding


bastieng

Recommended Posts

I'm trying to set padding on a box programmaticaly with the code below. But the changes in padding are not being reflected in the output when I generate the report. Why would the padding parameters be ignored? This box is set as a text fields box when the field is added to the report.

 

private JRBaseBox setBox( byte border,

byte bottomBorder,

byte leftBorder,

byte rightBorder,

byte topBorder,

Integer leftPad,

Integer rightPad,

Color color)

 

{

JRBaseBox box = new JRBaseBox();

box.setBorder(border);

box.setBottomBorder(bottomBorder);

box.setLeftBorder(leftBorder);

box.setRightBorder(rightBorder);

 

box.setLeftPadding(leftPad);

box.setRightPadding(rightPad);

 

box.setTopBorder(topBorder);

box.setBorderColor(color);

return box;

}

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...