package test1; import javax.swing.JFrame; public class eventMain { public static void main (String[] args) { eventMain evMainObject = new eventMain(); evMainObject.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); evMainObject.setSize(350,100); evMainObject.setVisible(true); } }
These are the errors that I get:
The method setDefaultCloseOperation(int) is undefined for the type eventMain
The method setSize(int, int) is undefined for the type eventMain
The method setVisible(boolean) is undefined for the type eventMain
1.4m articles
1.4m replys
5 comments
57.0k users