Wednesday, September 3, 2008

All Systems Go

So this song is a little less known. Since its a little harder I will give a couple hints. First, the band only had one cd. Second, it was a side project of the guitarist of my favorite band of all time. And lastly, only one song made it to the radio, and this one wasn't it.




So not much has happened lately. Just the same old stuff. But something remarkable has happened, I figured out some more stuff on java. I figured out how to change the size of the window that I create, I also figured out how to, after hours of frustration, get a picture in the window as well. I was soooooo excited when it worked that I was jumping and screaming. I'm pretty sure my roommate thinks I'm crazy now but I was really stoked. So now for the part that no one understands, the code.

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class hello {
public static void main(String[] args) {
JFrame f = new JFrame("YO!");
f.setLocationRelativeTo(null);
f.setBounds(100,100,640,480);

JPanel p = new JPanel();
p.setBounds(100,100,640,480);

JButton b = new JButton("Click Here For A Virus");

JLabel label=new JLabel(new ImageIcon("hobo_running.png"));

p.add(label);
p.add(b);
f.setContentPane(p);

f.show();

}
}


And of course, heres what it produces.





The picture is from hobowars, I used it previously on a webpage that I made for my gangs website. Maybe next time I will show that, which was written in a totally different programming language. Everyone knows it, HTML, and if you don't where have you been?!? Anyways, thats my programming boast. Also, kudos to Amanda for photshopping the original picture, which had a white background. Thanks again.


Thats about it for now. Until next time, adios.

3 comments:

Daniel said...

All Systems Go was by Box Car Racer. Not that hard, and they actually had two songs on the radio "I Feel So" and "There Is". Come on dude, get with it already! Love ya!

"Insert Clever Nickname Here" said...

I figured it would be you who got that one. And I didn't know that "There Is" was played on the radio, my bad.

a Laura Ingalls wannabe said...

Hey, hey! I knew it was Box Car Racer from the clue! Because I have a husband with really ugly taste in music...