Please help,problem in scrolling

i have JPanel on which i am drawing image,now i am putting 10 of this kind and adding it to one more jpanel ,and adding this jpanel to JScrollPane with scrollbars as needed,
But this is not working. help me please

You need to subclass your JPanel in which you are drawing images . Then override getPreferredSize() method , in which you have to return the total size of the 10 images you are drawing .
[ This should be dynamic , ie if you are drawing 5 images , return the expected size of 5 images ]

Similar Messages

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • , please help problem downloading apps since update

    Why can't i download apps since i updated to i06, i  log in with password .am then asked for three security questions fill this out click done and get the answer timed out try again, what is causing this please help.

    Settings>General>Reset (at the far bottom)>Reset All Settings
    That will ALWAYS work for the "3 Security Questions - Timed Out problem".  No data will be lost, but your network settings will be reset.

  • Help: Problem with scrolling my html items and placed objects they keep cutting through my top menu

    Basically whenever i place an html item in my Muse site or an object I encounter a problem when scrolling down past that object in the preview. I have a horizontal menu bar that sits on the top of my site and whenever I scroll down the html items and objects
    cut through my menu. Is there any way to rectify this? - i've tried pinning objects but can't figure it out. Any help would be greatly appreciated.
    Thanks,

    So you have a pinned Menu in the Master page but is being overlayed by the objects in page when you scroll down? If that is the case, select the Menu in the Master, right click on it and Move To Master Foreground.
    Thanks,
    Vinayak

  • Please help - problems with iPod Nano

    I saw a page in my Popular Science magazine and it had iPod Linux. So I went to the website installed it, and it worked!!! But the problem is , is that when I plug it in to my computer, it charges but won't show up as a drive. Please help!!!!!!!!!!!!!

    Even within the iPod Linux Project the Fifth Generation iPod and the Nano are unsupported hardware so you are pretty much on you own, however check these links out:
    iPod Linux Unsupported - What if Something Goes Wrong
    iPod Linux Project- My iPod is really messed up, how can I fix it?

  • Please Help: Problems w/Frames and Rollovers

    I've been having a problem recently w/making rollovers in
    Fireworks 8. Whenever I change the color of the text (intended to
    be made into a rollover link) in one frame, it changes the color of
    that text in all of the frames. I've never had this happen in the
    previous software version. Please help! Thanks!

    PSparky wrote:
    > I've been having a problem recently w/making rollovers
    in Fireworks 8. Whenever
    > I change the color of the text (intended to be made into
    a rollover link) in
    > one frame, it changes the color of that text in all of
    the frames. I've never
    > had this happen in the previous software version. Please
    help! Thanks!
    Make sure that Share Across Layers, and Share Across Frames
    are unchecked.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • Please help, problems running recovery

    hi, i have a satellite P755-S5262 RUNNING WINDOWS 7 64BIT WITH AN i7 PROCESSOR
    when i first got my laptop i was having some minor problems with it so i did a restore from the harddrive and that fixed things up. i made some recovery media and the went about setting it up, the made a backup with nere back it up 11.  later on more problems and i tried to restore from nero back up and backup didn't work so i tried recovery and it won't recover from the hard drive but my recoverey media worked and everything was fine.  so one late sleepy night 
    i triede to install some free software which didn't work so i uninstalled it using REvo uninstall and made a bad mistake, windows would not boot. most of the repair options, including toshiba recovery were not coming up.
    i had my media but after inserting disc one it said files were loading and the nothing happened.  anyway i finally got
    recoverey to come up but after choosing out of box recovery with partitions the same i got thew message preparing partitiuons and the error 08-0E89-0000 PARTITION preperation failed
    please help!

    If the problem is with the recovery media, ordering replacement recovery media might be able to help.
    If that doesn't work, it could be a failing hard drive.
    - Peter

  • Please help: problem configuring a SQL server datasource in Websphere.

    I am using Rational Developer 6 and its integrated testing server (websphere v6). When configuring a data source for SQL server, I did the following steps in admin console of the test server:
    1. Created a JDBC provider, using WebSphere embedded ConnectJDBC driver for MS SQL Server;
    2. Created a datasource under the previously created JDBC provider, filled in the server name, DB name and port number (1433 for SQL server);
    3. Created a J2C authentication alias that has the login info of SQL server;
    4. Assigned the created J2C alias to both component and container managed authentication alias;
    However, when I click "Test Connection", it always gets back to me with an error "java.lang.Exception: java.sql.SQLException: [IBM][SQLServer JDBC Driver]Error establishing socket. Connection refused: connectDSRA0010E: SQL State = 08001, Error Code = 0.".
    My ultimate goal is to configure a SQL server datasource so that I can configure Kodo to use this datasource.
    Can some one please help? Thanks in advance.

    Try this:
    http://www-1.ibm.com/support/docview.wss?uid=swg21210871
    I am yet to test this. I am going to download latest SP for SQL Server 2000 and install it. I hope it will do the magic.

  • Please help,problem when creating Jar.

    I am somewhat new to Java...But I made a simple program,and then tried to create a Jar file.
    Now all my Java commands where in /program files/Java/JavaSDK/Bin,it was a hassle to CD to that everytime I wanted to use a command,so I coppied all the commands in BIn directory,and put them in System 32,I suppose this is ok? That was my first question.
    My next one is,when i try creating a Jar file..I suppose I am doing ti right,but the entire command prompt fills up with code,the ASCII and all the symbols....and a REALLY loud constant beep comes from my computer,and speakers..and it seems it doesnt create anything by this code in the screen and th noise..
    Please help.

    My next one is,when i try creating a Jar file..I
    suppose I am doing ti right,but the entire command
    prompt fills up with code,the ASCII and all the
    symbols....and a REALLY loud constant beep comes from
    my computer,and speakers..and it seems it doesnt
    create anything by this code in the screen and th
    noise..It is from jar help:
    Example 1: to archive two class files into an archive called classes.jar:
    jar cvf classes.jar Foo.class Bar.class
    Example 2: use an existing manifest file 'mymanifest' and archive all the
    files in the foo/ directory into 'classes.jar':
    jar cvfm classes.jar mymanifest -C foo/ .

  • Please help : Probleme freeze Adobe Média Encoder CS 4 with 720P YUV setting

    I work on editing movie : YUV 1280/720p 25i 48khz 16bits... (24 minutes - 68go)
    lastest versions of premiere pro - media encoder - after effect on my pc (quadcore, 4Go, 4x1T hardrives)
    Work on Vista SP1 SP2
    Media encoder always freeze. When i clicking starting queue... I can't export movie.I try on several stations.. Same problem. I try on several projects...same problem...
    Somebody can help me ?
    I have the same probleme everytime.
    Premiere pro play the movie very well , not problem... but after that always média encoder... freezing...
    If someone can help me please.

    i reinstall, nothing change..
    i try to close caption the movie adding titles on master...i try to export..
    same problem...
    Just a bit crazy
    Manuel Liminiana
    Mac Guffin Production
    www.mac-guffin.net - [email protected]
    06 75 38 21 43
    Centre Factory
    www.ecole-factory.fr - [email protected]
    04 37 48 00 21
    2009/10/31 Jim Simon <[email protected]>
    Yeah, that seems like a freeze.
    >

  • Please help - Problem with loading swf's (running very slowly)

    Hi
    I have posted this problem up in the last few days so I built a quick demo of my problem. Can somebody please download it and take a look at it and see what I'm doing wrong?
    You can download it here at:
    http://www.bounceworld.ie/download/Demo_Test.zip
    The external swf's when loaded.....run very very slow; sometimes unresponsive as if there is a script running in the background. I'm using keyboard commands to navigate through the screens - eg:
    on (keyPress "<Space>") {
    gotoAndStop("scene02", "firstframeLabel");
    Thank you for your help!!!!

    Hi
    I'm trying to use Key Listeners to solve my problem.
    I don't know much about key liseners so can somebody help me out.
    I have the following on a keyframe yet it still wont jump to the certain frames when I press the relevent keys. Am I missing something?
    stop();
    KeyListener = new Object();
    KeyListener.onKeyDown = function() {
    if (Key.getAscii() == 38) {  // UP key
    gotoAndStop(89);}
    if (Key.getAscii() == 40) {  // DOWN key
    gotoAndStop(91);}
    if (Key.getAscii() == 37)  // LEFT key
    gotoAndStop(88);}
    if (Key.getAscii() == 32) {  // SPACEBAR key
    loadMovie("application_01.swf", "container");}

  • TS2570 My Mac stays stuck on the grey screen. Doesn't boot up. I've tried everything the shift key to safe boot still doesn't boot. I've tried the option key n only has one option to go into. please help. problem Is I bought off a friend so I have no disk

    My Mac stays stuck on grey screen. I've tried the option key. The shift keys. Nothing helps. The problem is I bought the computer off a friend and I don't have any disks. Any suggests would be great..

    Can you see a serial number anywhere? Don't post it here, just let me know if if you have it.

  • OS 10.6 - Please help - problem restoring system from time machine!

    Hi there,
    Today I installed a little program to convert flac audio files to mp3. When I ran the program the computer froze, so I rebooted but then I could move the cursor but not click on any menus or icons on the desktop, they just wouldnt respond - so basically I couldnt use the computer. After re-booting a few times with the same result I decided to reinstall the system using time machine from an external hard drive. I reinstalled OSX, then reinstalled Snow Leopard, then reinstalled the system from a previous save from Time Machine. It said the installation was successful, but when the computer restarted a message comes up saying "You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again". Ive done this about 5 times now but it always just says the same message without starting properly. WHAT DO I DO???? I really need to use my computer tomorrow so any help is hugely appreciated!!! TIA
    PS. i have done a hardware test in "loop mode" and it says everything is fine

    HiDef Jules wrote:
    Hi there,
    Today I installed a little program to convert flac audio files to mp3. When I ran the program the computer froze, so I rebooted but then I could move the cursor but not click on any menus or icons on the desktop, they just wouldnt respond - so basically I couldnt use the computer. After re-booting a few times with the same result I decided to reinstall the system using time machine from an external hard drive. I reinstalled OSX, then reinstalled Snow Leopard, then reinstalled the system from a previous save from Time Machine.
    how exactly did you reinstall the system from TM? please give details. the correct way to do it is to boot from the snow leopard DVD and use the "restore system from backup" utility in the Utilities menu. there is no need to reinstall anything prior to using that utility. the restore utility wipes your hard drive and restores it to the state it was in at the backup time.
    It said the installation was successful, but when the computer restarted a message comes up saying "You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again". Ive done this about 5 times now but it always just says the same message without starting properly. WHAT DO I DO???? I really need to use my computer tomorrow so any help is hugely appreciated!!! TIA
    PS. i have done a hardware test in "loop mode" and it says everything is fine

  • Please Help: Problem Playing Songs Imported from CD's

    I know this question has probably been asked before but I have yet to find an answer to help me fix my problem. When I upload songs from a CD to itunes they won't play. It skips over them. There isn't any wierd symbols next to the song that says that there is something wrong and I am not getting any error messages. The only thing that is wierd is under time it says "not available". I am really bad at using computers and any responses will be greatly appreciated.
    P>S> I have windows 2000 but my computer used to have windows XP.

    Aloha,
    Just a suggestion since I've had a similar problem which has taken me weeks to fix! What happened was the iTunes library files got trashed somehow, but the music was still there! Use Windows Explorer ( run explorer.exe ) and look at My Documents\My Music\iTunes\iTunes Music\ and see whether your music is still there or not. If it is, you're going to have to reimport each album from within iTunes by clicking on File, Import Library, which will bring up a window...browse to the iTunes Music Folder and click on each album...a real pain, but it works! This may leave you with a lot of duplicate songs in your music library which will have " ! " exclamation marks next to them ...they have no links...which you'll have to delete manually ( just the ones with the ! next to them ).
    It's important that you back up the two files, iTunes Music Library.xml and Itunes Library.itl every day!!! ( and find some easy way to do it...I not only use an auto backup, I actually copy and paste them into a 'saved' folder. Without them, your iTunes music is ..um..useless!
    Hope this helped.
    DRDRJAY
    Kailua-Kona, Hawai'i

  • PLEASE HELP - Problem with 2 column fixed template in Dreamweaver CS3

    I am trying to create a website using the 2 column fixed, right sidebar, header and footer html template in Dreamweaver CS3.  I tried putting a picture in the right side bar as well as with in the main content or left portion of the page, and neither picture is showing up when I view it in any of the browsers I'm using.
    I've made some minor changes in colors and sizing, but other than that no other changes.  The pic I put in for the header is showing up just fine though.
    Any help or advice to solve this issue would be greatly appreciated.
    Thanks!!

    Here is the base Dreamweaver code including the pic references that I'm trying to show on either side - when the browser opens, it only shows a blank space where the pics should be... let me know what you think.  Thanks!!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/AL TemplateNEW.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Temp Home</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    .twoColFixRtHdr #container {
    width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
    .twoColFixRtHdr #header {
    background: #DDDDDD;
    padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .twoColFixRtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixRtHdr #sidebar1 {
    float: right; /* since this element is floated, a width must be given */
    width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px;
    .twoColFixRtHdr #mainContent {
    margin: 0 250px 0 0; /* the right margin on this div element creates the column down the right side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    .twoColFixRtHdr #footer {
    padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    .twoColFixRtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixRtHdr #sidebar1 { width: 220px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]--></head>
    <body class="twoColFixRtHdr">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="sidebar1">
        <h3>Sidebar1 Content</h3>
        <!-- InstanceBeginEditable name="RightSideBar" -->
        <p>Right Side Bar Content - - -    </p>
        <p>Inserted pic below here</p>
        <p><img src="/images/Syntergy5.jpg" width="123" height="105" /></p>
        <p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the right side of the #mainContent div if it will always contain more content. </p>
        <p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</p>
    <!-- InstanceEndEditable -->
        <p> </p>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> Main Content </h1>
        <!-- InstanceBeginEditable name="MainContent" -->
        <p>Main Content - - </p>
        <p>inserted pic below here:</p>
        <p><img src="/images/Kelly1.jpg" width="285" height="236" /></p>
        <p> </p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero. </p>
        <!-- InstanceEndEditable -->
        <p>
          <!-- end #mainContent -->
        </p>
      </div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    <!-- InstanceEnd --></html>

Maybe you are looking for

  • Where can I download the application "Address Book" for OS 10.3.9

    Some how or another my address book got dumped off my desktop and now I cannot get it back. It will open using my email account but that does not show the mailing address on other info. I tried using backup which had been uploaded to my idisk to "res

  • Optical Out... Still Supported?

    I used to use optical out on my MacBook all the time. I'm one of those people who still pulls out his MD player from time to time and I'm thinking of getting another MD deck. Anywaayyy... I haven't used the optical out for some time and now when I ho

  • Dleletion of alert 7103 of particular purchase order item

    Hi Experts, I have an issue regarding deletion of alerts in sap ich web UI related 7103(purchase order over due). For a particular order, 2 items are already delivered and status shown as delivery completed. But still, over due alert is displaying ev

  • Unable to switch between Tabs in a af:panelTabbed component

    Hi all, Good Day, I am working on a POC which has 6 tabs in an af:panelTabbed component. All the tabs (af:showDetailItem components) are with the default properties. While running the application it is working fine till one or two tab clicks but afte

  • Apple script needed!

    I need an applescript to JOIN artist and track name, so i can have a complation album as artist, and still know who the song is by. For example: This is how it is now.... Track            Artist                   Album Track X        Artist Y