Witam,
Dopiero zaczynam zabawę z javą i chciałem zrobić gui i kiedy chce importować klasę JFrame to jej nie mam
import javax.swing.JFrame;
public class MojeOkienko extends JFrame;
{
public static void main(String[] args)
{
}
}
Robię to w ecplipse i wywala mi taki błąd
Multiple markers at this line
- Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files\Java
\jre8\lib\rt.jar
- The serializable class MojeOkienko does not declare a static final serialVersionUID field of type long
- Syntax error on token "JFrame", { expected after this token
- JFrame cannot be resolved to a type
i nie wiem jak to naprawic.