×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Location
    Venice, California
    Posts
    67

    Question How to extend Image class

    public class SnapImage extends Image

    I have not been able to get this to work due to problems with the super() constructor. Does anyone have an example?

    - Thanks, David

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: How to extend Image class

    I don't think you can extend an Image object because it's constructor isn't public. Try wrapping it instead:
    Code:
    public class SnapImage {
      
      Image snapImage;
    
      // ....
    
    }
    shmoove

Similar Threads

  1. need information about j2me polish
    By rathikathangaraj in forum Mobile Java General
    Replies: 4
    Last Post: 2007-12-19, 09:01
  2. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  3. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  4. Exceptions while loading application
    By avinash_rs in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 10:53
  5. A bug in Image class for S60
    By cryptoalex in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-05-30, 08:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×