Package com.github.jreddit.captcha

Examples of com.github.jreddit.captcha.CaptchaDownloader


   
    // Create the frame
    JFrame frame = new JFrame("Captcha");

    // Download captcha
    CaptchaDownloader cd = new CaptchaDownloader();
    Image image;
   
    try {
     
      // Add the captcha image to the frame
      image = (Image) cd.getCaptchaImage(iden);
      JPanel mainPanel = new JPanel(new BorderLayout());
      mainPanel.add(new JLabel(new ImageIcon(image)));
      frame.setSize(200, 200);
      frame.add(mainPanel);
      frame.setVisible(true);
View Full Code Here

TOP

Related Classes of com.github.jreddit.captcha.CaptchaDownloader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.