Re: BoxLayout making component too big



Nomak wrote:

On Thu, 28 Apr 2005 21:25:49 GMT
"John McGrath" <ng@xxxxxxxxxxxxx> wrote:

See "How to Use BoxLayout" in the Java Tutorial.  Check out the part on
rigid areas, glue, and custom fillers.

http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html

well, i did, but when running the demo associated with this:

http://java.sun.com/docs/books/tutorial/uiswing/layout/example-1dot4/BorderLayoutDemo.java

the buttons have a "good" size, they don't fill all the panel.

By looking at the code, you can see that there isn't any Box.Filler or related.

So why is it working?

Since it is using BorderLayout, not BoxLayout?

--
-Aki "Sus" Laukkanen
"Älä multa kysy tai mä vastaan!"
"Don't ask me or I'll answer!"
.