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 / GUI / December 2006

Tip: Looking for answers? Try searching our database.

Creating custom LayoutManager in NetBeans?

Thread view: 
Juha Laiho - 30 Dec 2006 21:27 GMT
Hello,

does anyone have experience on creating and using a custom LayoutManager
in NetBeans (5.5)? What needs to be written in addition to the actual
LayoutManager class in order to have NetBeans accept it?

Thanks,
Signature

Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
        PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)

Andrew Thompson - 31 Dec 2006 01:26 GMT
...
> does anyone have experience on creating and using a custom LayoutManager

Yes.

> in NetBeans (5.5)?

No.  (well, not me)

>...What needs to be written in addition to the actual
> LayoutManager class in order to have NetBeans accept it?

I thought it just needed to be imported, unless you
are referring to using it in the 'form dezigner' or whatever
the NetBeaniacs call it.

But.. are you sure you need a custom layout at all?
Had you considered/tried *nested* (core ) layouts
instead of a custom layout?

Andrew T.
Juha Laiho - 31 Dec 2006 09:12 GMT
"Andrew Thompson" <andrewthommo@gmail.com> said:
>...
>> does anyone have experience on creating and using a custom LayoutManager
[quoted text clipped - 11 lines]
>are referring to using it in the 'form dezigner' or whatever
>the NetBeaniacs call it.

That exactly is the pain point.. and it looks like, now that I have also
spent some time reading the NB mailing list archives, that this is not
necessarily trivial, and that the NB interface for importing custom layout
managers does change from time to time...

>But.. are you sure you need a custom layout at all?
>Had you considered/tried *nested* (core ) layouts
>instead of a custom layout?

My target is a layout in the form of a circle (or an arc), and at
least so far I couldn't get an idea on how to use the regular layout
managers for that.
Signature

Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
        PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)



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.