Hello,
Respected sir I am ganesh Patekar.
when i type java GUI code in notepad and it compiles in command prompt and alos runs but after running it hangs and i cant close GUi frame and cant type anything in command prompt please tell me what to do
example of program:-
import java.awt.*;
class simple1 extends Frame
{
Panel p1;
List l1,l2,l3;
public simple1()
{
p1= new Panel();
l1= new List();
l2= new List(3);
l3= new List(3,true);
add(p1);
p1.add(l1);
p1.add(l2);
p1.add(l3);
l1.add("Om");
l1.add("Om");
l1.add("Om");
l2.add("Om");
l2.add("Om");
l2.add("Om");
l3.add("Om");
l3.add("Om");
l3.add("Om");
setSize(400,400);
setVisible(true);
}
public static void main(String args[ ])
{
simple1 s1= new simple1();
}
}
Respected sir I am ganesh Patekar.
when i type java GUI code in notepad and it compiles in command prompt and alos runs but after running it hangs and i cant close GUi frame and cant type anything in command prompt please tell me what to do
example of program:-
import java.awt.*;
class simple1 extends Frame
{
Panel p1;
List l1,l2,l3;
public simple1()
{
p1= new Panel();
l1= new List();
l2= new List(3);
l3= new List(3,true);
add(p1);
p1.add(l1);
p1.add(l2);
p1.add(l3);
l1.add("Om");
l1.add("Om");
l1.add("Om");
l2.add("Om");
l2.add("Om");
l2.add("Om");
l3.add("Om");
l3.add("Om");
l3.add("Om");
setSize(400,400);
setVisible(true);
}
public static void main(String args[ ])
{
simple1 s1= new simple1();
}
}