• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems on making desktop application using java

 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i make a desktop application when org.jdesktopapplication package doesnt exist. i already checked my libraries. the specific swing library is inexistent
 
Darryl Burke
Bartender
Posts: 5132
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off, org.jdesktopapplication isn't a Swing (not 'swing') package or library. Second, it isn't necessary for creating a desktop application.

I fail to understand your problem.
 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just cant make a desktop application whenever i built it in netbeans or built it in cmd it just shows nothing. do i have to put someting in command line arguments? i just dont know how to do it
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you go through the Swing tutorial and start building GUIs starting with the simplest screen.
 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i already looked there i even tried to learn to swing manually. i can already make an application with swing manually but if i have to run them i have to press shift F6 in netbeans. now i want to learn how to deploy them in a distributable manner and i do not know how to do it please help what do i lack? am i doing something wrong?. what is it that org.jdesktopapplication have that when its built it runs unlike in a regular build it wont run
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have gone through the tutorial and are able to build and run Swing applications, then you would have found that there is no 'org.jdesktop' stuff there. So, I don't understand the question about that.

Shift + F6 is just a shortcut in the NetBeans IDE to run the 'current' file which has a main method. It is same as executing the command line 'java <<MainClassName>>'.

To distribute this application, you need to build an executable jar file. You can learn all about jar files in this tutorial
 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahhhh ty ty i havent read that page ty for the link
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic