I have a basic understanding of Java Swing, I know about JFrame
and JPanel
. the problem is : Yesterday I started to write a Simple Desktop Application in Netbeans
, I created a SingleFrameApplication, Netbeans created few classes for me one of them that contained main method was public class ShamsApp extends SingleFrameApplication
and the other which was a view class public class ShamsView extends FrameView
. Everything was fine until I tried to add a new JPanel to my application, at that point i found out that I can't add t开发者_JS百科his JPanel
to any of these classes, because none of them is a JFrame
instance , so the questions raised, what are FrameView and SingleFrameApplication anyway? are they standard Swing JComponents? is it appropriate to ask questions like JPanel Vs FrameView
? Or it is nonsense? Would you please enlighten me and future googlers?
SingleFrameApplication is a part of the swing application framework, you can find all you want to know about it here if you want to play with the JFrames in FrameView, you can use the getter and setter
精彩评论