import java.awt.*; import java.applet.*; import java.awt.event.*; public class Description003 extends Applet implements ActionListener { int pageNum; Font textFont; public void init() { setBackground(Color.black); pageNum = 1; textFont = new Font("Serif", Font.PLAIN, 12); Button bttn = new Button("Change page"); bttn.addActionListener(this); add(bttn); } public void paint(Graphics g) { g.setColor(Color.white); g.setFont(textFont); switch (pageNum) { case 1: g.drawString("Niadi is a site of free games made by me!, The games may not be that", 20, 70); g.drawString("good but I try to atleast start on something new every day!", 20, 82); g.drawString("", 20, 94); g.drawString("If you have any comments or suggestions please say them on the", 20, 106); g.drawString("forum (it doesn't take anything to make an account just type in a", 20, 118); g.drawString("username, password and enter your email address, it will only be", 20, 130); g.drawString("used to contact you.) and start typing!", 20, 142); g.drawString("All suggestions accepted and anwsered!", 20, 154); break; case 2: g.drawString("We hope to have many more mini games soon with graphics starting up", 20, 70); g.drawString("which should make the games more fun.", 20, 82); g.drawString("Also I am accumilating ideas and hope to start on the main game", 20, 94); g.drawString("around April 18th (my birthday!) and hope to get out a test version", 20, 106); g.drawString("by chrismas.", 20, 118); g.drawString("", 20, 130); g.drawString("In the test version you will hopefuly be able to :", 20, 142); g.drawString("Walk around by clicking where you want to go", 20, 154); g.drawString("Be able to fight (descusion on forum about what it's going to be like).", 20, 166); g.drawString("Thats about, but though it may not seem like much if I get this done", 20, 178); g.drawString("I will have a base and from then on it will get easyer to continue", 20, 190); g.drawString("", 20, 202); g.drawString("If you want to comment on this go to the forums.", 20, 214); break; } } public void actionPerformed(ActionEvent evt) { if (pageNum == 1) pageNum = 2; else pageNum = 1; repaint(); } }