Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sinple GUI Program which uses the BorderLayout.

 
Priyank Kalgaonkar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for Untitled1.png]
This is what my out is supposed to be.
 
Michael Dunn
Ranch Hand
Posts: 4632
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try something like this:


If you need pink and yellow areas to be of different sizes, try to apply a different LayoutManager for mainPane.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic