97 How to create frame in Java awt by extending Frame class Atharva Satyendra Agrawal March 16, 2019 Atharva Satyendra Agrawal Code : import java.awt.*; class Test extends Frame { Test() { this.setVisible(true); this.setSize(300,400); this.setTitle("Coding Atharva"); this.setBackground(Color.RED); } public static void main( String args[] ) { Test f = new Test(); } } Output: Tweet Share Share Share Related Post