Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- public class TestFrame {
- public static void main(String[] args) {
- JFrame frame = new JFrame();
- frame.setSize(550, 350);
- frame.setTitle("Testframe");
- frame.setVisible(true);
- frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
- JPanel panelText = new JPanel();
- frame.add(panelText);
- JPanel panelButtons = new JPanel();
- frame.add(panelButtons);
- JButton buttonStart = new JButton("Start");
- JButton buttonEnd = new JButton("Beenden");
- panelButtons.add(buttonStart);
- panelButtons.add(buttonEnd);
- }
- }
Add Comment
Please, Sign In to add comment