after compilling code JFrame does not appear
I'm using the Intelij idea platform.
I have the following code:
package GUI.test;
import javax.swing.*;
public class Ramka extends JFrame{
Ramka(){
    setVisible(true);
    setSize(100,100);
}
public void main (String[] args){
    new Ramka();
}
}
I expected to see a JFrame after compiling this code, but was nothing
appeared. What kind of problem can it be?
Also must admit, that i haven't possibility to run method "main".
InteligIdea propose me only to compile Ramka.java. After compilling
IntelijIdeay says, that compilation complited sucessfully, but thats all
and is nothing happened. In my previous exersises i allways ran method
"main".
 
No comments:
Post a Comment