aspose file tools*
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
Author

Sinple GUI Program which uses the BorderLayout.

Priyank Kalgaonkar
Greenhorn

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!



[Untitled1.png]

Michael Dunn
Ranch Hand

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

http://www.javaprogrammingforums.com/whats-wrong-my-code/17482-sinple-gui-program-uses-borderlayout.html
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

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.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sinple GUI Program which uses the BorderLayout.