How to adjust the size of image to suit the size of panel?

i have got a panel which contains a image.but i don't want to use scroll panel if the image's size is bigger than the panel.
what can i do to change the size of image to suit the size of the panel every time i want to display it?
thanks

Reply 3 of this thread should be able to help you:
http://forum.java.sun.com/thread.jsp?forum=31&thread=286424

Similar Messages

  • How do i make a still image (photo) fit the length of the music? I record music and want to put the tracks to a video file with a still image of my business logo in the background. Any help?

    How do I make a still image (photo) fit the length of the music? I record music and want to convert the tracks to a video file with a still image of my business logo in the background. On windows movie maker you could just select "fit to music" but this program isnt as easy to figure out! Any help?

    Double-click on the still image in the project timeline to open the Inspector. In the Inspector, adjust the duration by typing in a new duration to match the length of your music. I think the limit for a still image is 10 minutes. If you need more than this, simply drag the image into the timeline again then adjust its duration. The two images will play seamlessly (no gap will be visible).
    See this iMovie Help topic:
    http://help.apple.com/imovie/#mov3a883915
    You can achieve more precision when entering durations by changing a preference in the menu item iMovie Preferences. Check (tick) the preference for Show Time As HH:MM:SS:frames. This will enable you to enter the duration of stills down to the frame level, rather than full seconds (NTSC is 30 frames per second; PAL is 25 fps). When entering times, type a colon between each time segment, such as 2:50:15, which represents 2 minutes 50 seconds and 15 frames. For 5 seconds 20 frames you would enter 5:20 and so forth.
    Note that the music will only run to the length of the video in the timeline (in your case, the still images). So, after increasing the stills duration you will need to drag the end of the music track as far as required. The stills can be dragged inwards to reduce the duration if necessary.
    John
    Message was edited by: John Cogdell - added Note

  • How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?

    How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?  I have the icon but the program starts up and I have to delete it manually  from the desktop to clear my screen for other work...

    Are you using a Windows or a Mac? What you're seeing (the backwards L shaped menu) is probably the Canon Quick Menu. If you have a Mac you can go into your applications, select Canon Utilities, then drag Canon Quick menu to the trash and empty trash can. On Windows you'd go to the control panel, select Programs and Features (or Uninstall Program/Add or Remove Program) and uninstall the Canon Quick Menu. Not required for all the normal functions of the printer. You can do the same thing for My Image Garden. Also not required.

  • How to start the Toshiba Ghost image files from the HDD

    Hello
    Ok this is a tough one but hopefully some tech/wizz can help me out.
    I have all the necessary CD Recovery disc but my Toshiba laptop CDRom has died and i'm looking for replacement at the moment.
    I have managed to copy the image files and all the other info from these CD's onto the laptop hard drive via a network from my desktop cdrom. I did try to use the desktop cdrom to boot the 2.5" laptop drive but it knew it wasnt a toshiba laptop so wouldn't let me recovery.
    However now I have manage to copy all the ghost image files onto the laptop hdd I'm stuck on how to run installation via dos.
    The laptop hdd is formatted and all i have are the following files
    span.bmp
    setenv.bat --------> batch file contains following lines
    @ECHO OFF
    SET GHOSTPAR=
    SET SWN=01237000
    SET EXT=GHO
    SET VOLLABEL=%SWN%
    SET FILENAME=%SWN%.%EXT%
    01237001.GHS------> PART 2 OF IMAGE
    01237000.GHO -----> GHOST IMAGE MAIN
    01237000.CRC
    A folder called G_INST
    which contains 3 extra folders BMP, DOS and TOOLS and span.bmp
    I cant figure out how i can run ghost to extract and recovery my HDD can someone help me :)
    Thanks in advance
    Simon

    Im really skeptical if you will be start the Toshiba ghost image files from the second partition without using the Symantec Norton Ghost software.
    I have created a ghost image of the C partition and placed it on the D partition.
    To recover the C partition I have to start the Ghost Utility and have to use the image file .gho from D partition
    I have googled a little bit and found the useful instruction how to recover the Portege M3500 without using an CD/DVD drive. Maybe this will run also on the Sat A30.
    http://mobilepcwiki.com/mpc/index.php?title=Toshiba/Portege_M3500/FAQ
    By the way: the internal, compatible ODD can be ordered from the ASP in your country!

  • How do i hide the "print as image"  option in the menu ?

    I need to hide the "print as image" option in the menu for some users.
    what would be the best way to do it ?
    (the result should be that the users do not see the print as image option when they want to print something
    with Adobe Acrobat reader)
    Thanx
    M.

    Hello there, you can start with this
    Check Firefox page settings
    If a web page prints incorrectly in Firefox:
    At the top of the Firefox window, click on the Firefox button, go over to the Print... menu (on Windows XP, click on the File menu) and select Print Preview. The print preview window will appear.
    In the print preview window, make sure Scale is set to Shrink To Fit.
    Make sure the Portrait orientation is set.
    Click Page Setup.... The Page Setup window will appear.
    In the Page Setup window, click the Margins & Header/Footer tab.
    In the Margins section, make sure the page margins are set correctly (the default setting is 12.7 mm, or 0.5 in).
    Click OK to close the Page Setup window and return to the Print Preview window.
    Back in the Print Preview window, click Print. The Print window will appear.
    Make sure the correct printer is shown in the Name field.
    Make sure the Print to file setting is not selected.
    If you made changes, go ahead and attempt to print the page again. If not, follow the instructions below.

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • I am trying to crop faces from old family group photos and paste them on to records in Family Tree Maker. When I do this, the pasted cropped image reverts to the original of the entire family. Is there a way of unlinking the original version from the crop

    I am trying to crop faces from old family group photos and paste them on to records in Family Tree Maker. When I do this, the pasted cropped image reverts to the original of the entire family. Is there a way of unlinking the original version from the cropped image?

    Are you copying the cropped images directly from Aperture's Browser window and then pasting into your family tree?
    It would be safer to export the cropped faces as new image files to a folder on your disk, and then drag them from there to the "Family Tree" window.
    To export select the cropped image versions in Aperture's browser and use the command "File > Export > Version". Select a suitable export preset from the pop-up menu, for example "Jpeg fit into ..." and select a folder to export to.
    Regards
    Léonie

  • How do I make selective screenshot images in cells the same size?

    I am putting together a spreadsheet to list the purchasing options for our company from some of the Mac mini models but have a problem with image sizes in spreadsheet cells.
    First I took screenshots of each of the price and spec panels of the self-configured options I was interested in recommending using CmdCtrl+Shift4 to save the screenshot to the clipboard. Next, I highlighted the cell into which the image was destined to go and clicked Cmd+V and the image appeared in the cell (as an image fill for background colour). I repeated this process for six different Mac minis, being careful to start and finish the crosshairs in exactly the same place for each option. Each of these images had been lifted from a separate Tab in Safari 4.0.5 and appeared to be identically sized.
    The problem is, when placed in the spreadsheet cell grid, each image was either higher or lower than the one next to it, yet all cells were the exact same size. Some images appeared to be centred in the cell, others appeared to be top aligned.
    Can anyone help me to understand why this happens, and to give a suggestion on how to avoid it in the future?
    TIA

    OK, my mistake! The images were not the same size because the specs were different for each one, meaning that the info boxes were of different heights. When I copied them again, using the coordinates to ensure the screenshots were exactly the same size this time (rather than adding on a fixed width to the outside of the boxes) the problem was solved.
    Sometimes it's the user not the tools that has the problem!
    Having said that, it would be useful if the images were not background fills, but images that you could highlight because that would show quite quickly the size of each one - and allow you to add a background colour to a column to indicate a category type.
    Thanks for your help!

  • How do I get a header image to span the width of the screen without getting distorted?

    I've just finished two online classes for Dreamweaver through Ed2go and have a reasonable idea of HTML and CSS. What I'm trying to do is a re-make of my personal web site (www.astral-imaging.com) that I display my astronomy images using all CSS layout and proper HTML coding. The existing site was done long ago using FrontPage and is loaded with tables and nested tables for layout. I need to make several templates for repeated pages but I'm lost on how to create my header banner. I've used Photoshop CS5 to create what I want to use and saved it as a .JPG file. The original canvas size is 1000x200 pixels but I also want the site to use a liquid template so that if the viewer is using a monitor at 1024 width or higher the page will fill the screen.
    My target audience is mostly people in astronomy groups that I participate with and their screen resolutions will most like be 1280 and up. The images posted are usually 1000, 2000, and 3000 pixels wide. The reason for this is that there is very faint and small detail in these images and the larger sizes allows the viewer to scroll around in the full sized images to see this detail. There are links so the viewer has a choice of how large an image they want to view. So this explains my rational behind the sizing and I'm left with how to make the header expand without distorting to various sized displays. Below is what I had designed. Am I asking for too much or just a bit too green to know what to do? Any suggestions would be extremely welcomed. The PSD file has the separate 4 layers. What I have though about is the header being multiple images:
    the actual background gradient image
    the DRO info floated left
    Glimpses of Our Universe centered
    image floated right
    Only issue is I'm not sure if this will work and if so what is the proper coding? I think there needs to be a div container and although I know how to create the div, inserting multiple items into it and using CSS to style them is confusing me. Is there a link to information on DIVs that would help explain this. From what I've seen from my Google searches I haven't seen anything that addresses this. Maybe I need better search terms.
    Thanks,
    Steve

    Nancy,
    I appreciate the feed back but this doesn't extend the banner across the page. I understand the header background color filling in the area to the right of the banner image as well as the background color of the body tag. I guess what I'm wondering is if it's possible to have multiple images in the header div tag? I may not even be explaining this correctly. If I were using a table to lay this out it would have 1 row and 3 columns with the gradient image as the background in all 3. I could keep the cell width set to a fixed number for the right and left cell while center cell would be able to span the remainder of the screen width to fill across the top of the page. The hight would adjust to maintain the aspect ratio. Does this make any sense?
    Basically the code below is what I'm after but using CSS to lay it out and not a table:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    table {
    background-image: url(images/banner_background.png);
    text-align: left;
    body {
    background-color: #000;
    .center {
    text-align: center;
    background-image: url(images/banner_background.png);
    .right {
    background-image: url(images/banner_background.png);
    margin: 1px;
    padding: 0px;
    </style>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th width="22%" scope="col"><img src="images/DRO_trans.png" width="325" height="200"></th>
        <th width="59%" class="center" scope="col"><img src="images/glimpses-astral.png" width="450" height="120"></th>
        <th width="19%" scope="col"><img src="images/Thor-3rd-300.jpg" width="300" height="198" alt="Thor's Helmet"></th>
      </tr>
      <tr>
        <td colspan="3"> </td>
      </tr>
    </table>
    </body>
    </html>
    If it's any help or you are curious, the png files can be downloaded here: http://www.astral-imaging.com/test_images.zip
    Thanks,
    Steve

  • Re-size an image in using the Image class?

    Is there a way to resize an image using the com.day.cq.wcm.foundation.Image class?  I wanted to extend the foundation image componet and have it resize to a specific height and width.  Is there a way to change the size of the image before you call image.draw(out) ?

    You also don't want to insert you resizing efforts prior to calling the image.draw method. The draw method doesn't actually render the image,  it draws the HTML img tag that your components print out. If you were to use the ImageHelper to get the layer and resize it that would not actually change the size of the image.
    Now that img tag will contain a URL to the image, and that URL will generally look something like this (unless you have customized your image components):
    /path/to/your/page/_jcr_content/par/textimage/image.img.jpg/1323947520848.jpg
    This URL is going to trigger a script or servlet that will be responsible for rendering the image. In the example above because the textimage component extends the parbase component and because URL includes the img selector it will end up triggering the servlet at /libs/foundation/components/parbase/img.GET.java. If you go into CRXDE Lite you can go to this file and look at the source code of this servlet and see an example of how it uses the layer to resize the image if that author edited the image in the smart image widget.
    You can also see example of servlets that resize and image ot specific preset sizes (as you want to do) you can look at /apps/geometrixx-outdoors/components/product/image/thumbnail.GET.java and /apps/geometrixx-outdoors/components/product/image/nav.GET.java.
    So what you would want to do is something like this:
    Create your own component at /apps/mysite/components/foo
    Create a servlet at /apps/mysite/components/foo/bar.GET.java - put your logic to resize the image here based on some of the examples
    Create your component JSP at /apps/mysite/components/foo/foo.jsp
    Create your component's dialog and in this dialog include a smart image widget - make sure you store your image on component node, not a sub-node. If you store your image on a sub-node you need to make sure the sub-node includes the same resource type as your main node).
    In your component JSP when you create your foundation Image object make sure to image.setSelector("bar") before you call image.draw()
    That should result in an image URL that looks like /path/to/your/page/_jcr_content/par/textimage/image.bar.jpg/1323947520848.jpg
    Those steps aren't tested - so I may have missed something or mistyped something, but it should point you in the right direction.

  • How do I fit a background image to fill the entire page?

    Hi,
    could anyone please tell me how I use e.g. a jpeg image as a background image that fits the entire page without getting horizontal or vertical scroll bars?
    Thanks

    Hi Pziecina and Nancy O.,
    thank you so much for your mails. However, I'm still trying to figure this out.
    @ Pziecina...I studied the source code of your webpage and tried to insert parts of it into my own page in different variations. The solution to my problem must have something to do with CSS and img src height and width. All I get is a white page. I found out that an image size set in Photoshop apparently doesn't have any effect on whether the image fills the browser 100% or not.
    @ Nancy O. What I'm trying to do is to use one single image as background for a single page on the website, I'd like to construct. An image that opens up to the entire width of the screen...not just the browser. I imagine this with layers of transparent/solid color for text fields. I studied the website page, you suggested and a repeat action is not what I aim for. And I realize that maybe I'm thinking too much in Photoshop terms...thinking I can do similar actions in Dreamweaver.  I'm well aware of the whole thing being 'too much' in terms of design and usability but if you check out www.frauhaus.dk I think that works beautifully, although it doesn't open up to the entire screen. I'd like to see if that design concept will work for my own website or if it's going to be too confusing.
    And to both of you I really appreciate your time and input, thanks. Even though I'm still getting grey hairs as a beginner I keep thinking that there's got to be a solution to this.
    Best regards from MissRaspberryDream

  • How do i get a still image to fade the same way and at the same time as a video?

    I have a video stacked on top of a still image. When i add a transition, the still turns to a black screen while the video fades in accordance to the transition. How do i get the still image to fade the same way and at the same time as the video?

    I do. I've applied it to both the  still image and the video. Say i used the lens flare transition. If i apply it to both the video and the still image, the video will dissolve in to the next frame, but the still image will go to a black screen and then jump to the next frame. Its almost as if i inserted a black frame instead of a transition, but only for 2 seconds. Below is kind of a peek what it looks like.

  • How to Work-around Fixed Border Image used in the template?

    Thanks everyone for the responses to the CSS question posted.  Here's the real problem I was trying to solve, I'd appreciate your learned thoughts and suggestions.
    My son was a good visual eye and he's built a website for a part-time business he's created at college using a downloaded template.  But, he used and modifed the  PHOTOSHOP version and then saved the web sliced output.
    http://www.techcheckuva.com
    Decent looking but all jpg slices so unreadable by Google, etc.  I found the original HTML version of the site and was testing it.
    http://www.techcheckuva.com/ComputerTips/FW264/html/index.html
    But the site "breaks" when the text content is longer than the preset areas, as in:
    http://www.techcheckuva.com/ComputerTips/FW264/html/index1.html
    See -- the border images on the LEFT and RIGHT side move but do not stretch -- leaving white gaps.  Also, the center grey b
    Question: how do I FIX this design so the WHITE Center text area can STRETCH LONGER than the deafult length?
    Is this complex?
    Thanks all, so much.

    Drop shadows can be built into the #Container  background-image like so.
    Remove restrictive height values from your CSS.  Use default CSS positioning (which is no positioning at all) for the primary layout.  All those APDivs are going to drive you nuts.  Alignment can best be achieved with CSS  margins, padding and floats.  Below is a quick and dirty example.
    http://alt-web.com/TEMPLATES/3-col-white-gray.html
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to read and paste an image file in the Adobe Indesign document by using plugins?

    Hai i'm senthil...
    i had just now started working with Adobe Indesign plugins...
    Can any one tell me how to read an image file from the hard disk and paste that image file in a text box in the document...
    plzz send me the codings and in which file we want to attach these codings...
    thank you..
    bye
    senthil

    hai art,
    thanks for ur reply...
    i tried and developed the program for pasting the image from
    the database...
    But now i want to paste 3 images in a page...
    for this i had used while loop;
    But i'm having 6 images in the database...
    when the 4th image is in reading, automatically a new page will
    be created and the 4th image will be pasted in the newly created page.. i tried and develped for creating a new page...
    But how shall i paste the 4th image in the newly created page...
    is there methods or classes?
    plzz reply...
    thanks..
    senthil..

  • How might I deform/warp raster images like in the iPhone app Wobble?

    Hello all,
    I am very interested in applying the warp/deform effect seen in the iPhone app Wobble (it lets you define regions on a raster image and then deforms those regions as it gets input from the accelerometer or the user's touch as if they had adopted faux soft-body physics) to a game I am making, but I'm not sure how this effect was achieved.  Anyone have any advice as to how I might program an analogous effect using Flash and as3?
    Thanks,
    CCJ

    Don't know if it would work with a bitmap image, but this could be interesting.
    http://www.sakri.net/blog/2009/06/04/verlet-text-effect/
    Maybe some way to use that to wobble the displacement map? I don't know....

Maybe you are looking for

  • HT201269 how do i remove memory card from a 4s iphone

    phone broke need to send back, states to remove memory card . How ?

  • Error after installing Oracle Enterprise Linux (Release 5) on Dell T 110

    eth0      Link encap:Ethernet  HWaddr 00:15:17:F7:81:53            inet addr:192.1.1.11  Bcast:192.1.1.255  Mask:255.255.255.0           inet6 addr: fe80::215:17ff:fef7:8153/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  

  • Forms created through Adobe 9

    Sir, I have created one document through Adobe 9 forms, which includes Textbox, Labels & Combo box.  Can the document be saved in Adobe 7.0 reader so that i can fill the details in that from & then send it to someone ?

  • IDoc error on outbound side

    Hi. I'm setting up a communication with (JMS adapter -> XI -> IDoc adapter). No w to the problem. When we send the message with the IDoc adapter we get the following error. Message has error status on outbd. side We can see this message when I put my

  • Error while putting message in weblogic queue

    Hi Am having a bpel process which connects to weblogic queues using JMS Adapter and places XML content into the queue. I have imported the XSD too while creating the adapter. What i have observed is when i send a bulk of messages to be put in the que