This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Netbeans GUI editor generating its own incomprehensible code
In Netbeans(older versions), there are two types of applications to choose from when you're starting a new project. Java Application and Java Desktop Application.
What are the differences between these two types?
EDIT :
In newer versions of Netbeans, the Java Desktop Application is gone and only Java Application is available. Does that mean they have converged the functionalities of those two types in to one?
Now I'm using Java Application to create programs with GUIs as described here. Is it the correct way to go about it regarding creating applications with UIs?
Java application means core java application with no ui. and java Desktop Application means application with ui using Swing. In java desktop application you can use the drag n drop tool to create UI
While the answers provided are all correct, I wish to add some details. The Java Desktop Application is more like a template for a Java Swing UI app. It provides the Main App, the Main View and the About Dialog by default. You can add all your UI components thru the Main View class.
Other than that it's quite similar to a regular Java App. Note that you can also create a Java Swing UI app by selecting the regular Java App template.
This is supported until NetBeans 7.0. Now its deprecated and developers are adviced to use the NetBeans platform to develop UI applications. But you can definitely continue to create Swing Apps if you'd wish.
Java Desktop Application is the java application with UI components, while Java Application represent an application with core java libraries.
Please note: This(Java Desktop Application project type) is dropped in newer versions(7+) of NetBeans.
Since it is dropped, you can imagine, it's not preferable.
Related
I have created a Swing application in Netbeans that is basically a chat system (between multiple clients and server using socket programming).
Now I wanted to run this application on a webpage. Is this possible without changing any code?
Now I wanted to run this application on a webpage. Is this possible without changing any code?
No. It would have to be a JApplet to be embedded in a web page, and applets have been effectively killed off. See Java Plugin support deprecated and Moving to a Plugin-Free Web.
On the other hand, a desktop application (based on a JFrame) can be launched from a link on a web page using Java Web Start.
Edit
Scrap that advice regarding JWS, apparently it too is being deprecated as of Java 9.
This question already has answers here:
Why can't I find Java desktop application in Netbeans 7.1
(4 answers)
Closed 9 years ago.
I want to make a Desktop Application in Net Beans.
Please help me as i am new to Net Beans to start developing a Java based Desktop Application.
I have Net Beans 7.1 but i cant find any feature which can help me start making a Desktop Application.
I found this below a bit link useful but my Net Beans IDE does not have any option under
Java as Java Desktop Application
http://netbeanside61.blogspot.in/2009/08/making-executable-desktop-application.html
You are using 7.1 and the tutorial is for 6.1.
The menu has changed, the reason: Why can't I find Java desktop application in Netbeans 7.1
But it doesn't really matter that much, at least in your case, just select Java > Java Application. You'll still have a GUI that will allow you to create windows and components by using your mouse.
For the purpose of learning, I recommend that you install the old Netbeans, so that you can follow the tutorial. As you gain knowledge, you'll be able to figure out things by yourself.
no need to take java desktop application,
create a java application, then you can create GUI in it
I have got an atleast start to my Question thanks to all who have commented & answered , still searching further to get something better.
This link helped me:
https://netbeans.org/kb/docs/java/javase-deploy.html
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Why can’t I find Java desktop application in Netbeans 7.1
I used to have the option to create a new "Java Desktop Application" in Netbeans 6.9.1. However, I can't find this option any longer in NetBeans IDE 7.2.1.
Is it still available?
The party line from the Netbeans project contributors is to use the Netbeans Platform. In the wizard look under Netbeans Modules.
The Swing Application Framework (SAF) that you're probably remembering has been abandoned.
Netbeans Platform seems reasonably good, but it represents a fairly big effort to learn its conventions and capabilties.
This article talks about BSAF, which is some level of continued support for SAF. However BSAF took a hit when Netbeans dropped the wizard and form edit capabilities that are part of SAF. The most recent development is the return of SAF/BSAF form editing as a plugin for the v7+ Netbeans environments. You can no longer generate a SAF/BSAF app with the app wizard. A workaround is to make a SAF application in 6.9.1 and then import it as needed to make new ones in 7.2+.
We are going to create a java standalone Desktop application. We are searching for the best solution for the presentation layer. I saw javaFX and really liked it, but I am a bit confused. Can it be used in standalone Desktop applications?
Can I use javaFX in my standalone Desktop app and also use css to style the Ui?
It is perfectly possible to use JavaFX in a standalone Desktop app and apply CSS styling to it.
In JavaFX's lingo, this is know as a "Standalone" or "Self-Contained" deployment.
You can even integrate it with Swing or SWT, if the need arises. Note, though, that it's not possible the other way round.
I'm building a Java application using NetBeans 7.0. The app is intended for use on Windows, so I guess the tool I'm really making most use of is Java Swing (for the cool, nifty screen elements).
My question relates to NetBeans' process of creating the various project types. The application I'm building is based on the "Java Desktop Application" template (?). My problem is that there seems to be a nice load of bloat built into that, and I can't figure out how to remove most of it without blowing up the app.
As a test, I created a "Java Application"project, but this has the opposite problem -- there's absolutely nothing built into the code, and I can figure out how to add anything. Specifically, a Java Desktop Application project created in NetBeans give me the ability to directly edit the screen layout like in Visual Studio. However, a Java Application does not appear to have this capability, I have no idea how (or even if) this can be addressed.
If I could start with a no-frills Java application, and add some capability to edit its layout and control the function of the screen elements (i.e. make it a windows application, I think), that would be just about perfect.
Does anybody have a suggestion for a minimal, but functional NetBeans application start point??
Thanks,
R.
If you start with a plain Java Application then as you realize you start with a bare bones type application. To add a GUI you can add New>JFRame Form. It adds a class that extends JFrame and Netbeans will recognize that it should open it in the visual editor for you.