This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1076
    
  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.
 
jQuery in Action, 2nd edition
 
subject: Sinple GUI Program which uses the BorderLayout.
 
Similar Threads
White bars on bottom and top of JFrame
about object serialization
How to get this attached design using Layout Managers - sans GroupLayout
trouble with layouts
How can I get my temperature converter program to display negative numbers