JFrame is only used for desktop application, however you can use a frame as a child of another class file, just see this example posted in and its comment.
http://forum.java.sun.com/thread.jspa?threadID=687138&tstart=0 - written 5 years, 11 months ago