/*
 * The MIT License
 *
 * Copyright 2017 Zyun.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package MonsterQuest.gui.start;

import MonsterQuest.MonsterQuestMain;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.geom.Rectangle2D;
import javax.swing.JPanel;

/**
 *
 * @author Zyun
 */
public class About extends JPanel{

    @Override
    protected void paintComponent(Graphics g) {
        //Draw image for credits.
        Graphics2D g2d = (Graphics2D) g;
        Rectangle2D.Float bg = new Rectangle2D.Float(0, 0, (float)MonsterQuestMain.MonsterQuestWindow.getWidth(), (float)MonsterQuestMain.MonsterQuestWindow.getHeight());
        g2d.setColor(Color.BLACK);
        g2d.fill(bg);
        g2d.setColor(Color.WHITE);
        Font pixelFontBigger = new Font("Minecraft", Font.TRUETYPE_FONT, 35);
        g2d.setFont(pixelFontBigger);
        FontMetrics fnt = g2d.getFontMetrics(pixelFontBigger);
        g2d.drawString("By : Zyun", 10, 40);
        g2d.drawString("Beta Testers: ", 10, 80);
        g2d.drawString("Press any key to exit.", 10, 680);
        System.out.println("Zyun.Lam.Game.MonsterQuest.BasicAnimation.showCredits()");
    }
    
    public About() {
        super();
        this.addKeyListener(new KeyListener() {
            @Override
            public void keyTyped(KeyEvent e) {
                //Do nothing. Will deal with it in keyPressed ()
            }

            @Override
            public void keyPressed(KeyEvent e) {
                //Change scene to the others scene
                MonsterQuestMain.systemLog.log("Going back to others scene.");
                MonsterQuestMain.cardLayout.show(MonsterQuestMain.MonsterQuestPanel, "othersOption");
                MonsterQuestMain.MonsterQuestPanel.repaint();
            }

            @Override
            public void keyReleased(KeyEvent e) {
                //Do nothing. Will deal with it in keyPressed ()
            }
        });
    }
}

@@ -2092,307 +2092,8 @@
     
-FontMetrics fnt = g2d.getFontMetrics(pixelFontBigger);%0D%0A        g2d.drawString(%22By : Zyun%22, 10, 40);%0D%0A        g2d.drawString(%22Beta Testers: %22, 10, 80);%0D%0A        g2d.drawString(%22Press any key to exit.%22, 10, 680);%0D%0A        System.out.println(%22Zyun.Lam.Game.MonsterQuest.BasicAnimation.showCredits()%22);
 %0D%0A  

Update About.java