HOW TO APPLY BORDER LAYOUT.

This is the basic program to start with.Save the programs by the class name only,then only it will work out.



import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*<applet code=border_layout width=500 height=500></applet>*/
public class border_layout extends Applet
{
BorderLayout bl;
Button b;
Label p,q,r,s;
public void init()
{
b=new Button("CLICK HERE ");
p=new Label("EAST");
q=new Label("WEST");
r=new Label("NORTH");
s=new Label("SOUTH");

bl=new BorderLayout();
setLayout(bl);

add(p,BorderLayout.EAST);
add(q,BorderLayout.WEST);
add(r,BorderLayout.NORTH);
add(s,BorderLayout.SOUTH);
add(b,BorderLayout.CENTER);
}

}



Comments

  1. Playtech games and apps for iPhone - Dr.MCD
    If you don't like slots, you have plenty 춘천 출장안마 of 충청북도 출장샵 casino games that could be 경상남도 출장마사지 played right from your 성남 출장샵 phone. These include 군포 출장안마 blackjack, roulette, keno, and

    ReplyDelete

Post a Comment

Popular posts from this blog

Write a java program to create an abstract class named Shape that contains two integers and an abstract method named printArea(). Provide three classes named Rectangle, Triangle and Circle such that each one of the classes extends the class Shape. Each one of the classes contain only the method printArea( ) that prints the area of the given shape.

Create Employee Class with Method getdata and setdata. Create following subclasses to generate biodata. i) Personal record ii)) Professional record iii) Academic record Assume appropriate data members and member function to accept required data & print bio-data. Use Overriding at suitable places.Create bio-data using multilevel inheritances.

Exception_Handling Program