Thread: Frame problems
View Single Post
  #1 (permalink)  
Old 06-20-2007, 12:59 PM
gary gary is offline
Member
 
Join Date: Jun 2007
Posts: 8
gary is on a distinguished road
Frame problems
Hello again
I may be doing something stupid but here is my problem

when I create frames I normally use two classes
the main class which creates the frame and calls all componenets

I am trying to do this all in one file but with no luck

the code I am using is

Code:
import java.awt.*; public class myclass { public myclass() { // all the gui components } public static void main(String[] args) { Frame frame = new myclass(); frame.show; } }
But I get the error Incompatable type for declaration cant convert myclass to java.awt.Frame
Please help
Gary

Last edited by levent : 06-20-2007 at 01:06 PM.
Reply With Quote
Sponsored Links