hi
i m writing java in notepad. it worked well but my problem is that i want to display my results on frame. i m importing the package "javax.swing.JF rame" for this purpose.
im writing these 2 statements for container
Container c=getContentPan e();
c.setLayout(new XYLayout());
but its not working. its giving an error that "return type is required" at the last statement. how can i overcome this problem???????
thanks
i m writing java in notepad. it worked well but my problem is that i want to display my results on frame. i m importing the package "javax.swing.JF rame" for this purpose.
im writing these 2 statements for container
Container c=getContentPan e();
c.setLayout(new XYLayout());
but its not working. its giving an error that "return type is required" at the last statement. how can i overcome this problem???????
thanks
Comment