Console in Bingo Game

Sir/Ma’am,
I’m creating a console for my bingo project, but how can i place the bingo card in my console?

Here’s my code :

import java.io.;
import java.awt.
;
import java.awt.event.*;

public class try4 extends WindowAdapter implements WindowListener, ActionListener, Runnable {

    private Frame f;
    private TextArea textArea;
    

      public try4() {

        f = new Frame("Java Console");
        


        Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize=new Dimension((int)(screenSize.width/2),(int)(screenSize.height/2));
        int x=(int)(frameSize.width/2);
        int y=(int)(frameSize.height/2);
        f.setBounds(x,y,frameSize.width,frameSize.height);
    f.setLocation(x, y);
        f.setBackground(Color.LIGHT_GRAY);
    textArea=new TextArea();
        textArea.setEditable(false);
        
        Button button=new Button("CLEAR");
                    
        Panel panel=new Panel();
        
  
        panel.setLayout(new BorderLayout());
        panel.add(textArea,BorderLayout.CENTER);
        panel.add(button,BorderLayout.SOUTH);
        
        f.add(panel);
        
        f.setVisible(true);            
        f.addWindowListener(this);            
        f.setResizable(false);

        boolean resizable = f.isResizable();





        button.addActionListener(this);
            

    System.out.println("Test ko lang.." + new java.util.Date().toString()); 
}


  public void run() {}

public void actionPerformed(java.awt.event.ActionEvent actionEvent) {}    

public synchronized void windowClosing(WindowEvent evt)
{
        f.setVisible(false); 
        f.dispose();
}
    
public static void main(String[] arg) throws IOException
{
    new try4();
}

}

Please do not dublicate your posts. Your question will be noticed anyway. And I would say your question belongs in the Newbie forum, not here.