US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Java Web Start

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Java Web Start

    Could JFreeReportResources.getIcon(String) be changed to something like this to make JFreeReport work under Java Web Start?

    public static ImageIcon getIcon(String filename)
    {
    URL in = ClassLoader.getSystemResource(filename);

    // Hack to make resource-loading work under Java Web Start
    if (in == null)
    in = JFreeReportResources.class.getResource('/' + filename);

    if (in == null)
    {
    Log.debug ("Unable to load file: " + filename);
    return new ImageIcon(new BufferedImage (BufferedImage.TYPE_INT_RGB, 1, 1));
    }

    Image img = Toolkit.getDefaultToolkit().getImage(in);
    return new ImageIcon(img);
    }

  2. #2
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Java Web Start

    Hi,

    ths change is in the cvs since Jul-28, just checkout the latest sources from sourceforge's cvs to get Webstart working.

    Have more fun,
    said Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •