I am pretty new to Java, Swing, and Netbeans. I need help
understanding a problem, which I describe here.
I have class LMtextBlock extends javax.swing.JPanel and an instance of
that class, primaryTextBlock. The textBlock is a component of
javax.swing.JScrollPane LMscrollPane;
In the textBlock I use my own layout manager. (This is essential.)
Whenever I open the Frame (which contains these) in Netbeans' Design
View, I get a message stating:
"Errors occured in loading the form data. It is not recommended to use
. . ."
I can post this whole message if anyone requests, but it basically says
"There is a problem and we recommend you don't edit this thing until
you fix it." When I then select "View Only" or "Allow editing," it
reveals another message saying:
"Error in loading component:
[JFrame]->LMscrollPane->primaryTextBlock
No layout support was found.
Layout information for this container cannot be loaded.
I guess my first question should be, am I interpreting the message
correctly? Is it complaining because I am using a custom layout
manager?
(It should be noted that I did not go through Netbeans to add the
layout manager. I could not see how to do that, so I add it
"manually.")
My other question is, is there anything I can do about this? If I have
to add it through Netbeans interface, how do I make Netbeans aware of
my custom layout manager so I can add it the way it wants? Or, if I
need to be asking a different question, please help me know what that
should be (and then what the answer is, of course.)
Thanks to anyone who responds.
- Paul Schrum
PaulSchrum - 14 Jan 2006 02:55 GMT
Never Mind. I figured out how to add my custom layout manager to my
own pallete. When I did that the error message stopped coming up.
Problem Resolved.