0
My Graphics Program does not run by showing no output why so
5 Respuestas
0
Post your code
0
import java.awt.*;
import javax.swing.JTextArea;
import javax.swing.*;
class abc extends JFrame
{
JTextArea ta;
abc()
{
Container c=getContentPane();
c.setLayout(new BorderLayout());
ta=new JTextArea();
c.add(ta);
}
public static void main()
{
abc j=new abc();
j.setSize(400,400);
j.setVisible(true);
j.setTitle("My First Frame");
}
}
0
here' the code
0
Try this way.... I think it may help..
JTextArea ta;
abc()
{
setSize(400,400);
setVisible(true);
setTitle("My First Frame");
Container c=this.getContentPane();
c.setLayout(new BorderLayout());
ta=new JTextArea();
c getContentPane().add(ta);
}
public static void main()
{
abc j=new abc();
}
0
It didnt work