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 2007

Tip: Looking for answers? Try searching our database.

LayoutManager

Thread view: 
Chase Preuninger - 30 Dec 2007 20:11 GMT
I was just thinking that mabie it would be cool to write my own layout
manager.  What kinds of ideas do u guys have for it?
Daniel Pitts - 30 Dec 2007 22:12 GMT
> I was just thinking that mabie it would be cool to write my own layout
> manager.  What kinds of ideas do u guys have for it?
First idea: Don't.  See if what you want to do is possible with existing
layout managers.  I've tried to write LMs myself, and found it a
difficult task.

Second idea: Look at existing implementations, and try to recreate them.
That will give you a good idea of the complexities of implementing them.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Chase Preuninger - 31 Dec 2007 00:53 GMT
One Idea I had is a more dynamic version of GridLayout, but just more
simple than GridBag.  It is where different columns can have different
widths, and different rows can have different heights.  Could be used
to make forms.
IchBin - 31 Dec 2007 15:08 GMT
> One Idea I had is a more dynamic version of GridLayout, but just more
> simple than GridBag.  It is where different columns can have different
> widths, and different rows can have different heights.  Could be used
> to make forms.

Take a peek at JGoodies Forms layout manager. Personally I use this
instead of Sun's layout managers. Very dynamic..

http://www.jgoodies.com/downloads/libraries.html

-
Thanks in Advance...                             http://weconsulting.org
IchBin, Philadelphia, Pa, USA   http://ichbinquotations.weconsulting.org
_________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Roedy Green - 31 Dec 2007 12:43 GMT
On Sun, 30 Dec 2007 12:11:46 -0800 (PST), Chase Preuninger
<chasepreuninger@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>I was just thinking that mabie it would be cool to write my own layout
>manager.  What kinds of ideas do u guys have for it?

It is surprisingly easy.  See http://mindprod.com/jgloss/layout.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 31 Dec 2007 22:59 GMT
On Mon, 31 Dec 2007 12:43:58 GMT, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>It is surprisingly easy.  See http://mindprod.com/jgloss/layout.html

You are getting conflicting advice.  Writing a replacement for
GridBagLayout would be tough, but writing one for example to layout
components an a circle is quite easy.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Karsten Lentzsch - 31 Dec 2007 15:40 GMT
> I was just thinking that mabie it would be cool to write my own layout
> manager.  What kinds of ideas do u guys have for it?

Writing a custom layout manager isn't that difficult.
However, in the vast majority of design cases, one
of the existing layout managers or layout systems should
be able to implement the design you want or need.

If you have a design corner case check out the
ExplicitLayout which is one of the most powerful
layout managers (although it isn't always the most
useful LM).

-Karsten


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.