How do I change the rendering resolution for printing?

Has anyone figured this out yet? I am writting an app the prints out forms and lots of reports and they keep coming out very ugly because it is only printing at 72dpi, I need it to be at 300 or so...
Thanks,
Peter

I figure out how to do this after much searching. Before I was creating a bufferedimage then drawing all my content on that then drawing the bufferedimage on to the graphics that go to the printer.
Instead I found out the better approach is to do something like this:
class PrintablePage extends JPanel implements Printable {
  PrintablePage() {
    super(false); //Disable dubble buffering
  public void paintComponent(Graphics g) {
    //Do all the drawing here
  public void print(Graphics g, PageFormat format, int page) {
    Graphics2D g2 = (Graphics2D)g;
    this.paint(g2);
    g2.dispose();
    g2 = null;
}For some reason this prints out much higher quality than any other way I have found to print things. I don't know the exact dpi, but it is much better than the 72 I had before.

Similar Messages

  • How do I change the image selected for the finalized movies pane in all events?

    How do I change the image selected for the finalized movies pane in all events? I made a movie some time ago in iMovie, and a still from this now appears as the image for Finalized Movies in the All Events pane (as well as showing up if I then click on this pane to take me to Finalized Movies). Anyone know how to change or delete this image, please?

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How do i change the email address for my icloud account on my 4s. when i sign in on line it is my new email address so i thought it would change automatically but obviously not!

    how do i change the email address for my icloud account on my 4s. when i sign in on line it is my new email address so i thought it would change automatically but obviously not!

    Settings>iCloud...scroll down...delete account. Then setup iCloud with your new ID.
    You can't change the Apple ID for your iCloud account, you have to delete it.

  • How do I change the email account for icloud on my iphone only

    How do I change the email account for icloud on my iphone6 only.  I don't want to change my ipad or my husband's iphone6.  Currently all 3 devices have the same gmail account associated with them.  I have created a new & separate apple id and I want that on my phone but I can't figure out how to delete his email from my phone.

    To change iCloud accounts you have to go to Settings>iCloud, sign out, then sign back in with your other ID to create your new account.  If you want to migrate a copy of the iCloud data to the new account, start by saving any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save Image.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Sign Out, choose Keep on My iPhone and provide the password to turn off Find My iPhone when prompted.  Then sign back in with your new Apple ID to create your new account and choose Merge to upload the data to your new account.  Once you are on a separate account you can go to iCloud.com and delete your husband's data from your account (and he can do the same with yours).
    Just be aware that the current @icloud.com email address cannot be moved to the new account, nor can the current my photo stream album (which is why you need to save any my photo stream photos you want to keep to your iPhone before signing out of the existing account).

  • HT3965 how do i change the phone number for imessages?

    how do i change the phone number for imessages?
    i have set up an iTouch for my 10 year old son. To set up iMessaging between him and his parents i used my iTunes account but this picked up my phone number..........i now need to change this but cannot see how to do it in Settings. Any suggestions?

    Thanks, but i guess this means i have to create an email address for my son and hs own apple id?
    My aim is to link his mobile number to the iTouch but not to give him his own iTunes account....

  • How do you change the Apple ID for my iPhone 4?

    How do you change the Apple ID for my iPhone 4. I am able to access my iTunes account using my new ID and password on my computer; however, my iphone has a different Apple ID and I do not have cannot access iTunes on this phone. 

    Also, if you have iCloud, you will probably also want to change the iCloud account on the phone to be yours:
    Settings>iCloud - if Account is not yours, go to the bottom and Delete Account. Then sign back on with your iCloud account info.
    Cheers,
    GB

  • How do you change the pink highlight for the present day in calendar when in week view

    How do you change the pink highlight for the present day in calendar when in week view - OSX Maverick

    the current day was light blue in ical in 10.6 but with plenty of contrast, but I recently made the bigger leap all the way to calendar in 10.9. the choice of color is terrible for reasons such as Spile1962 puts below, but also not having any way to tweak it is terrible. I'm on a bran d new imac and can barely see a difference and frankly, while I appreciate the subtlety, I still forget to look for the darker bar across the top of the current week and day. we should be able to adjust weekend and current day bg colors.
    I went into the app's package contents in hopes that they were using a tiff/png file that I could tweak on my own but couldn't find anything for them. all the icons are there, as are the bg sets for all the little pop-ups and things, but I couldn't even find a reference to a hex color in the plist file.
    send apple feedback. I just did myself, except that Calendar hasn't made the list (yet?), only iCal up to version 4.x, and Messages is still only iChat for feedback, and some others are old as well. apparently after steve died, apple's attention to these details just died with him. it's been that long since those other apps should have been relevant on their site.

  • Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    I would contact Apple directly and have them work with to get the iPod shipped to a new/different address.
    http://www.apple.com/contact/
    B-rock

  • How do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    how do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    You can add a solid color theme to change the color of the top of the browser window, which includes the Menu Bar.
    https://addons.mozilla.org/en-US/firefox/themes/solid

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • How do I change the default properties for Replace(Ins)?

    Acrobat Pro X
    Comment tools: Annotations
    All tool icons EXCEPT Replace(Ins) show "Tool Default Properties" as an option when right-clicked.  When I right-click a particular replacement in the document and select "Properties," there is no option to set current as default.
    So, how do I change the default properties for this annotation tool?  I need to change the Author and the color.
    Thanks,
    Nancy

    Create customized controls for your graphs and controls and setup your favorite attributes .
    Use your custom controls instead of the canned controls.
    Do a search on UI and you will find a community that already created custom controls.
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • How do I change the start date for the week from Monday to Sunday on my iPhone 5?

    How do I change the start date for the week on iCal from Monday to Sunday on my iPhone5?

    Yes. On my new iPhone 5 the iCal week begins on a Monday not a Sunday and does not give me the option to edit in settings on the phone

  • How can I change the default setting for downloading photos from email?

    How can I change the default setting for downloading photos from emails I receive?  It shows the default as Photoshop Elements 4.0 and is not supported by this system.  That was my last computer!!
    Thanks,
    Sheila

    That has nothing to do with styles nor Pages, it is a System/Printer Driver setting.
    You can experiment to see if the Printer Settings stick with your document, but in the past this has not worked.
    Peter

  • How do you change the password protection for a file if you forget it?

    How do you change the password protection for a file if you forget it?

    Certainly not with Reader...

Maybe you are looking for