Re: How to edit the GUI source code?
hiwa wrote:
Arne Vajh=C3=B8j =E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8:
Andrew Thompson wrote:
cntc...@gmail.com wrote:
...the JAVA source code of a GUI programe and import them into
the NETBEANS.I can run the code in the IDE,but I can't edit the
interface of the programe.How can I do that?
NetBeans is sure capable of editing GUI's, (though I
detest it and don't use it).
....
I strongly suspect that the cause of the problem is
that Netbeans only permits you to edit the GUI
(typical JFrame classes) via the GUI Builder not
by editing the Java code behind it.
What?!?
That sure explains a problem I ran up against recently.
There is a project I am involved in, that was developed in
NetBeans. The GUI was (of course) developed in the
'Form Editor'. As it happens, we needed a change in the
GUI and the project owner 'strongly suggested' the
changes be done in the NB form editor.
I did the changes, but since looking at NB makes
me want vomit - I ducked into Eclipse and (shock horror)
edited the 'actual Java code'.
We now have a working version of the GUI, though
the negotiations to get it integrated into the project
will be ..interesting.
And to the OP - I think Hiwa had the best advice -
neither Eclipse nor NetBeans is a tool well suited
to learning Java. They offer very advanced abilities,
but get in the way of getting simple things done, as
you have just experienced.
Andrew T.