Using Gridlayout, i can add canvasses (with pictures/drawings etc) no problem, but when I use GridBagLayout, I cannot get the canvas (or even a space on screen where the canvas should be) to appear. Any Ideas ?
Thanks for response. Yes I had set constraints, and I thought I had solved the problem but not so ! Even on the simplest of design, say 2 Rows, if I change one to an image, then it disappears. This does NOT happen if I use GridLayout, and it doesn't make any difference if I add the image as a component of the GridBagLayout or of a Panel. Thanks [This message has been edited by Chris Felton (edited August 16, 2000).]
Chris Felton
Greenhorn
Joined: Aug 11, 2000
Posts: 6
posted
0
Sorted ! I looked through some tutorials mentioned on the javaranch site and found one that mentioned that in some layouts, images are resized, and can be invisible, unless their size is set by the method that is doing the drawing !!!