These steps will allow you to create java executable that will run just by double clicking the file.
»Create JFrameForm with GUI swing components in a project in NetBeans IDE or Open a existing one.
»Run the file to check for any errors(Shift + F6).
»Now in the source code find the line public static void main(String args[]) {
» Copy the text under it till its closing brace.
» Now open the main class of the package in which the JFrameForm lies.
» In the main class find the same line as earlier and paste the text below it.
» Now Clean and build your main project
» Now locate the file (mostly in the dist folder of the Project).
» Double click the file to see it running…….!!!
//You can see a video tutorial for this on Videos Page
If this post helped you, just give your few seconds for sharing it and let others be helped too.