Import Javax.swing.jbutton;import javax.swing.jframe;import javax.swing.jpanel;import Javax.swing.JTextField; public class International extends jpanel{private static int width= 600;private static int height=600;private JButton bt;p Rivate JTextField tf;private JTextField tf2;public International () {init ();} public void init () {this.setlayout (null);//setfocusable (true); bt= new JButton ("button"); Bt.setbounds (10,10,100,30); This.add (BT); tf = new JTextField (); Tf.setbounds (100,10,300,30); This.add (TF); TF2 = new JTextField (); Tf2.setbounds ( 10,200,300,30); This.add (TF2);} public static void Main (string[] args) {JFrame frame = new JFrame ("interface"); International in = new International (); Frame.add (i n); frame.setsize (width,height); Frame.setalwaysontop (true); Frame.setdefaultcloseoperation (JFrame.EXIT_ON_CLOSE) ; Frame.setlocationrelativeto (null); Frame.setvisible (True);}}
Implementation of the interface