0
Why not do ??
package firsttest ; import javax.swimg.*; public FirstFrame extends JFrame { public FirstFrame() { setTitle ("QOU University "); setSize(20,20); setLocation(20,20); } } public class FirstTest { public static void main(String[] args) { JFrame frame= new FirstFrame (); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.show(); } }
4 Answers
+ 1
problem is syntax error like swimg-->swing, but let me give u advice dont use swing at all use javafx it is so much better
+ 1
ther are some syntax essors like swimg instead of swing. In the code playground graphical input is not supported.
0
!!
0
thank you all



