package com.
pesho;
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class Malamashkov extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
[Link](new Runnable() {
public void run() {
try {
Malamashkov frame = new Malamashkov();
[Link](true);
} catch (Exception e) {
[Link]();
}
}
});
}
/**
* Create the frame.
*/
public Malamashkov() {
setBackground(new Color(245, 245, 220));
setTitle("java");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
[Link]([Link]);
[Link](new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
[Link](null);
JButton btnNewButton_1 = new JButton("Изход");
btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
[Link](0);
}
});
btnNewButton_1.setBackground([Link]);
btnNewButton_1.setBounds(227, 168, 133, 68);
[Link](btnNewButton_1);
JLabel lblNewLabel = new JLabel("Привет, Java!");
[Link](10, 10, 128, 52);
[Link](lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("Приятно ми е да се запознаем!");
lblNewLabel_1.setBounds(81, 85, 231, 40);
lblNewLabel_1.setVisible(false);
[Link](lblNewLabel_1);
JButton btnNewButton = new JButton("Отговор");
[Link](new ActionListener() {
public void actionPerformed(ActionEvent e) {
lblNewLabel_1.setVisible(true);
}
});
[Link]([Link]);
[Link](30, 168, 128, 68);
[Link](btnNewButton);
}
}