anirudhp06

frames

Aug 17th, 2021
1,750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import javax.swing.*;
  2.  
  3. public class frames{
  4.     public static void main(String[] args){
  5.         JFrame f1=new JFrame();
  6.         JButton b1=new JButton("Login");
  7.         JButton b2=new JButton("Reset");
  8.         f1.setLayout(null);
  9.         f1.setVisible(true);
  10.         f1.setSize(400,500);
  11.         b1.setBounds(100,50,150,30);
  12.         b2.setBounds(100,100,150,30);
  13.         f1.add(b1);
  14.         f1.add(b2);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment