Printing From Java "The most F%&()�G stupid thing in the world"

I have Spent the whole day trying to print a JPanel out of My application. I have gotten the panel to print but the print is not consistant. If the User Changes the Size of the Fame the Panel size Changes and Dimensions of the Plot Changes (aspect ratio). This happens because A print call makes a an image and then scales the image!!! Would it not make way more sence to scale the Jpanel to fit into the specified page size and then make an image to print! I anyone nows of way to do this Please!!!!!!!! let me know.

I think the above post is an understatement, Printing in java is pretty much useless unless you can create your own framework, which you have to pretty much be a guru to create, but fortunately there was a nice guy, named Jean-Pierre Dube' who wrote an atricle for javaworld.com titled Printing in Java which provides a framework. It is really good. Initially I tried to print a JPanel and had the same problem as you, but then I read the article and used the framework and it did exactly what I wanted it to. I think what it does is take the programmed size (or preffered size) so if in your program you have specified the JPanel size (600,600) it will print it out in this size even if the person changes the size of the frame.
Hope this helps and a big thanks to Jean-Pierre Dube'
There are also a few other print Frameworks out there for free such as JFreeReport which is another good one, and I'd like to thank those guys if they happen to read this as well ( by the way, they made a post a few days ago stating a new version was out, and someone snubbed them by saying that this was not the place for advertising, but I think it is great they let us know, nothing wrong with being informed of a good freeware, especially for stuff that makes up where java lags. Thanks guys at JFreeReport).
Cheers, Oz!!!!

Similar Messages

  • I upload a podcast each week using Podcast Maker. When I search the iTunes Store to determine if the most recent one is listed all the podcasts are in random order. This week's is

    I upload a podcast each week using Podcast Maker. When I search the iTunes Store to determine if the most recent one is listed all the podcasts are in random order. This week's is #14; last week's is #1. Any ideas how to correct this? The odd thing is that when you try to subscribe to the podcasts, they are listed in the proper order.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • HT1212 Using the "if you have never synched with itunes" instructions, will I lose all data on the phone? That is the most important information, how to recover the data. The phone is fungible.

    Using the "if you have never synched with itunes" instructions, will I lose all data on the phone? That is the most important information, how to recover the data. The phone is fungible.

    Thanks @ KiltedTim, but losing "only" any data is really not acceptable and, in this case, the phone had not been backed up, but thanks for taking the time. Also, yes, fungible means what I think it means. An iphone is a completely substitutible commodity, unlike my data, so instructions that inform me as to how to fix a phone I could replace for a small sum of money while failing to address the more important issue of the data are almost useless - they potentially save me the $99 it would cost me to replace the phone if I were so inclined to trust another apple product. Not worth the hour it took to find them or the 35 minutes on the phone to confirm my suspicions about the data.

  • My Ipod is stuck in recovery mode with the plug in to itunes thing on the screen I tryed to restore it but I keep getting a error 28 and I tryed to do the reset thing but it did not work what do I do?

    My Ipod is stuck in recovery mode with the plug in to itunes thing on the screen I tryed to restore it but I keep getting a error 28 and I tryed to do the reset thing but it did not work what do I do?

    Hi,
    You could see if this helps...
    DFU Mode / Unable to Update or Restore
    http://support.apple.com/kb/HT1808
    DFU Mode
    Open iTunes and Connect the iPod to your Mac
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time
    After 10 Seconds release the Sleep/Wake Button until iTunes tells you it has Detected an iPod in Recovery Mode...
    The Phone Screen will remain Black... Now Restore.
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • XML Printing from Java

    I have an urgent request from my company's client to implement a feature of printing in our application.
    Actually the application is basically an XML Builder which generates XML code at the backend, something like Dreamweaver.
    I have no clue about printing in Java, and have not much time to research on this topic. If anybody have a program to send an XML file to print (Color printing if possible), please post here or email me at [email protected]
    Any help in this regard is highly appreciated (Dukes Dollars also available).
    Thanks
    Raheel

    I realize you're under time pressure, but this link may be of assistance: Printing in Java, Part 1: Acquaint yourself with the Java printing model

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Having a problem printing from Java

    I've written a program in Java that is supposed to print a document. This program when run on Linux gives a "print services not found" exception . Whereas, the same program when run on Windows prints the document.
    The printer on which the printing is done is an HP deskjet printer. This printer is on the network. The version of Linux is 7.2. The version of Java is 1.4. I am able to print documents from Linux Operating sys. The problem is printing documents from java.
    Please can u advice on how I can overcome this problem or advice on another alternative.
    Thank u
    Dhanajay K.

    Hello,
    Did you solve your problem? I have the same problem.
    In fact, I wrote a program using the JPS. Java finds the printers on Windows... JPS found the printers when I used LPD. But today I use CUPS, and JPS does not find any more the printers.
    I believed that the JPS used "Printcap" to find the installed printers ? did'nt ?
    I have well the "printcap" automatically generated by CUPS...
    Thank you for all informations.

  • I have the airport extreme.  I can print from my mac using wireless.  I set up the bonjour with my mac laptop.  It see's the printer but when I try to print from my laptop it tells me the printer is offline.  Printer is on and prints from mac.  Help!

    I can not print from my mac laptop.  I have the airport extreme for wireless.  I can print from my Mac using wireless but not my laptop.  Laptop see the printer but says its offline when I attempt to print.  Help!

    Try this:
    http://discussions.apple.com/message.jspa?messageID=8096765#8096765
    Good luck!

  • How can i choose a lower quality print density when printing from firefox on my Mac. I cant move the slider along the scale ( I can when printing from the computer).

    I can't change the print density when printing from Firefox. It is set at standard and although there is a "slider button" to use for choosing less or more density, it can't be moved. I can tick "grayscale". I can choose the density when printing from the computer. I have a Mac

    I also have this problem where I used to be able to shrink a 2 page doc to a single page. Since upgrade to FF4 it no longer works - but you can choose say 60% and it will work. All used to work fine in FF3

  • HI I use my IPAD new one to print from, well my IPAD prompt me load paper and the prompt wont go a

    I have the prompt on my my new generation ipad from officejet4620 series 1D9F2B that does not let me cancel or continue ,i already tried to reboot my ipad,i did the same to the printer. WHAT SHOULD I DO NEXT PLEASE HELP THANKS

    HI vp11,
    Are you trying to print a photo, email, or webpage ? 
    What exactly does the message say ? 
    Here is a link to a support page that will help you with troubleshooting your AirPrint issue.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • My Mac OS, 10.5.8, won't support the most recent Firefox and I need the most recent version it WILL support and how to get it, as it's not on this site.

    I need a way to get a more recent but not current version of Firefox that my computer, a PowerPC processor Mac, will support. I am running OS X version 10.5.8. This processor/computer will not run Lion and the most recent version of Firefox will not run on it either.
    On my second computer, same type, a newer version of Firefox crashes constantly while in Yahoo!

    Firefox 3.6.x is the last available from Mozilla for PPC Macs. <br />
    http://www.mozilla.com/en-US/firefox/all-older.html

  • After the most recent firefox update I lost the search function in hotmail

    After the most recent upgrade for Firefox the search function in my Hotmail account no longer works. When I try to search through my email for a specific item, I get a message, "It looks like there's a problem with Windows Live Hotmail right now. It should be fixed soon, so please try again in a few minutes. Sorry for the inconvenience."
    Also, when I load up my Hotmail account it pretty much seems to take over my browser. If I follow a link from an email to another website, I will often be pulled back to Hotmail...with or without a "hang" and I will get the "Warning: Unresponsive Script" message. It appears to be related to the ad bar that runs on the right side of the Hotmail page. It gets worse if I have more than two tabs open.
    I have a similar experience with Facebook. It will often pull me back if I go to another tab. The "Warning: Unresponsive Script" message will come up. often after a considerable "hang" delay. This also can happen if I am participating in a thread. Often, when I am typing it will hang, sometimes for several minutes before my cursor resumes functionality. It can take a very long time to complete even one paragraph.

    See http://kb.mozillazine.org/Clipboard_not_working
    Try to use the keyboard if the buttons on the web page aren't working.
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete

  • Is dreamweaver cs4 the most up to date program at the moment

    Im new to dreamweaver, I have heard of dreamweaver 5, but i am doing a course in cs4. which version is the latest and most up to date of dream weaver.

    Dreamweaver CS5 is actually Dreamweaver version 11. If you are taking a course in CS4 (version 10), stick with it. the improvements in CS5 will be pretty easy to learn and adopt once you have the older version down.
    Here are some differences:
    Split view, which is what I always work in, splits the page display vertically by default. Split view shows you the HTML (and other) code in one window while it displays the rendered page in another. Understand that page rendering in the Dreamweaver engine is always at variance with page rendering in a browser and you should check your work in a browser before committing. In the version you are learning, the split view is vertical by default, so you see your page code just above the displayed page, unless you change that setting.
    CS5 has a CS live button lets people with an Adobe account look at their web pages in the Adobe Browser Lab. If you are working on a Mac, it may let you see your web pages in a rendering engine that mimics Microsoft's Internet Exploder, which is a browser that does not run under OS X. It's another way to check your work.
    Adobe's Business Catalyst is another addition, allowing you to create online stores. I have a Dreamweaver extension that does this, so it's not that big a deal for me.
    There is an improvement in the CSS styles tab, letting you see your styles a little better. I use Firebug in Firefox to do this and having it integrated in Dreamweaver is a good idea.
    If you are hand-coding your website, the code-hinting tools are improved. If you plan to use HTML5, there is a pack you can download from Adobe that will properly hint HTML5 code as well as integrate HTML5 into Dreamweaver. This does not work with earlier versions of Dreamweaver but I'm pretty sure someone will release an extension for older versions of Dreamweaver to do this.
    Summary:
    These are helpful additions to Dreamweaver 11, but they're not light years ahead of Dreamweaver 10. If you are just beginning, you'll find the task of learning Dreamweaver will keep you busy no matter which version you are learning on. I am quite productive on CS3 (version 9) and plan to upgrade when I have the time and space to do so, but the upgrade is not free, so I am taking my time. CS5 is the most up-to-date version and, if you have to be the first on your block with the most up-to-date application, then you should upgrade. But it will take time for the new tutorials to come out for the new version and it's not so much an advancement that you cannot pick up the changes by upgrading later.

  • What happens if OD Master does not contain the most up-to-date information than the OD Replica

    I have a Mac OS X Server v10.6 OD Master on a VMWare Fusion virtual machine and an OD Replica on a Parallels Bare Metal instance. One evening the volume containing the OD Master virtual machine just unmounted itself, when I manually remounted it Fusion now refuses to start the OD Master virtual machine so my only recourse was to restore the VM from an earlier snapshot. The OD Replica in the meantime was running smoothly containing an up-to-date LDAP data than the OD Master. What will now happen when a master-replica sync is attempted? Will it overwrite the data in the Replica with the older information from the mMaster? Or will it update the Master so that it will have the more up-to-date data from the Replica?

    Hi
    http://manuals.info.apple.com/en_US/OpenDirAdmin_v10.6.pdf
    Page 60.
    Replicas have read only access to the Master and they can't write data 'back up' to the Master. The relationship is top-down only. Master and Replica(s) must all be exactly the same OS as well as using the same NTP Server. If the Master is 10.6.5 and the Replica is 10.6.7 the Master/Replica relationship will be broken. The relationship is also broken if the Replica's LDAP database is newer than the Master's.
    You should seriously consider promoting the existing Replica to an OD Master role. This will ensure the most current LDAP database is preserved. The old Master should be demoted and re-promoted to become the new Master's Replica.
    Consult the Admin Manual (as linked above) as it does give relevant guidance on what to do in situations like yours.
    HTH?
    Tony

  • I am giving my old MacBook Air to my granddaughter.  What is the most efficient way to erase all the data on it?

    I am giving my old MacBook Air to my granddaughter.  What is the most efficient way to erase the data?

    You have two options.....
    One is to do a clean reinstall of your OS - if you still have the USB installer that came with your Macbook Air...
    The second option is to create a new user (your granddaugher's name).....Deauthorize your Macbook Air from your Itunes and Appstore.....
    Restart your Macbook after you've created your granddaughter's user name, login under your granddaughter's username and delete your username.
    Search your Macbook for your old files and delete them.....
    Good luck...

Maybe you are looking for

  • Print additional file when AR Invoice is printed

    Hello, Our customer would like to print additional document whenever a AR Invoice is printed. That additional document should include some changing information that should be take from the invoice (such as dates, BP name etc), and some information th

  • Placing images behind flash

    Hey guys. I couldn't really put this problem into a sentence to find out the answer so i thought i would ask: I need 2 images to be flush against each other but the two graphics do not have strait lines. Basically it is a sort of jig saw type of scen

  • Is there a way to test trial HANA?

    Hi! I am a BI newbie and was wondering if there is any way to test HANA...? Maybe a trial version or something? :S or is the solution available to use for any sap partner? I have been looking for something like the 30 day trial version of dashboards

  • HT201210 I have an error coad 2003 what dose this mean

    I was synking and my ipad went into restore mode and now it says unable to restore error (2003) I now have a blank ipad... can any one help please

  • BI-Statistics: How to find out Query/InfoProvider-usage and Nav-Steps

    Hi specialists, I've got some problems to understand the figures in the bi-statistic cubes. I found a lot information about times needed by objects. But I didn't find the correct keyfigure yet, that tells me how often a Query was opened and how many