!752 p { makeBot("Google Image Search."); centerBigConsole(); clearConsole(); renameConsole(programName()); print("Type what you want to see!"); } static ImageSurface imageSurface; static S answer(final S s) { print("Searching " + quote(s) + "..."); final S url = googleImageSearch(s); print("Done."); if (nempty(url)) awt { disposeFrame(imageSurface); final BufferedImage img = loadImage2(url); imageSurface = showImage(quote(s), img); addToWindowAndPack(imageSurface, jbutton("Upload to Database", r { JTextField tf = new JTextField(s); /*showTitledForm("Upload to Database", "Name", tf, r {*/ S imageURL = uploadToImageServer(img, s + " [Google]"); print("Image Uploaded! => " + imageURL); //}); })); magiclyFocusConsole(); } ret url; }