Logo Search packages:      
Sourcecode: webcam-server version File versions  Download package

void ImageCanvas::couldNotConnect (  )  [inline]

displays image in cannotConnectImageFilename upon failed connection

Definition at line 156 of file ImageCanvas.java.

References setImage(), and setStartStopText().

      {
            setStartStopText("Start");
            if (applet == null)
            {
                  File f = new File(cannotConnectImageFilename);
                  if(f.exists())
                        setImage(Toolkit.getDefaultToolkit().getImage(cannotConnectImageFilename));
                  else
                        System.out.println(cannotConnectImageFilename + " not found");
            }
            else
            {
                  try {
                  setImage(applet.getImage(new URL(applet.getCodeBase().toString() + cannotConnectImageFilename)));
                  } catch(MalformedURLException e) {}
            }
      }


Generated by  Doxygen 1.6.0   Back to index