I wish to divide my program into three particular sections/areas visible on the same program. The BorderLayout has its directions (NORTH, SOUTH, etc.). For example, I wish to include in the SOUTH section a particular form (like radio buttons, etc.). Do you use BorderLayout for this? What is the code to make use of it?
The Border Layout is the second is easiet Layout to use with Java, after the Flow Layout.
* Unlike the other Layout's you have to use set the layout using Fileds.
* if you have specified nothing in the NORTH, EAST, SOUTH, WEST then the CENTER uses the space.
public class KnowIslam extends JFrame
public void init()
button = new JButton("Islaam.com");
public static void main(String args)
KnowIslam app = new KnowIslam();
Read the tutorial linked above but don't believe the statements on how you should use GridBagLayout. I think that the biggest "a-ha!" moment for me with layouts was when I found out that you could nest JPanels in other JPanels, each using their own distinct layout and thus have the benefits of any and all the layouts in your GUI. Have fun and good luck.