Resolution problem when printing JPanel with picture on bg

Hellow!
I have some problems with printing JPanel component. I have a picture drawn on the background of the JPanel and several buttons on it. The whole JPanel is about 1600x800px. When i print whole the component with the help of PDF virtual printer, component is printed larger than A4 list. It is strange for me because print resolution is 600 dpi, so whole component must be a rectangle with the size about 2.5x1.5 inches. When I scale the graphics before painting component to fit image to page (i mean ... {color:#ff0000}g2d.scale(sc,sc); panel.paintAll(g2d);{color} ...), the picture's quality becomes very bad.
I understod it so: I draw the component on the paper in screen resolution, then I decrease image size, so quality also decreases.
My question is: how to draw on the graphics of printing paper the component in printers resolution (600dpi), but not in screen resolution.

Hi there,
Could you provide the community with a little more information to help narrow troubleshooting? What operating system?
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

Similar Messages

  • Problem when a JPanel with a JDialog regains focus

    I've a simple application with a JFrame and a nested JDialog under MS Windows. When it regains focus (i.e. another application like MSWord was active and with Alt+Tab or with a mouse-click in taskbar I force my application to gain focus), the JDialog becomes active but I can't see the JPanel because between the dialog and the panel there is MSWord. In z-order I've get the dialog at top, under it MSWord and the panel at background. That's not the regular behavior, but sometimes it happens. Any idea to avoid always this behavior?
    Thanks in advance.

    Any solutions to this problem???

  • Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    I'm assuming you have Photo Stream set up of both devices.  However, it seems many users are experiencing the same as you - my take is that streaming photos is not foolproof yet.

  • Problem when printing " " using XSL

    I have a problem when printing the "<" .It is always printed as
    "&#60;" in the HTML file.
    I wish to transfer a Javascript text . I tried
    using CDATA . This is an extract of a portion in my XSL File
    which uses CDATA.
    <![CDATA[
    function createLOV(lov_name, array_touse) {
    document.writeln("<select name='" + lov_name + "'>");
    for (var i=0; i < array_touse.length; i++) {
    document.writeln("<option value='" + array_touse[i] + "'>" +
    array_touse[i] + "</option>");
    }]]>
    And this is what the HTML file contains
    function createLOV(lov_name, array_touse) {
    document.writeln("&#60;select name='" + lov_name + "'>");
    for (var i=0; i &#60; array_touse.length; i++) {
    document.writeln("&#60;option value='" + array_touse[i] + "'>" +
    array_touse[i] + "&#60;/option>"); }
    document.writeln("&#60;/select>");}
    I tried using the <xsl:text disable-output-escaping="yes"> but in
    vain.
    If i use < or &x3C; , i still get &#60; in the HTML file.
    How do I solve this problem. I'm using XSQL Servlet with JSDK2.1
    both running on Sun Solaris2.6 .
    Thanks in advance,
    Suresh
    null

    Suresh Seetharam (guest) wrote:
    : I have a problem when printing the "<" .It is always printed
    as
    : "&#60;" in the HTML file.
    : I wish to transfer a Javascript text . I tried
    : using CDATA . This is an extract of a portion in my XSL File
    : which uses CDATA.
    : <![CDATA[
    : function createLOV(lov_name, array_touse) {
    : document.writeln("<select name='" + lov_name + "'>");
    : for (var i=0; i < array_touse.length; i++) {
    : document.writeln("<option value='" + array_touse[i] + "'>" +
    : array_touse[i] + "</option>");
    : }]]>
    : And this is what the HTML file contains
    : function createLOV(lov_name, array_touse) {
    : document.writeln("&#60;select name='" + lov_name + "'>");
    : for (var i=0; i &#60; array_touse.length; i++) {
    : document.writeln("&#60;option value='" + array_touse[i] + "'>"
    +
    : array_touse[i] + "&#60;/option>"); }
    : document.writeln("&#60;/select>");}
    : I tried using the <xsl:text disable-output-escaping="yes"> but
    in
    : vain.
    : If i use < or &x3C; , i still get &#60; in the HTML file.
    : How do I solve this problem. I'm using XSQL Servlet with
    JSDK2.1
    : both running on Sun Solaris2.6 .
    : Thanks in advance,
    : Suresh
    Currently, the parser does not support the xsl:output and
    output-escaping mechanisms. We plan on adding support for this
    in a future release.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Problems when printing help topics from OHJ

    We have encountered some persistent problems when printing help topics from Oracle Help for Java (Ice Browser).
    NOTE: When we print the same source files from Oracle Help for the Web, the printing problems are gone.
    (1) Spacing Errors (all printers had identical results)
    Text with special formatting (<b>, <i>) often has either too much space or not enough space.
    Links often have extra spaces underlined before or after the link, itself.
    (2) When printing multiple help topics from the TOC (an entire branch in the tree):
    On some printers, no graphics print correctly, but instead print as one of the following: 1. empty box the size of one character, 2. black box the size of one character, 3. black box the size of the original graphic. We could not detect a pattern that caused 1, 2, or 3.
    NOTE: all graphics are bit maps (screen captures) that were generated in the same manner.
    NOTE: if these same help topics are printed one at a time form Oracle Help for Java, the graphics print fine.
    Is this a problem with the Ice Browser?
    Thanks for the help,
    Wendy Studinski

    There are a known issue with the ICEBrowser printing in some circumstances. The laying out of text by the ICE Browser relies on font metrics (being able to measure the width of a run of text in a given font). On screen it looks great, but when printing, even though the GraphicsConfiguration for the printer is being used, these widths are sometimes off, which can result in text running together at boundaries between text styles. We're not sure what to do about this problem, and we've reported it to IceSoft.
    Not every font has this problem, so varying the font you are using might help the appearance when printed.
    The other problem you report, problems with the images when printing multiple topics, is something that we will look into.

  • "Problem When Printing" error on Mac Mini

    Hi all,
    I just recently updated my Mac Mini from 10.3 to 10.4. Instead of Archive and Install I formatted and did a clean install.
    I have my printer set up, however whenever I try and print anything from any application I get a very unhelpful "Problem when printing" error, and nothing prints.
    I also get the same error when trying to save to PDF.
    My printer is a HP Deskjet 3750, and the driver is the one included with 10.4 (as per HP's instruction), but I don't think it's a driver problem as Save to PDF gives me the same error.
    I've already tried repairing permissions. Anyone know what could be causing this. Any help is greatly appreciated.
    Thanks.

    Bugger. PSR is often a winner
    You could try installing Gutenprint 5.0.1 available from Sourceforge (it's about 15MB). It's an updated version of the included GIMP-Print drivers and may repair/replace/install some of the core files. Otherwise you may have to contact Apple and see if you can get 10.4.9 mailed to you.

  • Problem when printing booklets prints pages 1,2 and 11 as if I wants to print all

    I am using XP and 2000 MS word
    I am having a problem when printing booklets from time to time. I get it ready to print in booklet form with 12 pages and my printer gives me the options. “Print all”  “current page”  “selection” or “pages”  Because it is booklet I want to print the first 4 pages to be folded and glued as a small book. When I inter 1-4 as the example shows some times it prints OK but about a week later it prints pages 1,2 and 11 as if it wants to print all. I thought it was the printer but think it could be in some setting of the word program or my computer it self.

    Also does this (i.e. prints web pages over several pages despite changing settings) on my laptop at work with an HP printer. This started when I upgraded to Firefox 9.0.1.

  • Color management problem when printing

    (sorry for the double post, since the problem affect both illustrator and photoshop and in fact also indesign) in decided to repost it here in the photoshop forum. thank you for any help!)
    hi ! im in charge of a big print lab in a university. All macpro quad running on 10.6.4, CS5 all updated.
    i  have a major problem when printing from all 3 CS5 apps : Illustrator  (being the worst), photoshop and indesign : each one produces a  different print even if i use the SAME color management options (the  application manage color using my own color profile file created with a  i-one tool from greta macbeath and using eye-one match 3). im printing  on a XEROX 7750gx laser printer. very cool printer never had trouble  with colors before with it, in any case it was always the software part  that was causing color problems (like i suspect in this case).
    how  can 3 softwares under the same application collection and brand, using  the same color profile and options (IDENTICAL ! it's triple check all  the options!) can produce 3 different prints when printing the same  image (it's a color psd created under photoshop CS5) ?!
    i  remember having some trouble like this when we first got CS1 in our lab,  but not this bad... i've checked everything... i realy don't know how  to fix this problem...
    the best setting so far is in  Photoshop when the application manage the color and using my color  profile file in perceptual mode. best output so far, not the best i had  in the past, CS4 was way more perfect with color management.
    i  realy need to find a solition 'cause the students expect the color to  be almost perfect (and they almost were using CS4 in the past...
    thanx for any tips & help !
    +

    many thanx for your reply & help.
    i've just recalibrated everything in my workflow : my screen (perfect!), my xerox 7750 color laser printer. i've recreated a new color profile file for the xerox color. and the same thing is happening : a kind of pink color all over my prints and every adobe's applications is printing different results. in photoshop i can manage the problem when forcing to print in perceptual mode. not perfect but it's fine. and with the other software specialy like ACROBAT and INDESIGN there's no option like this so it prints very badly. only option is to print in adobe 1998 rgb or SWOP cmyk (depending of the color space of the image of course)... the image is use for my test is RGB. images in CMYK are doing the same exact thing.
    by the way for calibration is use an x-rite (greta macbeth) eye-one tool with eye-one match 3.6.3. i calibrate the screens and create color profile with this tool since ADOBE CS1 and never had this much trouble with colors...
    here's a capture from photostop CS5 print dialog. when using the option "match print colors" you can see the image with all the PINK NOISE when using the print in RELATIVE colormetric mode (at the bottom right). using perceptual is "fine" (not color perfect but OK).
    http://i53.tinypic.com/qzge12.jpg
    it's worst in Acrobat and Indesign since i can't use perceptual colormetric print mode...
    im realy starting to think that i better uninstal CS5 and go back to CS4...
    thanx for your help !

  • Performance problem when printing - table TSPEVJOB big size

    Hi,
    in a SAP ERP system there is performance problem when printing because table TSPEVJOB has many millions of entries.
    This table has reached a considerable size (about 90 Gb); db size is 200 Gb.
    Standard reports have been scheduled correctly and kernel of SAP ERP system is updated.
    I've tried to scheduled report RSPO1041 (instead of RSPO0041) to reduce entries but it is not possible run it during normal operations because it locks the printing system.
    Do you know why this table has increased ?
    Are there any reports to clean this table or other methods ?
    Thanks.
    Maurizio Manera

    Dear,
    Please see the Note 706478 - Preventing Basis tables from increasing considerably and
    Note 195157 - Application log: Deletion of logs.
    Note 1566659 - Table TSPEVJOB is filled excessively
    Note 1293472 - Spool work process hangs on semaphore 43
    Note 1362343 - Deadlocks in table TSP02 and TSPEVJOB
    Note 996455 - Deadlocks on TSP02 or TSPEVJOB when you delete
    For more information see the below link as,
    http://www.sqlservercurry.com/2008/04/how-to-delete-records-from-large-table.html
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91179
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83525
    If any doubts Let me know.
    Thomas
    Edited by: thomas_raja on Aug 7, 2011 12:29 PM

  • Noise problem when I look at pictures in full size (or smaller) on monitor. If I enlarge pictures the noise is gone. ??? Can somebody help? Thank you

    I have a noise problem when I look at pictures in full size (or smaller) on monitor. If I enlarge pictures the noise is gone. ??? Can somebody help? Thank you

    How useful screenshots might be in illustrating an issue pertaining to the screen display in comparison to a merely verbal description!
    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?
    What are your Performance Preferences?
    Please read these and proceed accordingly:
    Best practices: Usage | Adobe Community
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • Hi! Has anybody succeeded in using Presonus Audio box 22 vsl with Os Mountain Lion? They doesn´t seem to connect. No problems when i used with Snow Leopard. I upgraded: Now is Kreonika not happy. Not happy at all!

    Hi! Has anybody succeeded in using Presonus Audio box 22 vsl with Os Mountain Lion? They doesn´t seem to connect.
    No problems when i used with Snow Leopard. I upgraded: Now Kreonika is not happy. Not happy at all!

    In cases like this, if you have an Apple store near by, they will most likely install the OS free of charge for you, if you can't bring your Apple ID along to prove you've paid for it.
    Would that work out for you?

  • Problem when printing in Polish

    Hi
    developers have a problem when printing a Polish form, special charactors like ł, ś, ć etc are all printed as '#'.
    TY
    regards
    Hicham
    Edited by: Juan Reyes on Sep 10, 2009 12:22 PM

    Let me correct your thread...
    problem when printing a Polish
    You cannot print "a polish", you have problems printing "in polish".  :-D
    Regards
    Juan

  • Borderless problem when printing with HP Photosmart K510A

    help me with this one HP support is closed today, are you experiencing this borderless problem if printing bordless a part of the image gets cut off when printing right now I'm printing in 4R the when I "print preview" the image is not cut off but when the actual output of print its cut off in all 4 corners maybe a few millimeters
    look at my watermark its cut off my aspect ratio is 3:2
    I printed it on a 4x6 paper (4R) they have identical aspect ratio I even tried to cropped to 4R still it gets cut off or is this an HP printer problem
    please help this is getting frustrating

    can anyone help me with this one?

  • Problem when printing on draft mode with hp6500a

    Hello
    this is the problem : when i want to print in draft mode, the document is resized in bigger like zooming...
    work normally in normal mode
    what's wrong ?
    i made all the check (hp diagnostic utility) and everythings are ok
    is someone has solution ?
    thanks in advance

    Hi there,
    Could you provide the community with a little more information to help narrow troubleshooting? What operating system?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Margin problem when printing with canon printer

    When I try to print a pages document on my canon pixma ip4500 printer (which they sold me at the apple store when i bought the laptop), the bottom margin does not appear. There is a space only about half an inch under the last line of text. Everything looks fine on the screen, but i cant get to print it with a bottom margin. and i don't even know how to set it manually...
    ps, the printer isnt set for a 8 1/2 by 14 sheet, it really is for a 8 1/2 by 11
    Help me please!

    That’s going to depend on what the document consists of. If it’s a single element such as a graphic or PDF, reduce the size. If it’s text, you can use a smaller point size, slightly reduce paragraph spacing, make a headline smaller, etc. If it’s text and graphic, reduce the size of the graphic(s) a little. But first, set your document margins to agree with your printer margins.
    Walt

Maybe you are looking for