Printing JPanel that is added to the JScrollPane

Hi
I am facing a typical problem while I am printing my JPanel.
My Panel is added to the JScrollPane.And I added 200 Images to the JPanel (20 rows and 10 columns).
To see the 6,7,8,9,10 Images I have to scroll it left side and for 80 to 200 images I have to scroll down.
Now if i print my JPanel it is only printing the Images those are visible to the user at a time. If scroll down and say print again it is printing the bottom components and missing Top components (Images).
I want to print all the images at a time.
Can any body suggest me how to do it. My Panel implements Printable interface and the following is the print method that I implemented
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
componentToBePrinted.paintAll(g2d);
return(PAGE_EXISTS);
Thank you and Regards
Kiran Kumar Vasireddy

could you publish the entire code or at least your paintall method....
Loic

Similar Messages

  • HELP! Lexmark 5470 not print. Printer has not been added to the utility.

    Hello, I recently acquired my new MB pro and I was trying to print a normal document. I used my Lexmark 5470 installation software and everything seemed fine until I actually tried to print something. It is not a new printer, I use it everyday with my PC.
    After the installation, I was able run the functions of cleaning the ink and of putting the page in line, but not the "print a sample page" function. It said that the printer had not been added to the printer's utility. I checked again and i chose the driver from a list where there were 3 different options for the 5400 series. None of them worked. I downloaded the drivers from Lexmark. Did not make any difference. I unninstalled and reinstalled from the lexmark printer's cd. No difference.
    I've looked everywhere and don't seem to find any particular errors from my part. The printer works fine with my Vaio laptop on windows XP.
    Any suggestions?

    Driver for 5470 is bundled with the Mac OS X 10.5 DVD. Do not use the drivers available from the web or from the CD installer that came with your printer.
    Since you have already installed your printer, uninstall it, reset printing system (http://docs.info.apple.com/article.html?artnum=301185) and reinstall.
    Instructions for installing the bundled driver are in http://www.lexmark.com/lexmark/sequentialem/home/0,6959,2048165961160493508_0en,00.html
    Let me know how it goes.

  • I imported a video I make in another program and I played it back in the video editor and I like the pan and zoom that was added by the program how do I save a copy with the effect of Premiere elements 12

    I imported a video I make in movie maker program and I played it back in the premiere video editor and I like the pan and zoom that was added by the program how do I save a copy with the effect of Premiere elements 12
    all I did was played it back how do I save that and make a new version of the video beacause when I save a copy the effect look I was trying to save was not there.
    Rodney
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

    silkman1
    I would be glad for the opportunity to customize a Premiere Elements 12 answer to your Premiere Elements 12 issue.
    But, I want to make sure that we are together on the details. This is my understanding of what you have written. Please review and let me
    know if I am misinterpreting anything that you have written.
    You have a video created in Windows Movie Maker.
    How did you output the video from Windows Movie Maker...wmv or mp4, what was the frame size and frame rate of that export?
    Next you import that video into Premiere Elements 12 (can we assume that this is on Windows 7, 8, or 8.1 64 bit?)
    From what you wrote, you have applied a pan and zoom effect to your video in Premiere Elements.
    Now you go to export the Premiere Elements 12 Timeline content with your video with the pan and zoom applied.
    But, the pan and zoom effect is not seen in playback of the export.
    Is all of the above correct so far?
    If so....we are going to need some more details from you...
    a. What is the project preset that you or the project are setting to match the properties of the video coming from Movie maker? See Edit Menu/Project Settings/General and the readings for Editing Mode, Timebase, Frame Rate, and Pixel Aspect Ratio even if the fields look grayed out.
    b. Are you applying the pan and zoom effect with the Pan and Zoom Tool, fx Effects Presets, or keyframing the Scale (for Zoom) and
    Position (for Pan) in the Motion Panel expanded?
    c. What are you selecting as your export in Publish+Share/. Please give details...are you using default settings or customizing the export
    setting under the Advanced Button/Video Tab and Audio Tab of the preset selected?
    I am suspecting some sort of mismatch of your project settings or some problems with working with the Pan and Zoom tool. I need
    your answers to help me help you. If I have written anything that you do not understand, please let me know. I will re-write if necessary
    so that we are in sync to resolve the issue.
    Thanks.
    ATR

  • I connected my iPad to my iMac and in iTunes I went to Apps File Sharing and added a video on my iMac to iPhoto on the iPad.   I cannot find the video that I added to the iPad. I looked in iPhoto and the camera roll. Any ideas? (BTW, this is a video whi

    I connected my iPad to my iMac and in iTunes I went to Apps > File Sharing and added a video on my iMac to iPhoto on the iPad.
    I cannot find the video that I added to the iPad. I looked in iPhoto and the camera roll. Any ideas? (BTW, this is a video which I previously had on the iPad but deleted and now I want to add it back.)

    Thanks for your reply. I looked in the Video app but it is empty. When I connect the iPad to iTunes on the iMac and look in  Apps > File Sharing > iPhoto, the video that I added is in iPhoto on the iPad but I cannot actually find the video in iPhoto on the iPad.

  • Reset your printer so that it will accept the cartridges that are available in your new country.

    I Have an HP Deskjet Ink Advantage 3525 e-All-in-One Printer which uses HP 670 cartridges when I was at Best Buy in Arlington VA, looking for cartridges no one ever heard of them so we found HP 564 which list Deskjet 3525 as one of the printers they can be used but I get the the following error messages 'Incompatible Cartridges' when I was looking in the HP support web site i came accros the following coment "HP will not supply new replacement cartridges for your printer, but will help to reset your printer so that it will accept the cartridges that are available in your new country."  so can my printer be changed to use HP 564 cartridges.

    Hi there,
    I understand you're having issues with your HP 3525 printer. I will certainly do my best to assist you with these issues.
    You can perform a hard reset on your printer to help get rid of the ink depleted error. You can also try the steps in this cartridge troubleshooting document. These steps will hopefully rid your printer of the depleted ink error if it's a false error.
    Hope this helps, have a great day!!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • EDiscovery_SharePoint 2013_After a set of content is placed on hold in a location, how do I make sure that anything added to the same location

    Hi everyone,
    After a set of content is placed on hold in a location, how do I make sure that anything added to the same location,that meets the filter (e.g. keyword) gets added to the hold automatically ?
    Right now the only way I can do this is to take off the hold ,re-apply the filter to the source and then enable the hold. That isn't sustainable.

    @arcycapa,
    If you have a Mac, you can download iDentify2 (http://identify2.arrmihardies.com/). It is free. You can use that change or set your contentRating. If you are on Windows, there is a commercial tool called MetaX. or download a free command line tool called AtomicParsley from (https://bitbucket.org/wez/atomicparsley). Unzip the file and run this command (AtomicParsley "C:/Users/Home Videos/name of the file.mp4" --contentRating R) from the DOS prompt without the parenthesis. Please keep in mind the forward slash in the path name listed above. This would generate a temp file. You can rename the temp file to the original file name. Just a word of caution, please make a copy of your original file somewhere. Just in case.
    Shekhar.

  • Don't see a new printer that I added in the printer list

    I have an iMAC running Mac OS X.
    I have a Canon i950 printer. I've added the print driver using either the version from Canon or from the OS X disc #1 optional install for print driver.
    If I use USB connection, then my printer works fine.
    I wanted to use a network print server. My same setup for a HP Laserjet 1200 works just fine because I can see the printer in the printers list.
    However, I cannot find the Canon i950 printer driver in the printers list. What am I doing wrong? For an optional printer driver, how do I adder to the list of available printers or is there way to add it manually.

    Your printer doesn't show up when trying to add because the driver doesn't support network printing. The print system in OS X is CUPS. The network protocols require CUPS drivers (as opposed to Carbon drivers). Canon doesn't provide CUPS drivers, and recent Canon models aren't supported by Gimp-Print (CUPS drivers). The only CUPS driver I know of for your printer is from www.printfab.net.

  • How to Print Fields that are Centered on the Label

    Labview 6.1 - Which VI do I call or Attribute do I set to make a String Field "Centered" on its Row on a Zebra Label? I need to specify the String Data, the Font Size and Centered about Position. One Centered field per Row (3 Rows). I am using the NewReport.vi, SetReportOrientation.vi, SetReportFont.vi AppendReportText,vi, PrintReport.vi and DisposeReport.vi

    LabVIEW does support the windows printer driver, I was thrown off by the fact that you said "zebra label." We have a report generation toolkit that will allow you to create more advanced reports and can programatically control microsoft word and excel to create as complex of a document as you desire.
    Our basic report generation toolkit that ships with LabVIEW supports simple reports and layouts. It also allows for HTML reports. You can then append any HTML formatting to the report that you desire (such as the center tag).
    You could also continue to use the standard report by appending spaces to the string you are printing. For example, if you know that your printer is 80 characters wide (using a fixed width font), you can take the size of the string "len" and append (80-len)/2 number of spaces to the string. If you need help doing this, let me know.
    We actually implimented a barcode label printing VI that printed an entire front panel. We created a VI that had an array of controls and we formatted the controls to our desire (one was a centered string). We then used the "print panel vi" in the block diagram. That we we simply wired the inputs to the VI and it printed the front panel to the printer onto the labels (we use this on our large shipments that have more than one item).
    The ActiveX examples that ship with LabVIEW and on our website are very good starting points for creating word reports, but if you are going to use LabVIEW to manipulate Microsoft Word and Excel, I really suggest getting our Report Generation Toolkit for Microsoft Office. The RGT (Report Generation Toolkit) contains a complete set of easy to use VIs to programmatically create and edit Word and Excel documents. The Microsoft Office ActiveX interface is huge, and it is often times hard to find good complete documentation on how to perform certain tasks. The RGT VIs hide all of the ActiveX complexity and really simplify the tasks, but as a developer I really appreciate the fact that the VIs contain all of the ActiveX code on the block diagram so that I can look at them as examples and modify them to my desire. You can find out more about the RGT from ni.com, click on Products, LabVIEW, LabVIEW Addons, LabVIEW Toolsets, LabVIEW Report Generation Toolkit.
    I hope some this gives you an idea you can run with.

  • How to remove the 0 that is added to the formula result

    Hi,
           I have a formula field. i placed the formula field in the group footer. zero (0) is added to the formula result. if the formula result is 8 then i am getting 0.00 and 8 as data when i select the browse field data of that field . how to remove the zero. i also used supress formula for the field. but it is not working. any idea on this regard.
    Regards,
    Shanthakumar.

    hi,
      Formula : GRP1Focus
                  if ({@Grp1BrandName}={@All Brand Names})  then {@FocusValue NBSH}. when i right click the formula field and select browse data. 0.00 and 8 are displaying.
    Suppress formula
             GRP1Focus=0
    Regards,
    Shanthakumar

  • HT4528 im trying to find out how u delete a song that u added from the itunes radio...from iphone???

    i am trying to find out how u delete a song that u added from itunes radio....from iphone????

    HI nhenson04,
    If you are looking to delete downloaded content on your iPhone, you may find the following article helpful:
    Apple Support: How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Regards,
    - Brenden

  • How do I delete photos on my iPad that were added with the SD card adaptor?

    I added photos to my iPad using the SD Card Adaptor over a year ago.  They now appear in the 'Photos' tab on the iPad.  They are not in Photo Stream and they do not appear in Albums under Camera Roll or Last Import.  I have connected my iPad to the PC and opened the DCIM folder and they are not there at all.
    I have Googled this question repeatedly and can not find an answer. I have viewed many YouTube tutorials that I thought would give me the right answer and... nope.
    Can anyone please help?

    Thanks Clyde.  But the photos do not show up in iTunes either!
    Well, let's just say, that I can't see them there! All I see in iTunes under Photos is the option to Sync photos.

  • I want to remove an incorrectly spelled word from my spell check dictionary (--a word that I added to the dictionary).

    While writing an e-mail, I added the name of a place to my spell check dictionary. Moments later, I realized that I had misspelled that place name. Now I want to remove the incorrectly spelled name. Is there a simple solution?

    See http://kb.mozillazine.org/Deleting_spellcheck_entries

  • Firefox will not display characters that were added by the webmaster on user PC?

    I employed a company to design a site for me which is great. Then I asked them to add a small button/image in the back end (admin area) that when clicked on will send an email. No image will display so I got them to change it to Text format, still it is not showing on my end. The design company are able to send me emails showing where it is but I cannot see it. It is worthwhile mentioning that it will not display in either IE8 or Opera, Is it a firewall problem ? Or a setting on Windows 7?
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; AskTB5.6)

    Can you post a link?
    Did you try to bypass or clear the cache?
    Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press Ctrl + F5 or press Shift + Ctrl + R (Windows,Linux)
    * Press Shift + Cmd + R (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]

  • How do I remove an icon that I added to the Home Screen in Safari?

    I accidentally added a webpage icon to my Home Screen in Safari and cannot remove it.  On the Home Screen the icons do not act like they do on the other  pages of the iPad.  They do not jiggle nor can they be dragged to be removed.  In the process of trying to get rid of some I ended up creating duplicates.  How can I delete some of these?

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • My ical froze and keeps trying to process a cut and paste that I added to the calendar.  I have to force quit but the next time I open it is still frozen.  Can't use at all.  Help!

    My iCal has frozen when I tried to add a cut and paste to the calendar for notes on a meeting I'm attending.  I have to force quit but the next time I open it is still frozen and everything I've tried doesn't erase the message so I can continue using.  Can't use at all.  Help!

    I have the same problem--have you found a solution?

Maybe you are looking for

  • Java Card File System ...Please reply

    Hi all , I am working on Java Card technology for last one year . Presently I am facing some problem regarding some file concept of java card . I know that Java Card 2.1 does not support file system . But I want to simulate the file system in java ca

  • My Apple TV flashes a light whenever I try and use the remote

    I have recently lost my original remote for my Apple TV and so I bought a new remote. I've tried  to set it up by pressing the right and menu button for six seconds, but the Apple TV just flashed a light. This also happens whenever I press any button

  • After updating to Yosemite, my Canon EOS Rebel will no longer download to iPhoto

    After updating to Yosemite, my Canon EOS Rebel will no longer download to iPhoto

  • ClassNotFoundException is not thrown

    Hi, I compiled my source code using jre 1.4.1_03-b02 and running them using jre 1.4.1_02-bo6.The problem is, JVM is not throwing ClassNotFoundException if some .jar files required for running the application are missing. Can anyone tell me why JVM is

  • Basic question about storage and safety in iMovie '11

    A very basic question about storage and safety: I want to keep a backup of my raw footage on my external hard drive prior to begin working on the movie in iMovie. I want to do this: 1. Upload the digital files from my camcorder to my Desktop *(as opp