Madcap (zimdanen) wrote,

Ha! That's so cheap.

public class Stuff {

        public static void main(String[] args) {

                JFrame f = new JFrame("Clickity.");



                JButton button = new JButton("Click here");





We were supposed to make a JFrame that is interactive - the user does something and the JFrame responds. So, I made a button. The button doesn't actually affect anything, but by default, it has a different look when it's active. So, when the user presses the button, it changes the button. When the user stops pressing the button, the button goes back.

So cheap. So very cheap. :D
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.