Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sample;
- import javax.swing.JFrame;
- import javax.swing.JButton;
- import java.awt.BorderLayout;
- import java.awt.FlowLayout;
- public class Bttns2 {
- Bttns2(){
- JFrame frame = new JFrame("These are the buttons samples 2");
- JButton button,button1, button2, button3,button4;
- button = new JButton("Skip Backward");
- button1 = new JButton("Previous");
- button2 = new JButton("Play/Stop");
- button3 = new JButton("Next");
- button4 = new JButton("Skip Forward");
- frame.add(button);
- frame.add(button1);
- frame.add(button2);
- frame.add(button3);
- frame.add(button4);
- frame.setLayout(new FlowLayout());
- frame.setSize(600,300);
- frame.setVisible(true);
- }
- public static void main(String[] args){
- new Bttns2();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement