0% found this document useful (0 votes)
23 views1 page

SS7-java-34-borderlayout

This document contains a Java applet code that demonstrates the use of BorderLayout. It initializes five buttons positioned at the North, South, East, West, and Center of the applet. The applet is set to a width and height of 500 pixels.

Uploaded by

shashank220906
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

SS7-java-34-borderlayout

This document contains a Java applet code that demonstrates the use of BorderLayout. It initializes five buttons positioned at the North, South, East, West, and Center of the applet. The applet is set to a width and height of 500 pixels.

Uploaded by

shashank220906
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Input:

import java.awt.*;
import java.applet.*;
/*<applet code = exp3_3.class width =500 height=
500></applet>*/
public class exp3_3 extends Applet
{
public void init()
{
BorderLayout bl = new BorderLayout();
setLayout(bl);

Button b1 = new Button("North");


Button b2 = new Button("South");
Button b3 = new Button("East");
Button b4 = new Button("West");
Button b5 = new Button("Center");
add(b1,BorderLayout.NORTH);
add(b2,BorderLayout.SOUTH);
add(b3,BorderLayout.EAST);
add(b4,BorderLayout.WEST);
add(b5,BorderLayout.CENTER);
}
}

Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy