GUI-Designer HowTo?
Where can I find a HowTo for a beginner how to use the Gui-Designer of Intellij? I come from Netbeans and it is very difficult to understand the workflow here. I also saw the demo on the intellij-homepage, but it wasn't helpful. I hope you can understand my approach and can help me.
请先登录再写评论。
Hello Claudio,
The demo is the most beginner-oriented learning material that we have. Why
wasn't it helpful? Do you have any specific questions?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
yes I have , you know I have the problem that the IDE does not generate the code which is needed to start the app. For example, I have 2 classes made for testing the GUI-designer of Idea, the one is the main-app-class where I check for example the OS and the other is the form. The form-class extends "awt.Component" .Well so far so good, but when I say in the main-class "gui.setVisble(true)" nothing happens. I get also no errors through compiling. You know I'm relatively new in Java with the programming of GUIs and there I had in Netbeans a reliable GUI-designer, which generated for me all the needed code to start the gui with for example "gui.setVisble(true)".In your demo is no code shown what must be added to start the gui, you say just press "ctrl+insert" and the IDE generates code, but when I press those keys nothing happens . What I need is for example the files you used in your demo to see what parts of code are needed to be add by me to start the gui.I hope you can understand my approach, because my English is not so good. Best regards,Claudio
Hello Claudio,
The correct shortcut to generate the app initialization code is Alt-Ins,
not Ctrl-Ins.
=
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
ok sorry, I thought it was "ctrl+ins", but you were right it was "alt+ins". But I get just a kind of submenu with some proposals like "constructor" (which I already have), "getter", "setter", etc. My Form needs nothing of them, so I thought I will probably need the option "Form main()". But when I choose this option I get an error: "The form bound to the class does not have a valid binding for the root cpomponent". What do I wrong and what means that failure? I will start today a new project and I will just make first a gui-form-class, so I can see maybe where my fault was.
Hello Claudio,
What does the error say?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
The failure says:
"The form bound to the class does not have a valid binding for the root component"
Hello Claudio,
You need to bind the top-level JPanel of your form to a field. (Open the
UI Designer, select the top-level panel and specify some value in the "field
name" field for it.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"