Jump to content
We've recently updated our Privacy Statement, available here ×

How to display a JPanel?


miret

Recommended Posts

I am not able to visualize a JPanel in my JasperReport.

Here is part of the xml code:

<image>
    <reportElement x="465" y="230" width="200" height="200"/>
    <box>
     <topPen lineWidth="0.0" lineColor="#000000"/>
     <leftPen lineWidth="0.0" lineColor="#000000"/>
     <bottomPen lineWidth="0.0" lineColor="#000000"/>
     <rightPen lineWidth="0.0" lineColor="#000000"/>
    </box>
    <imageExpression class="java.awt.Image"><![CDATA[$P{panel}.createImage(200,200)]]></imageExpression>
   </image>

What am I doing wrong here?

Thank you for any help!

 

 



Post Edited by Miret Padovani at 04/07/09 04:24



Post Edited by Miret Padovani at 04/07/09 04:24
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...