@Override
    public void paintComponent(Graphics g) 
    {
        super.paintComponent(g);
        
        try 
        { 
            g.drawImage(object.getSprite(), 5, 5, null); 
        }
        
        catch(NullPointerException e) {}
    }