Package view

Examples of view.PictWindow


  public void showPict(Pict pic)
  {
    try
    {
      // create a new PictWindow
      PictWindow monitor = new PictWindow("Frame");
      QDRect rect = pic.getPictFrame();
      monitor.picture = pic;

      // convert to Image, then to ImageIcon for display
      Image image = util.ImageUtils.makeJimage(monitor.picture, rect.getWidth(),
        rect.getHeight());
      ImageIcon icon  = new ImageIcon(image);
      JLabel label = new JLabel(icon);
      monitor.getContentPane().add(label);
      monitor.pack();
      this.view.add(monitor);
      monitor.moveToFront();
    } // try
    catch (Exception e)
    {
      e.printStackTrace();
    } // catch (Exception)
View Full Code Here

TOP

Related Classes of view.PictWindow

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.