Package com.sun.lwuit

Examples of com.sun.lwuit.Image


   * Get Image object
   *@param name
   *@return Image
   */
  public static Image displayImage(String name) {
    Image image;
    try {
      image = Image.createImage(getImage(name));
    }catch (java.io.IOException e) {
      return null;
    }
View Full Code Here


   * Get Image from stream
   *@param name
   *@return Image
   */
  public static Image displayImage(InputStream stream) {
    Image image;
    try {
      image = Image.createImage(stream);
    }catch (java.io.IOException e) {
      return null;
    }
View Full Code Here

            status.setText(person.getPresence());
            /*if (person.getPresence().equalsIgnoreCase(Contents.mystring_presence[3])) { //busy

              status.getStyle().setFgColor(0xFF0000);
            }*/
            Image img = Jid.createAvatar(person.getAvatar());
            if (img.getWidth() != 32)
              img = img.scaled(32, 32);
            pic.setIcon(img);
            pic.setPreferredSize(new Dimension(32,32));
            this.setPreferredSize(new Dimension(display_width, 40));
            return this;
        }
View Full Code Here

  /**
   * Show the intro logo and author info
   * @return Alert
   */
   public void getGuiIntroScreen() {
    Image logo;
    try {
     logo = Image.createImage("/jmc_back.png");
    }catch(java.io.IOException e){
     logo = null;
    }  
View Full Code Here

TOP

Related Classes of com.sun.lwuit.Image

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.