2

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 this 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?

Flexo
  • 87,323
  • 22
  • 191
  • 272
MoienGK
  • 4,544
  • 11
  • 58
  • 92
  • 3
    `org.jdesktop.application.SingleFrameApplication` -> it's not standard swing but a jdesktop component. – Thomas Sep 21 '11 at 08:53

1 Answers1

4

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

Mansuro
  • 4,558
  • 4
  • 36
  • 76