title: NoSuchMethodException <init>() when extending javafx.scene.chart.LineChart
body: <p>I am trying to extend <code>javafx.scene.chart.LineChart</code> in order to add some extra features.</p>
  
  <p>I have implemented the two constructors</p>
  
  <p><code>public LiveLineChart(Timeline animation, Axis&lt;Number&gt; xAxis, Axis&lt;Number&gt; yAxis)</code></p>
  
  <p>and</p>
  
  <p><code>public LiveLineChart(Timeline animation, Axis&lt;Number&gt; xAxis, Axis&lt;Number&gt; yAxis, ObservableList&lt;Series&lt;Number, Number&gt;&gt; data)</code></p>
  
  <p>My project compiles, however, when I run, I get this:</p>
  
  <pre><code>Caused by: java.lang.NoSuchMethodException: org.mypackage.LiveLineChart.&lt;init&gt;()
  at java.lang.Class.getConstructor0(Class.java:2971)
  at java.lang.Class.newInstance(Class.java:403)
  ... 20 more
  </code></pre>
  
  <p>If I try to implement a default (empty) constructor, I get a compile error:</p>
  
  <pre><code>no suitable constructor found for LineChart(no arguments)
  constructor LineChart.LineChart(Axis&lt;Number&gt;,Axis&lt;Number&gt;) is not applicable
    (actual and formal argument lists differ in length)
  constructor LineChart.LineChart(Axis&lt;Number&gt;,Axis&lt;Number&gt;,ObservableList&lt;Series&lt;Number,Number&gt;&gt;) is not applicable
    (actual and formal argument lists differ in length)
  </code></pre>
  
  <p>What am I missing to be able to get this to run? </p>