Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Using a JTree in JFreeReport

  1. #1

    Default Using a JTree in JFreeReport

    Hi,

    Does anyone know how to display a JTree in a JFreeReport? Using the API is preferable.

    Thanks,
    Paul

  2. #2

    Default Please help...

    None of those big brains out there can give me a hint?

    Is there something already written that I can use? Do I have to make my own table model? That's what I'm doing now but it's a royal pain and I'm losing years off my life doing it...

  3. #3
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Hi,

    you can display a JTree as an image or drawable - but nothing (except the already mentioned transformation into a TableModel) will allow you to use the TreeModel as datasource for a report tool. That solution has the limitation that once your tree is bigger than a page, it gets cut after the first page. And all you get is an image of an JTree on paper - I guess that's not realy what you want.

    Reporting is traditionally based on denormalized tables, only very few tools support tree structures (and the only one I could name would be "Windward Reports").

    Regards,
    Thomas

  4. #4

    Default

    thanks, thomas.

    i put it in a table model but i've got columns that contain both strings and images. is there a function to check to see if the value is an image, print an image, else print a string?

    thanks again,
    paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.