Display a large image

Can anyone tell me how to display alarge image(i.e. map.jpg) in a JPanel with a scrollbar so that I can scroll the whole image?

use a jlabel to display the image and add the jlabel in a jscrollpane(enable the scrollbars as neccasary) and add the jscrollpane to a panel r jframe..

Similar Messages

  • Displaying a larger image from a thumbnail [was: Question]

    I would like to display a larger image from a thumbnail inserted on the web page. I inserted a rollover image, used the thumbnail as the original and a larger and different jpeg image as the rollover image. However, when the mouse rolled over the thumbnail, the new rollover image (different then the original) was the same size as the original. Is there an easier way to display a larger image from a thumbnail? What am I doing wrong? Thanks
    [Subject line edited for clarity by moderator]

    Could you also provide a CSS solution to opening a non _self page that is the same size as the image displayed on the page.
    Not possible with pure CSS.  Sorry.  Your best option is to use one of the jQuery Lightbox scripts mentioned below.
    http://line25.com/articles/rounding-up-the-top-10-jquery-lightbox-scripts
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • RoboHelp 8 HTML WebHelp How to display a larger image of a thumbnail by clicking on or rolling over the thumbnail?

    How would you display a larger image of a thumbnail by clicking or rolling over the thumbnail?

    Hi there
    For a mouseover you would have to add some custom developed JavaScript. You could probably find some pre-made on the web if you poked around.
    Generally speaking, any way you slice it you will be using two images. One for the thumbnail and one for the full sized image. You could employ the popup functionalty to pop up the larger image.
    I used to simply create DHTML drop-downs and insert the large images in the drop-down area.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Using IMAQ Image Display control vs IMAQ WindDraw for large image files

    Hello All;
    I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger).  My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds.  My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
    I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference.  For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
    Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods?  How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
    I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?).  Thanks.
    DJH

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to load a large image for display on the Palm PDA

    Hello:
    I have a large image I would like to display on LV for Palm PDA. The documentation states there should be a 64K chunk limitation for VIs to compile on the Palm. Therefore, I decided to break this image up into 2D arrays of less than 64K per subVI. My 3.2 Meg image therefore has about 224 2D array subVIs. My motivation is to somehow use the build array function (with concatenate inputs) to reconstruct the image at runtime. I can compile each 2D array subVI as a test, but my attempt to reassemble and compile is futile. When I try to use the build array with only 8 of these subVIs in a top level VI the compiler complains its still too big of a VI. Using get info, memory for this top level states total ~2
    3K of memory usage.
    So can someone help me with this problem. Is there another way to load this size of an image into memory so I can display it on a picture control?
    BTW, this can build on LV for PocketPC.
    Thank you
    Robert

    Hi Robert,
    You are correct in that one of the limitations of the Palm OS is that files cannot be larger than 64 KB in size (as stated on page 5-3 of the LabVIEW PDA Module User Manual). The suggested workaround is indeed to have a top-level PDA VI that calls subVIs, and this top-level VI can then have a total file size larger than 64 KB.
    My suspicion is that with the picture control on the Palm OS, even if you are breaking up the image into smaller subVIs, the process of building the array to reassemble the picture is still forcing the Palm to allocate memory for each of those 2D array subVIs to place on the top-level VI's picture control
    and thus causing the Palm to complain about not having enough memory. The LabVIEW PDA User Manual also states that "There is a total limit of 64 KB on all front panel array data". Thus, when you are trying to use the build array on the top-level VI, the 64 KB limit on front panel array data is still being exceeded -- even with only 8 of these subVIs.
    The following KnowledgeBase article KB 38EJRHFQ: How Do I Put a Picture or Image on My LabVIEW PDA for Palm Front Panel? states that as a workaround, you can shrink the size of your image by using 4-bit or 1-bit data instead of the standard 8-bit pixmap representation.
    This is really just a limitation of the Palm OS and the fact that there is simply no way of displaying that much front panel information for your picture. Either way, you would need to build up the array of pixels for your bitmap, and for a 3.2 MB image, I don
    't believe there is any way for the Palm OS PDA to display the image in its entire at once.
    Sorry about that...
    Kileen C.
    National Instruments

  • Large images not displaying properly in Acrobat Pro 9

    When creating PDF documents from any software (Illustrator, Corel, InDesign, etc), color objects over 50% of the page size have white fill. If object has an outline, the outline will appear normally, but the fill will be white. I've searched forums everywhere and have found no answer. Most forum topics on this are issue focus on settings in the program that exported the PDF. I am 99% sure this is not an export problem, but is something in Acrobat itself (a missed setting? Corrupt program file?)  
    To provide the best information, I've done a little scientific research. Here is what I know:
    Currently running Acrobat Pro 9.5.5
    This is only happening on ONE install of Acrobat 9. Documents display correctly in Reader X and in Acrobat 9 on other machines.
    Started happening a few weeks ago, I have no idea what changed.
    "Show Large Images" in preferences dialog is checked. Unchecking it and rechecking it does nothing.
    Have installed all available updates to the software
    I experimented with different object sizes. At 50% of page size, objects appeared normal, at 51% filled object disappears.
    Does not affect photos, only affects vector objects.
    I welcome all ideas to fix this.
    ALSO - Am running this on Windows Vista 64 Bit

    Hello? Is there nobody in the Adobe universe that has an actual solution to my problem?
    Other things I've tried to solve this:
    repair the install.
    uninstall and reinstall
    cuss at the computer
    throw a tantrum.
    I will pay someone a whole dollar for a solution that works.

  • Attached images display too large

    when using mail in os 10.4, if someone sends me a message with pictures attached, they are at a size that you can see the whole picture when you scroll down in the message. if i forward that email to someone, the pictures display too large and you cannot see the whole image in the message. is there a setting for this somewhere?
    thanks

    BDAqua wrote:
    Ah thanks, maybe I was experimenting with too small of pics!?
    Hmm, interesting...
    Mail will remebember the size and will automatically use it the next time you attach an image if you forget to manually change it back.
    And if the last setting was small, the menu may be there, but will have no effect since you cannot Scale up!
    Yes, it works only for downsizing.
    Also, it seems that if the pic is in quoted nesting the size setting has no effect!?
    On Mac OS X 10.5 and later it works regardless of quotation. If it does not on Mac OS X Tiger, it must be a bug that was fixed later.

  • Displaying Large Images and Out of Memory Error

    hi,
    I am relatively new to JAVA and I have been trying to display a large jpeg in a scrollpane. The image is about 30 mb in size and is very long. When compressed the image is very small (1mb) but when uncompressed it increases in size due to the black background. I have been looking all over the place to find a method to display such a large image. I read a little bit about the JAI and its tile features but I am not really familiar with it. Also the image has to be displayed in an applet. the whole mess has to do with the JAVA VM memory restrictions as it does not have enough memory to process the image. Is there a way to uncompress a part of the JPEG and display it or assign addittional memory to JAVA. I will really appreciate any help on this topic.
    thanks

    Hiya.
    I can't say I know how to save Java from large images, but you can up the memory allocated to the JVM:
    java -Xmx120M ...
    will give 120M to the JVM (max). There is an -Xms also which gives the initial allowed space.
    Regards.
    Paulj.

  • Displaying large images

    On blog or news item pages etc. it would be common to display
    an image as no more than a certain width, regardless of the actual
    image size, simply for fast loading and consistent visual
    presentation. However, I would like users to be able to see the
    image full size if required.
    The obvious approaches are when clicking on the image, to
    either show it full size in the current browser window or to create
    a new window to show it, probably using JavaScript to open a window
    the same size as the image.
    Both have their pros and cons and the other issue is that it
    is always annoying to click on an image only to discover that the
    original was no bigger anyway!
    Does anyone have any thoughts on how best to handle images?
    Thanks.

    > On blog or news item pages etc. it would be common to
    display an image as
    > no
    > more than a certain width, regardless of the actual
    image size
    This is mistaken. A large image will fetch as its native size
    regardless of
    how you display it on the page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "UsuallyConfused" <[email protected]> wrote
    in message
    news:f7i90a$lns$[email protected]..
    > On blog or news item pages etc. it would be common to
    display an image as
    > no
    > more than a certain width, regardless of the actual
    image size, simply for
    > fast
    > loading and consistent visual presentation. However, I
    would like users to
    > be
    > able to see the image full size if required.
    >
    > The obvious approaches are when clicking on the image,
    to either show it
    > full
    > size in the current browser window or to create a new
    window to show it,
    > probably using JavaScript to open a window the same size
    as the image.
    >
    > Both have their pros and cons and the other issue is
    that it is always
    > annoying to click on an image only to discover that the
    original was no
    > bigger
    > anyway!
    >
    > Does anyone have any thoughts on how best to handle
    images? Thanks.
    >

  • Displaying large image in Swing 's Frame

    Hi,
    I'm new to java swings please let me know or sample code of how to display a complete large image in to a small container so that the image should be compressed and the complete image should be fitted into the container.
    Thanks in advance

    jameel wrote:
    please send me the sample working codeNo.
    Come on now. We are all volunteers here, and this is not a code-spitting factory. Search with Google, or search the forum, or create your own code. You are then welcome to present your own code here and ask questions about it, but you must do the brunt of the work here. Got it?

  • Displaying large images in MIDP 2.0

    Hello,
    I've been building a little file browser in MIDP 2.0. Now I'd like to add some file opening in, too.
    Videos and sound can be played quite easily using the MMAPI.
    But images are a tougher case. I haven't found any way to display images using the MMAPI, and loading big images with Image.createImage causes an OutOfMemoryException.
    So, does anyone know a trick (extensions are OK too) to display large images with? Naturally downsizing, as in the case of videos, is OK too.
    -- Mikko

    about image resizing, it is very difficult issue.
    I did this code for my company in 2 whole weeks. and sure I can not post it.
    pluse this code was only for Jpeg files.
    I still can give u some hints,
    1- There is open source code I dont remeber its name ,I think it was JPEG Decoder for J2ME try to search for this.
    this code is said to be for J2ME, pulshit . when u just instansiate instance from this class u got OutOfMemory Error. but this code still good as concept.
    2- Use the previous code to do the decoding while reading, I mean u will have to open stream on ur file then decode the data and resize.
    Good Luck

  • The large image that displays the current weather has dissapeared?

    On my weather app and on the notification centre widget, the large image that displays the current weather (inbetween your location and the current temperature) has dissapeared. All the infomation given by the app and widget is correct and the smaller weather icons still appear within the app and widget but not the larger one?
    Can anyone explain the cause of this and give me a solution to fix it? Thanks

    Hi fedotenko,
    If your main objective is to print the images and merely not saving the images directly to the disk...I think you want to print these images without scrolling and the full content...So you can do something like below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Protected articles display as preview images without the Large Purchase Pane

    I created a folio with article preview in v27. When I open it right after the preview content completes downloading, everything works as expected.
    However, when I open the same preview folio afterwards, the protected articles display as preview images and the Large Purchase Pane disappears.
    Anyone have an idea what might cause this problem?

    It turned out that I did not set up the subscription purchase on iTunes Connect, so the subscription button disappears from the purchase panel.

  • Display a large sequence of images like a video.

    I want to display a large sequence of images (.jpg) like a video, something like a Component that displays an image and a TimerTask that changes that image every 50 milseconds and repaints:
    class SlideShow extends Component
         private Timer timer;
         private TimerTask imageFliper;
         private Image currentImage;
         private Image nextImage;
         private int arraysize;
         private int arrayoffset;
         private int currentposi;
         String fileMask;
         public SlideShow(int offset, int size, String filemask)
              super.setSize(640,480);
              currentposi = arrayoffset = offset;
              arraysize = size;
              fileMask = filemask;
              timer= new Timer();
              nextImage = Toolkit.getDefaultToolkit().getImage(fileMask.replaceFirst("#",leftZero(currentposi,4)));
              imageFliper = new TimerTask()
                   public void run()
                        currentImage = nextImage;
                        repaint();
                        if(++currentposi > arrayoffset + arraysize)
                             currentposi = arrayoffset;
                        nextImage = Toolkit.getDefaultToolkit().getImage(fileMask.replaceFirst("#",leftZero(currentposi,4)));
              timer.schedule(imageFliper, 0, 50);
         public void paint(Graphics g)
              g.drawImage(currentImage,0,0,super.getWidth(),super.getHeight(),this);
         public void update(Graphics g)
              paint(g);
         static public String leftZero(int target,int leftcount)
              StringBuffer sb = new StringBuffer();
              int i = (int)Math.pow(10,leftcount-1);
              while(i!=1)
                   if(target<i)
                        sb.append("0");
                        i=i/10;
                   else
                        break;
              sb.append(Integer.toString(target));
              return sb.toString();
         public static void main(String[] args) 
              Frame f = new Frame("slide show");
              SlideShow s = new SlideShow(1,1000,"intro\\intro#.jpg");
              f.add(s);
              f.addWindowListener(new WindowAdapter()
                             public void windowClosing(WindowEvent e){System.exit(0);}
              f.pack();
              f.setSize(640,480);
              f.setVisible(true);
    }but just using the Image class seems to be unefective.
    Does anyone kwon a library that does this fast and efective?
    or should i just convert the images to a media file and use a media library?
    Message was edited by:
    nmfmr

    Firstly if you're loading images with Toolkit you'll nbeed to use MediaTracker (see the Javadoc for full and clear instructions).
    Secondly, be aware of how long it takes to load image data, allocate the memory for it, and decode it. This is where you're going to suffer and it's the fundamental flaw in the plan of simulating video by flipping single frames: it's highly unlikely you'll manage it quickly enough. As above, 50ms is quite optimistic.
    You could do your loading up-front and buffer a load of images - there are a few strategies you could use for this. But bear in mind that (a) this is going to be very memory hungry, and (b) if your image load time is greater than your frame display time you're always going to be fighting a losing battle. But it should work for very small animations.
    Run yourself some tests: write yourself a simple test class which just loads an image in its main() method using a MediaTracker. It'll tell you how long loading the image takes. Of course, if you're doing it in an applet then you've got all sorts of other factors to consider and the load times will be high.

  • So frustrated!!!! mouseover to display larger image

    I've searched all day for the answer, been sent 400 lines of
    code that I couldnt understand, read the tutorials... got nowhere.
    so, here we go...
    I have 3 images. 'Front.gif' 'back.gif' and 'detail.gif. I
    sell dresses. I want the user to be able to click on the small gif
    'front' and for the large image of the front of the dress to appear
    (on the same page but different location to front.gif). Then the
    user clicks on 'back.gif' and the front picture of the dress is
    replaced with the back view. then repeat for the 'detailed' view of
    the dress.
    all pictures/photos the the dress (front, back and detail)
    are the same size.
    I've tried layers, rollovers, swaps, crazy code that got me
    half way. I feel like dreamweaver is laughing at me saying "just
    click on that blue button and thats it"!!!!!
    thanks, kitty

    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]...
    > .oO(P@tty Ayers ~ACE)
    >
    >>"Michael Fesser" <[email protected]> wrote in
    message
    >>news:[email protected]...
    >>
    >>> I understood it like this: There are some small
    pictures and a single
    >>> area to show a large image. If you click a small
    image, a larger version
    >>> will appear in that specific area of the page.
    The same thing happens if
    >>> you use the eBay gallery to attach multiple
    images to an auction.
    >>
    >>Well, here's what she said:
    >>
    >>[...]
    >
    > I know what she said. Question is how you understood it.
    I've understood
    > it the way I described and how I've seen it done many
    times on all kinds
    > of websites: shops, eBay, galleries, even Flickr albums
    look like that.
    >
    >>Clicking a small picture of the front of a dress
    makes a similar larger
    >>image appear. So far so good.
    >>Then, say I'd like to see a picture of the back of
    the dress, and a
    >>detailed
    >>view. How can I find those? Pretty much only by
    random guessing and
    >>clicking
    >>everywhere, because to see the back you have to click
    on the front, and to
    >>see the detailed view you have to click on the back
    view.
    >
    > Ah, that's the ... hmm ... what is "des Pudels Kern" in
    English?
    > www.dict.cc suggests "The gist of the matter"? Anyway.
    >
    > Of course this would be a confusing and user-unfriendly
    design. But it's
    > not how I understood the OP. To me it seemed to be
    intended more like
    > this:
    >
    > +--------+ +-----------------------------+
    > | | | |
    > | front | | |
    > | | | |
    > +--------+ | |
    > +--------+ | |
    > | | | |
    > | back | | big image |
    > | | | |
    > +--------+ | |
    > +--------+ | |
    > | | | |
    > | detail | | |
    > | | | |
    > +--------+ +-----------------------------+
    >
    > As said - quite common.
    >
    > At least I think I've understood your interpretation of
    the original
    > posting now and the problems you see with it. Now it's
    up to the OP to
    > make things clearer. ;)
    >
    > Micha
    Ok, maybe you're right.
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

Maybe you are looking for

  • JDBC, JMS and EJB transactions - possible problem?

    Hello,           I am using Oracle 9, Weblogic 8.1 SP 4, MyEclipse and           XDoclet.           In my current project I have the following piece of code           in one of my message driven beans (code cited as pseudocode           without unnec

  • Top spec mac Mini as a workstation?

    Hi, My studio needs to replace two old G5's and i would like to know how a couple of maxed out mac Minis would perform. I'm thinking of these owing to the massive price of two Mac Pros and also because we already have monitors. The spec i am thinking

  • Captivate can manipulate an external file?

    Captivate 4 Output: .exe, but we can convert to .swf, if this was necessary. Like a .txt, or something else? We have a course finished and ready to start, except for the organization of the student info (name, lesson viewed, quizz result); We create

  • Transfer Price of Profit Centre

    I am trying to activate the Transfer price setting for the Profit Centre.  We have one controlling area with currency INR.  I have made the settings for Profit Centre account with currency type 20 (controlling area currency-INR) with valuation view (

  • [svn:cairngorm3:] 14661: Migrate to Flex SDK 3.5

    Revision: 14661 Revision: 14661 Author:   [email protected] Date:     2010-03-10 04:58:46 -0800 (Wed, 10 Mar 2010) Log Message: Migrate to Flex SDK 3.5 Modified Paths:     cairngorm3/trunk/build-parent/pom.xml