Recently started with java, know as much as Alex_
knows about maths which is basically nothing, did this today with help of a tutorial, hopefully I should be able to make one without a tutorial soon enough

Code:
package com.codebind;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Created by daymon on 2016-12-02.
*/
public class App {
private JButton button_msg;
private JPanel panelMain;
public App() {
button_msg.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null,"yes and im bad");
}
});
}
public static void main(String[] args) {
JFrame frame = new JFrame("retard test");
frame.setContentPane(new App().panelMain);
frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}