java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.pentaho.reporting.engine.classic.demo.ancient.demo.swingicons.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:
  • Constructor Details

    • SwingIconsDemoPanel

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

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

      public SwingIconsDemoTableModel getData()