Class SwingIconsDemoPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class SwingIconsDemoPanel
    extends JPanel
    A demonstration application.

    This demo is written up in the JFreeReport PDF Documentation. Please notify David Gilbert (david.gilbert@object-refinery.com) if you need to make changes to this file.

    To run this demo, you need to have the Java Look and Feel Icons jar file on your classpath.

    Author:
    David Gilbert
    See Also:
    Serialized Form
    • Constructor Detail

      • SwingIconsDemoPanel

        public SwingIconsDemoPanel()
        Constructs the demo application.
    • Method Detail

      • loadData

        protected void loadData​(URL sourceURL)
      • loadFromConfiguration

        protected URL loadFromConfiguration()
        Loads the URL of the Graphics Repository from the local configuration.
        Returns:
        the loaded URL or null, if the configuration did not hold an entry.
      • storeToConfiguration

        protected void storeToConfiguration​(URL url)
      • findFileOnClassPath

        public static File findFileOnClassPath​(String name)
        Returns a reference to a file with the specified name that is located somewhere on the classpath. The code for this method is an adaptation of code supplied by Dave Postill.
        Parameters:
        name - the filename.
        Returns:
        a reference to a file or null if no file could be found.