someButton.addActionListener(e -> JOptionPane.showMessageDialog(this, "Hello!"));
someButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(this, "Hello!")
}
});
хитро думаю, как создать второй аккаунт на heroku и делать туда сюда запросы
p = new JPanel() {
@Override
public void paintComponent(Graphics g) {
super.paintComponent(g);
g.setColor(new Color(255, 255, 255));
g.fillRect(0, 0, 1000, 1000);
}
};