bastieng Posted November 17, 2006 Share Posted November 17, 2006 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 More sharing options...
bastieng Posted November 17, 2006 Author Share Posted November 17, 2006 Stupid...you gotta write the JRBox border and padding to the actual field object. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now