Scrollbar doesnt adjust if printing is out of focus of JPanel

Hi all, I have added a JPanel to JScrollPane.I draw something in JPanel (for example a line). But if the line does not fit into JPanel then it is drawn out of focus area. But my scrollPane do not give me facility to see the line that is out of focus area. I am not able to explain properly.
Basically I want that by using horizontal and vertical scrollbar i am to see the graphics in the JPanel that is not shown. any sort of advice is welcome.
--reena

You have to override panel's method getPrefferedSize to reflect new size of content.
regards
Stas

Similar Messages

  • How do I adjust the print size of a photo?

    I created a collage in PSE 10 and took the photo to Ritz to have printed out in an 18" x 24" poster.  When the file was read into their computer for printing, the sizing came up as 18'1/2" x 24".  Printing the photo as is will cut 1/2" off of the collage.  How do I adjust the print parameters of my photo file in PSE 10 to be exacetly 18" x 24"?  Thanks.

    Here is my suggestion:
    Open a blank, new file (File>new>blank file) size 8.5x11"
    Open the collage
    Go to Select>all
    Go to Edit>copy
    Go back to the blank file created in step #1
    Go to Edit>paste. The collage will be on its own layer
    Access the move tool, and with the corner handles resize the collage. Using the corner handles should preserve the aspect ratio. If you open the rulers, you will have a point of reference as you go along.
    Print a draft copy to see if it will be suitable in the frame..
    Please report back with your progress.

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • I have created a document in in design but when i print it out the borders are wrong. How do I fix this?

    I have created a document in in design and have put a border around a photo and text box, but when i print it out the border is not even. How do I fix this?
    Barry

    Hello John, Thanks for replying. I have attached the document as a PDF (is this OK). I have been tasked with designing this certificate for my local RSL sub-Branch for our up coming Centenary Of ANZAC commemorations. As most of what I do has been self taught I’m sure there is a simple answer to my problem. I have adobe CS6. This is how I set the document up. I first used the rectangle frame tool then pulled in a photo from Bridge and faded it.I then did the same with the logo. For the text I used the text frame then used the frame tool twice to form the border and adjusted the thickness. Then I set all of the margins and the document to A4  . When the document is printed it shows even borders of 12mm on the top bottom and right side but the left side is 34mm. I hope this makes some sense to you John.
    Kind regards Barry

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • How can I print directly out of Pages on my iPad?

    How can I print directly out of Pages on my iPad if my Brother printer is not airprint compatible? I currently have a Brother MFC-J615W and have downloaded the Brother iPrint app; but that only works with pictures and PDFs it seems.  I know I can use the cloud to transfer and just print from my macbook, but I am starting school and would love to cut out that middle step if possible.  I know... how lazy is that? But I feel like I should be able to make it work with a little ingenuity.  Thanks for any info you can provide.

    Try to arrange them manually afterwards: afaik, it is impossible to force an order when syncing:
    See MartyLightroom's post:
    Re: How do you arrange the albums in chronological order in iPhoto ? 

  • How can I make a backup listing of all of my Firefox bookmarks, with complete URLs, so I can print it out from a word processing document?

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I make a backup listing of all of my Firefox bookmarks, with completely written out URLs, so I can print it out from a word processing document? Please email me the answer-
    [email protected]
    <blockquote>duplicate. Locked. Please continue [https://support.mozilla.com/en-US/forum/1/727213 here] -MJB</blockquote>
    == Firefox version
    ==
    2.0.0.4
    == Operating system
    ==
    PPC Mac OS X Mach-O
    == User Agent
    ==
    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    == Plugins installed
    ==
    *-Netscape Navigator Default Plug-in
    *Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Test Your JVM.
    *Plugin that plays RealMedia content
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 9.0 r260
    *Provides support for Digital Rights Management
    *Provides support for Windows Media.
    *Java 1.3.1 Plug-in (CFM)
    *Macromedia Shockwave for Director Netscape plug-in, version 8.5.1
    *Java 1.3.1 Plug-in

    Hello.
    Although possibly not related to your problem, I have to remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. On top of this, it has known unpatched bugs and security problems. I urge you to update to the latest version of Firefox, for maximum security, stability, performance and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].

  • CS5.5 InDesign: Last 2 pages of multipage duplex print come out 1-sided

    Using CS5.5 InDesign, last 2 pages of a multipage duplex print come out 1-sided. Same page ranges print OK in PDF. Printer is HP Color Laserjet 4700 with latest device firmware. Have latest HP drivers on Mac OS 10.7.
    This is a recent problem. Had no problems with CS5 InDesign duplex printing from this computer to this printer until a couple weeks ago. First sign of an issue was that printing slowed to a crawl. Literally 5 minutes to resolve one page to the printer. Updated the printer firmware and speedy printing returned, but then noticed the duplex printing issue. Problems began about the same time as a Mac OS system update, but I'm not sure which came first, the software update or the printing issues. No problems with the printer from other software or other computers on the network.
    I have read that certrain InDesign print settings sometimes produce unexpected results in some computer environments. Am hoping this is the case, and someone on this forum will know the trick.

    evollowitz wrote:
     ...and someone on this forum will know the trick.
    I think for most users, "the trick" that produces the most consistently predictable result is to never print directly from InDesign; always go to PDF and print that. Personally, I haven't even attempted to print from InDesign since CS2.

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Sub: Tax Combinatiom. Tax rate, tax Amount in the print lay out design of t

    Dear all,
    Sub: Tax Combinatiom. Tax rate, tax Amount in the print lay out design of the A/R Invoice
    I have to Create a Print Lay out design of the A/R invoice for the Indain standrad please provide me some solutions for the following problems to locate the Tax combinations,Tax rate  and the Tax amount in the PLD  A/R Invoice ,
    PACAKGE  SAP B1 2005B
    Need a standrad solution as per the requriment
    Eg: Row Level
    Tax Code created is BED+VAT
    Tax combination details is
    Name of Tax type   Rate
    Excise                     16%
    Ecess                    2%
    Hcess                    1%
    VAT                       4%  
    Row No     Item  Qty   UnitPrice  Tax code  Total(LC)    Tax Amount
      1             X      10     10000      BED+VAT   100000      21139
                                             (Excise =16000,Ecess=320, Hcess=160, VAT=4659)
    2              Y      5      20000      BED+VAT    200000       42278
                                            (Excise =32000,Ecess=640,  Hcess=320, VAT=9318)
    In Print  Lay out Design Requried is the deatils of Tax code combination , Rate and the Tax Amount in the followig way 
    Excise    16%   =48000
    Ecess     2%    =960
    Hcess     1%    =480
    VAT       4%    =13977
    Please send the feedback as early as possible urgently requried
    for the further details send the feedback
    Reagrds
    Mr.Chitrasen

    Hi experts,
           Pls anybody have an answer to my question, i'll be very thankfull to u,
                     I wanted to display the Tax Break ups in Invoice say,
    ECess            25
    Vat                 56
    Excise duty    32
    I've tried a lot with many of the SAP Forum thread but the results is not satisfactory..am using SAP Business One 2007 b
    pls anybody who can guide me with step by step PLD creation for this problem.
    I done the below steps in PLD
    In Repetitive area 1
    Field_1:  Table-> OSTA                    
                  Column-> Type                               
    Field_2 : Table-> OSTA                  
                  Column -> Code                               
    Field_3:  Table-> OSTA                   
                  Column-> Rate
    Field_4:  Table-> OSTA                  
                  Column-> Name  
    Field_5:  Table-> A/R Invoice Tax amount per document
                    Column-> Tax amount
    Field_6 : Table-> A/R Invoice Tax amount per document
                    Column-> Base amount
    Field_7 :  Formula ->  Field_6 * Field_8
    Field_8 :   Formula->  Field_1==1
          NOW I SORTED REPETITVE AREA 1 WITH 'SALES TAX AUTHORITIES;cODE' AND TICKED THE CHECK BOX 'SUMMARY'
        AND MADE THIS REPETITIVE AREA INVISIBLE.
    IN Repetive area footer
    F_01 :    Formula->   Field_4       
    F_02 :    Formula->   Concat(Round(F_rate,0), '%')
    F_03 :    Formula->   Round(ColSum("F_tax_amount"),2)
      I grouped the Repetitive area footer as Group 1
                                here i get the result but the Tax Rows are repeating and Tax amount varies for VAT for each rows
    pls help me guys...          
                   Thanks in advance,
                   Dinesh
    Edited by: Dinesh S on Dec 23, 2011 1:28 PM

  • How do you get a list of your contacts nick names and their phone numbers on line and print them out?

    How do you get a list of your contacts nick names and their phone numbers on line and print them out?  I've been trying to figure out how to get the list to print out but I can't even find a complete list to view on Verizon's web site.  Does anyone know how to do this?

    Log into your online account. In the, 'I want to', box type, Manage Contacts.
    Place your cursor over any contact, a pop screen will appear with the option to print your contacts

  • This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out?

    This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out? I am using a MacBook.

    Press "Command P" and when the Print dialogue box comes up, towards the bottom there is an option allowing you to choose the text size, i.e: small, med, large.
    Hope this helps,
    NEIL

  • Hi, My printing has suddenly changed in adobe to a large scale, as in, what should be one page of print comes out as 24 pages?   I havent changed anything, its happening on more than one document also, I have to stop my printer before all the pages spew o

    Hi, My printing has suddenly changed in adobe to a large scale, as in, what should be one page of print comes out as 24 pages?   I havent changed anything, its happening on more than one document also, I have to stop my printer before all the pages spew out. I have tried printing 'one single page' and it does exactly the same? Help?

    Is the Poster Print feature turned ON?

  • How to export my booklet as a file so I can take to a printer to print it out as a booklet?

    This is my VERY first time doing work in the program InDesign and I have managed to create a booklet. However the final step of printing I am having trouble with.I am trying to export my InDesign file (indd.) to a PDF or some kind of file type that I can take to a place where they can print it out like a booklet?
    PLEASE HELP!!
    Lisa

    Hi Lisa
    It's easy, you ask your printer what type of PDF s/he wants. Probably one of the InDesign presets. You don't have to worry about imposition, your printer will do that. If you think that there might be some confusion in the page order, or something, you can print out the pages on your desk-top printer and give the printer a rough mock-up.
    What is important is that you check your pre-flight settings before you export to PDF. The little green high-light at the bottom-left on your screen should be green. If it's red click on it to see what the issues are.
    Derek

  • Output print at out of the window

    Hi All,
    I'm facing some problem when print the output. After i run the program, the output is print at out of the window.
    Could someone advise?
    Thanks,
    Alice

    If you could see the layout correctly in the print preview but it gets truncated/ prints outside the window when you actually print it then it might be the problem with the printer settings also. The printer setting defined in transaction SPAD might be one of the reasons. Check with the BASIS team what are the margin setups relevant for the printer on which you are trying to print.
    Cross check by printing on some other printer. If the results are not good, then try and check the dimensions of window in SAPscript.
    And since it is SAPscript make sure that you do a client copy after you make the changes for dimensions, incase the developement client and testing client are different.
    Regards,
    Rinkesh Doshi

Maybe you are looking for