public STNotificationWindow(STNotificationType t, String title)
    {
        this.title = title;

        texturePath += "window.png";
        switch (t)
        {
        case INFO:
            typePath += "normal.png";
            break;
        case ERROR:
            typePath += "error.png";
            break;
        case WARNING:
            typePath += "warning.png";
            break;
        case MESSAGE:
            typePath += "normal.png";
            break;
        case SUCCESS:
            typePath += "success.png";
            break;
        }

       
        try
        {
            type = ImageIO.read(this.getClass().getResourceAsStream(typePath));
            titleImage = ImageIO.read(this.getClass().getResourceAsStream(titlePath + title + ".png"));
            texture = ImageIO.read(this.getClass().getResourceAsStream(texturePath));
        } catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        this.setOpaque(true);
        this.setBackground(new Color(0, 0, 0, 0));
        this.setSize(271, 179);
        this.setVisible(true);
    }