Skip to content

Instantly share code, notes, and snippets.

@kroovysteph
Created November 23, 2016 12:59
Show Gist options
  • Save kroovysteph/9b036c9dfeb1bba27b8927c8476d1b22 to your computer and use it in GitHub Desktop.
Save kroovysteph/9b036c9dfeb1bba27b8927c8476d1b22 to your computer and use it in GitHub Desktop.
public class ImageEditor extends JFrame implements ActionListener {
private ImagePanel _image_panel;
private JButton _jb_load;
private JButton _jb_select;
private JButton _jb_invert;
private JButton _jb_colorize_r;
private JButton _jb_colorize_g;
private JButton _jb_colorize_b;
private JButton _jb_mirror_x;
private JButton _jb_mirror_y;
private JButton _jb_mystery;
public JButton create_button(String label) {
JButton button = new JButton(label);
button.addActionListener(this);
return button;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment