Re: visual editor & gridbagLayout problem.
On May 19, 7:28 am, "Mr. X." <no_spam_please@nospam_please.com> wrote:
Hello.
I am using visual editor with eclipse.
You are in way over your head.
I suggest you get rid of the IDE you do not
know how to use and instead learn how to code
Java. After having done so, you might find you
can get the 'automagic' IDE to do what you want.
For some reason, I don't know,
the program refuse to handle with gridBagLayout.
Using the few code snippets you reported, I
came up with this simple code..
<sscce>
import java.awt.*;
class TestGBL {
public static void main(String[] args) {
GridBagLayout gbl;
gbl = new GridBagLayout();
Frame f = new Frame();
f.setLayout( gbl );
}
}
</sscce>
That compiles and runs cleanly here, with no
errors.
In future, I strongly recommend you submit
complete code examples, and copy/paste error
messages, since I had never heard error messages
quite like you quoted.
Also, a good group for Java beginners is
comp.lang.java.help.
--
Andrew T.
PhySci.org