wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Calculator problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calculator problem" Watch "Calculator problem" New topic
Author

Calculator problem

Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
I'm trying to make a calculator that has a text field in top and then two pnels next to each other below it. Right now, it puts all three right under one another.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This is because the containnig panel uses the default FlowLayout. If you force that to be another such as GridLayout or BorderLayout, using setLayout, you can choose how they are laid out. You are nearly there ...


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calculator problem