Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Netbeans GUI editor vs. custom layout manager

Thread view: 
PaulSchrum - 14 Jan 2006 01:35 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.