0% found this document useful (0 votes)
14 views

pr3.1

Uploaded by

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

pr3.1

Uploaded by

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

import java.awt.

*;

public class Namrata {

public static void main (String args[]) {

Frame frame = new Frame("Grid Layout Eg");

frame.setSize(400,400);

frame.setLayout(new GridLayout(5,5));

for (int i =1;i<=25;i++){

Button b1 = new Button(Integer.toString(i));

frame.add(b1);

frame.setVisible(true);

You might also like