AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Netbeans GUI editor vs. custom layout manager

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
PaulSchrum
Guest





PostPosted: Sat Jan 14, 2006 1:35 am    Post subject: Netbeans GUI editor vs. custom layout manager Reply with quote



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

Back to top
PaulSchrum
Guest





PostPosted: Sat Jan 14, 2006 2:55 am    Post subject: Re: Netbeans GUI editor vs. custom layout manager Reply with quote



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.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.