Netbeans GUI editor generating its own incomprehensible code.

Posted by WarDoGG on Stack Overflow See other posts from Stack Overflow or by WarDoGG
Published on 2010-04-01T15:21:38Z Indexed on 2010/04/01 15:23 UTC
Read the original article Hit count: 399

Filed under:
|
|
|

When creating a new project in netbeans, if i select JAVA Desktop application, it creates some code which I DO NOT RECOGNISE AT ALL as what i had learnt in swing.

It imports packages such as :

org.jdesktop.application.SingleFrameApplication;

also, the declaration for main() looks like this :

public static void main(String[] args) {
            launch(DesktopApplication2.class, args);
        }

This really does not make any sense to my knowledge of JFrame, JPanel etc..

If i try to code a netbeans application from scratch, i can write my own swing app BUT I CANNOT FIND THE GUI EDITOR.

  • How do i bring the GUI editor when creating java application from scratch ?
  • Can anyone explain to me this org.jdesktop.application.SingleFrameApplication and other classes ?

Please help. This is really frustrating.

© Stack Overflow or respective owner

Related posts about netbeans

Related posts about java