Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JFrame frame = new JFrame() {{
- add(new JPanel() {{
- add(new JLabel("Хабрахабр?") {{
- setBackground(Color.BLACK);
- setForeground(Color.WHITE);
- }});
- add(new JButton("Торт!") {{
- addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent event) {
- System.out.println("Хабрахабр - торт!");
- }
- });
- }});
- }});
- }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement