Friday, February 7, 2014

Programming - Create


07.02.2014

Today I was working on my jumpn' run game menu. I used the turorial series, which is very good an dit alos explains what each command does. After I finished my first button I tried to run the game menu but it would not work. After I changed the onstructor of "close" everything looked fine but now there is one mistake and I do not know how to fix it. Their is a problem wiht the setDefaultCloseOperation.

Here are some screenshoots of my problem:

At first it all looked good

Then this came up when I tryed to run it

After clicking proceed this came up




I ran out of Ideas what to do!!!!! :-(


11.02.2014

Good News. I got the gaem menu to work!!!!! :-)




18.02.2014

I just coded again and I think I am going to change the goal of my project. I tried my best to make a jump n run game but it is more difficult than I thought. I think I kind of got lost with where I am going. My new goal is to make a small java programm that will link to my youtube channel and if I can make it I also want it to point to other websites relating to my youtube channel and maybe make the programm show the most recent video.


25.02.2014

Today I was just looking throught some codes for my youtube programm. The Next time I want to start working on the actuell school

4.03.2014

I hate programming and I never want to do it again!!!!!!!!!!!




11.03.2014

I wrote the whole code again and the programm just crashed! I HATE THIS!!




15.03.2014

I finally managed to write a code that works! :) :) :) After 2 hours I got everything to work!!! This is the code I used:


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;




import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;





public class frame extends JFrame implements ActionListener {




private JButton schliessen;
private JButton einstellung;
private JButton info;
private JButton ende;




public static void main (String[]args) throws Exception{ 
 
frame frame = new frame("Super Noob");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400,400);
frame.setLayout(null);
frame.setVisible(true);
}
public frame(String title) {
super(title);
schliessen = new JButton("Go to Super Noob");
schliessen.setBounds(120, 40, 160, 40);
schliessen.addActionListener(this);
add(schliessen);
einstellung = new JButton("Time Table");
einstellung.setBounds(120, 120, 160, 40);
einstellung.addActionListener(this);
add(einstellung);
info = new JButton("Information");
info.setBounds(120, 200, 160, 40);
info.addActionListener(this);
add(info);
   ende = new JButton("Close");
   ende.setBounds(120, 280, 160, 40);
   ende.addActionListener(this);
   add(ende);
  
   
JLabel label = new JLabel("Made by Super Noob");
label.setBounds(240,340,150,20);
add(label);
}

public void actionPerformed(ActionEvent e){
if (e.getSource() == schliessen){
Object[] options = { "OK"};
JOptionPane.showOptionDialog(null, "The Link to My Channel: https://www.youtube.com/user/SuperNoobThe ", "Link",

       JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE,

       null, options, options[0]);
}
if (e.getSource() == info){
Object[] options = { "OK"};
JOptionPane.showOptionDialog(null, "Super Noob is a Minecraft oriantated Youtube Channel. Right now it's a small channel but with your help we can make this channel grow. Your Super Noob. ", "Information",

       JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE,

       null, options, options[0]);
}
if (e.getSource() == einstellung){
Object[] options = { "OK"};
JOptionPane.showOptionDialog(null, "Surival Let's Plays - Every Saturday  ---  Let's Build - Every 2nd-3rd Saturday", "Time Table",

       JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE,

       null, options, options[0]);
}
if (e.getSource() == ende){
System.exit(0);
}
}
 

}
}



This is how the programm looks like:


The close button work! :)


The Menu! :) :)


It WORKS


This WORKS TOO!


AND THIS TOO!



I feel Happy!