Ciao a tutti,
ho un piccolo quesito da proporre
e la classe successiva usa la precedentecodice:package customized; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; public class JComponentManager extends MouseAdapter { ... }
la prima compila e tutto ok; la seconda nn va e mi dice:codice:package customized; public class CJRootPane extends javax.swing.JRootPane { JComponentManager c = new JComponentManager(this); public CJRootPane(){} }
CJRootPane.java:12: cannot find symbol
symbol : class JComponentManager
location: class customized.CJRootPane
JComponentManager c = new JComponentManager(this);
^
CJRootPane.java:12: cannot find symbol
symbol : class JComponentManager
location: class customized.CJRootPane
JComponentManager c = new JComponentManager(this);
^
2 errors
perché?

Rispondi quotando