Why doesn't the page appear? in java

package framex;

import javax.swing.*;
import java.awt.*;

public class FramEX extends JFrame{
      JLabel l1;
       JTextField T1,T2;
       JToolBar tb;
 public FramEX(){
       setSize(400,400);
       setTitle("first application");
       setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        ImageIcon IMG=new ImageIcon("photoa.png");
        l1.setIcon(IMG);
       l1=new JLabel("I'm first lable ");
       T1=new JTextField("enter",20);
       T2=new JTextField("non");
T1.setBounds(200,20,98,22);
T2.setBounds(100,20,98,22);
T2.setEditable(false);
tb.add(T1);tb.add(T2);tb.add(l1);
tb.setFloatable(true);

 }              
               

    public static void main(String[] args) { 
}}

Hey @afnanmahmoudabu!

Your code has a blank main method, so the Repl runs nothing when you run it.

2 Likes