For Programmers: Free Programming Magazines  


Home > Archive > Java Help > February 2006 > Any Source Code or Web site demonstrate the effect of gridwidth and gridheigh of Grid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Any Source Code or Web site demonstrate the effect of gridwidth and gridheigh of Grid
hon123456

2006-02-20, 7:57 am

Dear all,

I want to make clear how the outlook of Gridbaglayout will
change according to different value of gridwidth and gridheight of
GridBagConstraints. Please suggest some source code for me so that I
can modify the source code of the value of gridheight and gridwidth,
thus I can find out the change of the outlook according to different
value of gridheight and gridwidth. Or please suggest some website for
me to investigate about the gridwidth and gridheight of
GridBagConstraints.


Thanks.

Bart Cremers

2006-02-20, 7:57 am

http://java.sun.com/j2se/1.5.0/docs...dBagLayout.html

hon123456

2006-02-20, 7:57 am

Thanks for your reply. But I have read about the Sun's Doc. But it is
rather ambiguous.

Thanks.

Paulus de Boska

2006-02-20, 7:57 am

http://java.sun.com/docs/books/tuto...LayoutDemo.java
explained in
http://java.sun.com/docs/books/tuto...ut/gridbag.html

A lesson about GBL, not gridwidth/height, but you can use the code as a
starting-point to experiment, though :
http://javalessons.com/cgi-bin/ui/j...d=gbl&sid=ao789
---
Paul Hamaker, SEMM
http://javalessons.com

TheFullSP

2006-02-20, 7:00 pm

Save yourself some heart ache.. GridbagLayout can be time consuming
Check out JGoodies (efficient Swing Design Framework) we use this
extensively
http://www.jgoodies.com/

Roedy Green

2006-02-21, 7:03 pm

On 20 Feb 2006 02:56:09 -0800, "hon123456" <peterhon321@yahoo.com.hk>
wrote, quoted or indirectly quoted someone who said :

>Thanks for your reply. But I have read about the Sun's Doc. But it is
>rather ambiguous.


see http://mindprod.com/jgloss/gridbaglayout.html
and follow the link to GridBagger
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com