java setVisible(true) class that implements same interface
<p>I have some classes that extends Jframe and  implements same interface. </p>

<pre><code>public class classe extends JFrame implements Elenco{
@Override
   public void prova(){
   .......
   }       

}
</code></pre>

<p>In another class i have:</p>

<pre><code> public class Selezione{
 Elenco e;
 e.Prova();
 }
</code></pre>

<p>In this class how can i show class that implements interface elenco?<br>
i can't do e.setVisible(true);</p>

<p>I try this solution but it doesn't work</p>

<pre><code> public class Selezione{
Elenco e;
 public Modifica(){
 e.Prova();

 }

public void Transfert(JFrame frame) {
   frame = (JFrame) e;  
</code></pre>

<p>}</p>