简体   繁体   中英

Show NetBeans design view of copied code

I'm total newbie in Swing. I created new project and there I created new JFrame Form. Into this file I copied some tutorial code of GUI(Chess board). Everything works, i can build and run. The problem is when I try to left-click on the name of the file and choose Editors->Design it shows me empty Frame. Is there any way how to fix this(it's more intuitive to operate with design view then in code)

I understand what you mean. Besides the (FormName).java file, you also need the original (FormName).form file to be copied into the src folder. Without it, there is no way for the IDE to translate the code to the design enviroment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM