How to use a GUI Form?
Ok! I have clicked here and there and have now some kind of form in the UI designer, but how do I now use it from other classes?
If I right-click on the form-file, there is no "compile" and compiling the whole package won't generate a class from the form.
And how do I add other controls to the palette?
请先登录再写评论。
I never said it is good, it just better in the mean time, and I hope that idea will improve as well. I don?t even talk about all the bugs, because it is EAP version, but the basic approach of NetBeans is more appealing to me. You design a black box using magic tools and then you interact with it using getters and setters. What is the added value of having all this binding stuff anyway?
Vladimir Goncharov wrote:
On the contrary I find the binding feature and the whole concept to be very cool
even in this first version.
What I need from a decent gui builder is to nicely layout my components and do
not mess up with my code. That's exactly what this builder does. And yes I will
feed the components with data myself, 'cause it's the most natural way of doing
gui (well at least for me). What else do you need?
--
Dmitry Skavish
-
Boston, MA, USA
tel. +1 781 910-3810
http://www.jzox.com
http://www.flashgap.com
1. What is the break layout ? Does not look like its doing anything when I
press it.
2. How do I change the layout of a panel ? apart from creating a new panel
and dragging the components over to the new one ?
-Dash.
"Dmitry Peshehonov" <dyoma@intellij.com> wrote in message
news:bc4b9h$p35$1@is.intellij.net...
see
>
>
>
>
On Tue, 10 Jun 2003 17:38:44 +0400, Dmitry Peshehonov wrote:
>> 1. Hitting "run" on the tool bar after an edit causes a null pointer
>> exception when running, but doing a rebuild, then run, works.
>>
Added.
I noticed this. What could be handy would have some GUI-Intention
Actions, maybe a wee lightbuld popping up in the middle of the design
area, with say "Surround JTable with JScrollBar".
Actually - just added to tracker as a feature request ;)
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate
On Tue, 10 Jun 2003 15:40:33 -0400, Robert wrote:
You can - you just need to include idea.jar ( sadly its a HUGE jar which
really needs to be broken up ).
In the bound class, have a constructor that calls super(), IDEAs byte code
manipulation hits just after this.
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate
On Tue, 10 Jun 2003 19:52:35 +0000, Vladimir Goncharov wrote:
Actually - I wish you WOULD talk about the bugs, if you have problems,
theres no point NOT telling anyone - how else will they get fixed...
One advantage - on a large form with say 20 or more JLabels which are
never actually used, you don't bind them - you don't have 20 or more
unused/unwanted/intheway JLabel declarations. You only bind the things
you actually want/need to use.
I think its a good way of handling it.
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate
On Tue, 10 Jun 2003 16:15:51 -0400, Dmitry Skavish wrote:
One thing that struck me with IDEAs GUI Builder - is that its NOT a form
designer as such. its a component layout tool.
That provides you a bound control ( JPanel at the top ), which can then be
inserted into ANY other embeddable control, JFrame, JScrollPane,
JSplitPanel etc. etc. etc.
Makes for building up small parts of the ui in distinc pieces possible.
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate
To set up a layout you select ui components you want by holding down
Ctrl button and clicking on each of them. After that you click on one of
the available layout options: Lay Out Horizontally, Lay Out Vertically,
Lay Out in a Grid. Break Layout button simple breaks existing layout.
/kesh
Debabrata Dash wrote:
>>All JPanels should have layout set.
>>To create a form add there some components placing them as you'd like to
>>them (not very precisely). Then select them all and press 'Lay Out In a
>>Grid' button. This will create a JPanel with layouted componets.
>>
>>--
>>Best regards,
>>Dmitry Peshehonov
>>JetBrains, Inc, http://www.intellij.com
>>
>>"Develop with pleasure!"
>>"Tom Schreiber" <fftmc@gmx.net> wrote in message
>>news:bc46br$hu6$1@is.intellij.net...
>>
>>>hmmm, I always get the following compiler-message:
>>>
>>>Error: C:\wrk\test\src\ui_form1.form: There are panels with XY layout
>>>
>>>
>>>Best regards,
>>>Tom Schreiber
>>>
>>>
>>
>>
Mark Derricutt wrote:
>>What I need from a decent gui builder is to nicely layout my components
>>and do not mess up with my code. That's exactly what this builder does.
>>And yes I will feed the components with data myself, 'cause it's the most
>>natural way of doing gui (well at least for me). What else do you need?
yep, exactly. you drop some components you need into a panel, then lay them out.
then you bind it to some class. I suppose you can bind several different
panels/form to one class. this way you create your building blocks to use later.
then in this class you define instance variables which you need (bound to
controls) and show the gui. you can even manually construct more complex or
dynamic gui from these building blocks. IMHO very simple, cool and manageable.
--
Dmitry Skavish
-
Boston, MA, USA
tel. +1 781 910-3810
http://www.jzox.com
http://www.flashgap.com
I used only two GUI builders in my programming career: Microsoft Resource
Editor from MSC 4.0/5.0 for Windows, and Delphi. So far, IDEA GUI builder
seems closer to "lets have a window proc and a resource and a wizard for
binding resources to objects", than to "create form file, drop the control
and use its properties".
I just loved how easy it was in Delphi. You can use the class which
represents Windows control, and if you need something fancy, you just get
the window handle and voila! do whatever you want. Brilliant.
I never used Swing, sorry.
About the controls that you do not want to interact with (and bind). What
are they? Labels? This is exactly why VCL has labels, which are not Windows
controls.
Anyway, should download 823 to try myself now :)))
"Dmitry Skavish" <skavish@usa.net> wrote in message
news:bc5h90$vkk$1@is.intellij.net...
most
be
>
them out.
later.
>
or
manageable.
>
>
On Tue, 10 Jun 2003 18:05:07 -0700, Michael Jouravlev wrote:
The main problem I had with Delphi eventually was that with complex guis,
it became a pain to rework them, and the ease in which it let you simple
"drop a button on, write some code in its event" made for tightly coupled
code. It didn't really lend itself toward writing code that was separated
out in a clean fashion.
That being said, Delphi still kicks arse.
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate