Net Beans Layout problem

K

Ken Kafieh

I am using the NetBeans IDE. I was experimenting with layouts. But I
eventually just used the "flow" layout. However, for some reason when I run
the program from DOS, its still looking for the "AbsoluteLayout". The code
is automatically generated by the form editor. I keep making sure the the
layout is set to "flow" . But when I look at the source, there are
references to AbsoluteLayout. What am I missing? Is there a place in the
Frame properties that I missed? Something else?

The source also has references to the flow layout which I actually want to
keep. I have pasted the sections of code that contain the "Absolute Layout"
there are only two references.

private void initComponents() {
absoluteLayout1 = new org.netbeans.lib.awtextra.AbsoluteLayout();
flowLayout1 = new java.awt.FlowLayout();
...

AND...

// Variables declaration - do not modify
private org.netbeans.lib.awtextra.AbsoluteLayout absoluteLayout1;
private java.awt.FlowLayout flowLayout1;


These sections of code are located in "read only" blocks that I cannot edit
within the Net Beans editor. and this code is automatically regenerated
whenever making changes to the form.
 
S

Sudsy

Ken said:
I am using the NetBeans IDE. I was experimenting with layouts. But I
eventually just used the "flow" layout. However, for some reason when I run
the program from DOS, its still looking for the "AbsoluteLayout". The code
is automatically generated by the form editor. I keep making sure the the
layout is set to "flow" . But when I look at the source, there are
references to AbsoluteLayout. What am I missing? Is there a place in the
Frame properties that I missed? Something else?
private void initComponents() {
absoluteLayout1 = new org.netbeans.lib.awtextra.AbsoluteLayout();
flowLayout1 = new java.awt.FlowLayout();

What really matters is the invocation of Container#setLayout and you
haven't provided that code...
All you've posted are the variable declarations and assignments.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top