Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't go to design mode in NetBeans (jframe)

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?

like image 767
Borut Flis Avatar asked May 13 '13 06:05

Borut Flis


People also ask

What is Java Swing Application Design in NetBeans IDE?

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.

Is it possible to build a GUI using JFrame?

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?

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

How to create swing JFrame in Java?

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.


1 Answers

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.

like image 155
ollo Avatar answered Oct 13 '22 08:10

ollo