wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Sinple GUI Program which uses the BorderLayout. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Sinple GUI Program which uses the BorderLayout." Watch "Sinple GUI Program which uses the BorderLayout." New topic

Sinple GUI Program which uses the BorderLayout.

Priyank Kalgaonkar

Joined: Sep 02, 2012
Posts: 1
I need to write a Java program to display a screen like the following screen, which uses the BorderLayout.

This is what my output is supposed to be:
or View Here: https://www.dropbox.com/s/u1pqz588b8cofxo/Untitled1.png

I tried writing the code for this program. But I am not able to do so. Following is my code:

Please can you help me get the output like the one in the attached picture file? Thanks for your help. Much appreciated!


Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
another time waster

Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1076

Hi Priyank,
Welcome to the Ranch!

Please BeForthrightWhenCrossPostingToOtherSites.

Click on the link to understand what it is and how it can help everyone help you.

Aleksey Vladimirovich
Ranch Hand

Joined: Sep 05, 2012
Posts: 56
Try something like this:

If you need pink and yellow areas to be of different sizes, try to apply a different LayoutManager for mainPane.
It is sorta covered in the JavaRanch Style Guide.
subject: Sinple GUI Program which uses the BorderLayout.