Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package sample;
  2.  
  3. import javax.swing.JFrame;
  4. import javax.swing.JButton;
  5. import java.awt.BorderLayout;
  6. import java.awt.FlowLayout;
  7.  
  8. public class Bttns2 {
  9.  
  10. Bttns2(){
  11.  
  12. JFrame frame = new JFrame("These are the buttons samples 2");
  13. JButton button,button1, button2, button3,button4;
  14. button = new JButton("Skip Backward");
  15. button1 = new JButton("Previous");
  16. button2 = new JButton("Play/Stop");
  17. button3 = new JButton("Next");
  18. button4 = new JButton("Skip Forward");
  19.  
  20. frame.add(button);
  21. frame.add(button1);
  22. frame.add(button2);
  23. frame.add(button3);
  24. frame.add(button4);
  25. frame.setLayout(new FlowLayout());
  26.  
  27.  
  28. frame.setSize(600,300);
  29. frame.setVisible(true);
  30. }
  31.  
  32.  
  33. public static void main(String[] args){
  34.  
  35. new Bttns2();
  36.  
  37.  
  38.  
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement