This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Each position in a BorderLayout can only hold one Component. If you add two JButtons in a row to the NORTH position in a Container with a BorderLayout, then the second one replaces the first one, which is no longer in the the JPanel. This is why you only see the "Z"s. To fix your lovely program, so that the world may bask in its rightful greatness, you could create another JPanel using the default FlowLayout, and add all the JButtons to this JPanel; then add this JPanel to the original Container's "NORTH" position. [ October 09, 2003: Message edited by: Ernest Friedman-Hill ]