I am building a GUI using swing Jframe. I am using netbeans, because it has this nice interface that allows you to create your GUI just by clicking. I once saved just the Java file of the Interface. Now I want to use this file again and it works fine, when I just add this file to a package inside a project. But I cant go to the design view anymore, the option is not available.
Does anyone know how to enable the design view?
Looking at it there is no .form file. Any idea how to compile this file?
This post explain about Java Swing Application Design in NetBeans IDE. When you want to create an application in java with fast and easy way, you can use NetBeans IDE. where you can easily drag drop controls (Applets) into your application.
5 0 I am building a GUI using swing Jframe. I am using netbeans, because it has this nice interface that allows you to create your GUI just by clicking. I once saved just the Java file of the Interface. Now I want to use this file again and it works fine, when I just add this file to a package inside a project.
How to Create New Project in NetBeans: First of all when you open Netbeans, you find that start windows has been opened. ➤ Just find the “ File ” menu and select and press “ New Project… ” or directly press on this icon button from toolbox as we mention following. Create New Project Process
If you want to create Swing jFrame: ➤ Just right click on your “ Packages ” like “ javaapplication1 ”. ➤ From Right click’s drop down menu list, select “ New… ” option. ➤ When you focus on it, it will again show you sub menu list, just find “ jFrame Form… ” and select it.
You can recreate the .form file from the class. Please see here: http://wiki.netbeans.org/FaqFormGeneratingFormFile
If you move / copy your class you also have to copy the form file since it's not recreated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With