The File Templates dialog displays the source code of the form. To create a File Template from a GUI formġ.Create a GUI form or open it in the GUI Designer.Ģ.On the Main menu, choose Tools | Save File as Template. Generate main() method that creates and shows dialog. I could go and copy and paste something from the internet, but my interest here is in knowing whether the tool can automatically be used to build a GUI, with a workflow as simple as other RAD-style GUI builder tools, including NetBeans, which is the java tool I am most comfortable using, or Delphi, which is my main everyday tool, which is Pascal based, rather than Java.ġ.On the main menu, choose File | New, as described in the section Creating Files.ģ.Specify the name of the new form, and select the layout manager.Ĥ.Check the option Create bound class, and specify the bound class name. I know enough java to know that the basic "GUI app skeleton code" is not being auto-generated by the IDE. Where I'm currently stuck is when I tried to build and run my empty project with an empty form in it, and I get to some kind of "Run" target configuration screen, and I tried clicking the icon, and adding "MyForm01" which is the empty swing form I created, and it says in a dialog box "MyForm01 is not acceptable". I have done a bit of googling and reading the docs, but I haven't found much about using IntelliJ IDEA to build a GUI application in Java. I am trying to understand the features and capabilities of IntelliJ IDEA, and it seems strong as a very fast and efficient editor and debugger and build system GUI wrapper around the ANT build system, but I was wondering if there are more "RAD" features that I have merely overlooked. But then, that lacks any of the usual Java code that you would expect it to have, to open up that form and show it as an application. There is a new project wizard in the IntelliJ IDEA IDE, but it only seems it can create a blank project, and then I can manually add a form to it. In many other IDEs I have used there is a way to click once, and get a new "new Gui project", and I usually expect it in the "File -> New Project" wizard or something, comparable. I have created a new project using the Create New Project Wizard, by choosing "create project from scratch" but it's completely empty (no java classes at all, so I manually created a new swing form inside the empty project).
0 Comments
Leave a Reply. |