Printing a focused chart contained in a JFrame

Hello everyone,
I have problem of printing a focused chart which contained in a JFrame. Here is the case:
1) A JFrame I designed as the root of my application, in which there are menu items, such as Print, Save,Open....
2)A graphwindow is opened when user hits the "Open" from the above menu list. This graphwindow is basically another JFrame, which contains a chart ( a JPanel). It is an instance of a General chart class somewhere else.
3) User is able to open multiple graphwindow by selecting different data. the window is able to be focused by a mouse click,just like all the windows applicaiton.
Hope you have a clear picture now.
Now, I'm trying to implement the Print function in the Root Frame which should be able to print out the focused the graphwindow. Could anyone please tell me how to do it? any ideas?
All the reply will be appreciated.
-SQ

Here's one thread with my solution:
http://forum.java.sun.com/thread.jsp?forum=57&thread=501660
and here's some more discussion:
http://forum.java.sun.com/thread.jsp?forum=57&thread=407727

Similar Messages

  • Printing a waveform chart

    i am trying to print a waveform chart and it prints but it does not display the data on the printed copy of the graph?
    here is my VI
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Solved!
    Go to Solution.
    Attachments:
    test1.vi ‏269 KB

    The VI you are calling is going to print the front-panel, true.  I replaced the DAQ Assistant with a 'Simulate Signal' express VI and I see the graph update and when I print it shows data on the graph.
    See the attached PDF I printed to file with PrimoPDF.
    -Hook 'Em
    Attachments:
    Labview Document.pdf ‏1411 KB

  • Having issue when we try to print more than 300 container labels

    Hi Gurus,
    We are having issue when we try to print more than 300 container labels. Once it reaches 300 it starts to jump the sequence and we are not able to complete all the tickets if itu2019s more than 300.
    Regards
    Rajib Pathak

    dear friend,
    first, i recommend to analyse the spool request and discuss it with your basis/technical guys (use SP01)
    second,
    you would try to run t-code SPAD for your output device and check out the checkbox "Process requests sequentially" (ON)
    regards,

  • How to print the PDF file contains stamps without set the printer options

    I have pdf document, and stamp them with my personal stamp.
    With the printer option under "Comments and Forms", I set to "Document", my stamp DISAPPEARED.
    Unless re-set (use options) to "Document and Markups" or "Document and Stamps" then it will be fined.
    Can I embeding my stamps to my document so that everyone can print without using printer options to contain stamps?
    (regarding to whoever don't know how to set the printer options, and keep asking that I did not stamp on the doc.)
    Please help.
    Thanks in advance.
    th

    Can I embeding my stamps to my document so that everyone can print without using printer options to contain stamps?
    Yes, you can.

  • Printing with a chart thrashes the computer

    I've setup a chart in Numbers that grabs data from a table. That table references data in anther table.
    Before I added the chart, the sheet would print fine: header, table 1 & table 2. When I added the chart, when I hit File...Print the system starts thrashing: so much so that I lose internet connectivity, regain it, lose it and regain again. It takes about 30 seconds, but it will eventually let me hit the Print button. I can't even Command-Tab or Force Quit or anything while this is going on.
    The sheet will print, but it's frustrating having my internet disconnect, and the print job to lock me up like that, especially if I'm doing something in the background, and the people I'm chatting with think I had a seizure going online/offline like that.
    I can email someone the sheet if they would be able to take a look at it...
    -Anthony

    I have configured on my system an HP OfficeJet which is shared by a Windows PC, and a Minolta BizHub c203. I also have a virtual Acrobat printer from Acrobat 8.0.
    The weird part is if I delete the chart, it does that 45-second hiccup... If I delete the chart, the sheets print fine. If I recreate the chart, it does the freeze again.
    I emailed someone the sheet and it printed fine for them (of course!
    So I guess it may be my system and not the sheet. Weird since everything else prints well, including other non-chart sheets.
    -Anthony

  • Every print by Oracle APPS contains one extra page of banner,...........

    Dear All
    We are facing problem in Oralce APPS 11.5.9. When ever we print any report, it always contains one extra page of banner... How can we reomve this extra page of banner from prinintg............This is wasting lot of pages......Can any one help on this........
    Regards

    by the way what is PASTA?PASTA is a utility which enables multi-lingual handling by taking advantage of PostScript language. PASTA converts an input content from text format to PostScript format to add the multi-lingual support (Like Arabic PS).
    For more information about PASTA, please refer to note: 239196.1
    Also do we need to apply your suggested action for every printer??If one driver is used by all printers then it should be done only once. Otherwise, change it for each driver used by each printer.
    Also double check the printer spool definition at the OS level, most printers are installed with 'Banner Page' enabled.

  • Printing the Gantt Chart

    Hi,
    Does anyone know how I can select some Legends and print them within the Gantt Chart, preferrably at the bottom.  I stumbled unto the minutes of meeting of the "Project System Special Interest Group(PS-SIG)", in which this issue was raised to SAP in 2003, I could not find any other information on whether or not it was resolved.  Does the PS-SIG still exist and how can I contact the moderator?
    Best Regards,
    Oge Aniagboso

    Check your page set up options when you do print preview. The last tab has some toggles where you can turn on/off printing the activity table and Gantt Chart.

  • Photobook cannot printed. FIle sent contains images shift and without color

    I have tried to buy a photobook, but everytime that I sent the order I always got an e-mail telling me that the order cannot be printed because:
    "Upon shipment of your order, there was an error and the image file can not be printed. The file received contains shifted images or without color."
    They gave me the following suggestions:
    a) to update my MacOSX software, but I got already Lion.
    b) to update iPhoto software, but I got iPhoto '11 (version 9.1.5) and I cannot find new version.
    I tried to make the .pdf preview sometimes I can see the problem too, but sometimes the file looks perfect, so I have placed the order but without any luck.
    I have contacted the Italian Apple Assistance Center they told me that it could be due to the effects given to the pictures, but I didn't use any strange effects.
    To give you more details I have used a Canon EOS500D camera
    Honestly I am facing this problem since I have upgrade my MacOSX to Lion.
    Any suggestions?

    Hello,
    Are you using a macbook air?
    I have the same problem, but only on the air and not on the imac.
    I already tried two different airs, both have the same problem.
    I just started a similar thread: https://discussions.apple.com/thread/3354990?tstart=0
    Best regards
    Ben

  • Printing/Copying Flash Charts

    I've been adding some flash charts to my application, and people love them. However, I wasn't looking ahead and didn't anticipate people wanting to pull the charts off of the web application to send in emails, power point slides, or printouts. I did find that you can just simply right click the graph and print from there, but converting it to an image format would be a major improvement.
    Is there any way to do this? Or possibly some tutorials out there?

    Hi,
    I am exploring the Oracle APEX since 2 days and it looks to be a perfect tool for the kind of reports we need to generate. i need to print the reports i generate to pdf. i have gone though the demos and was able to print to pdf using cocoon/Tomcat method as suggested by Carl at http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    but i cant print charts through this. how can i print charts without using BI prublisher, coz my company doesnt want to pay for it!
    Also i haven't gone far enough but would appreciate any comment on this. for every report i have 2 or 3 lines of heading or kind of explanation of the report. will this also be printed as part of the report or only the table is exported to pdf?
    Thanks.

  • How do I print a PDF that contains mixed paper sizes (letter and legal) so that my printer choosing the correct paper tray for each page?

    I have followed the instructions here:
    Print mixed page sizes | Acrobat, Reader
    But it did not work!  I'm using a Mac OSX 10.9.3, Reader 10.1.10

    I found out that, apparently, this just plan doesn't work on the Mac version of Adobe Reader.  Thanks, Adobe, for a crappy experience.

  • Acrobat 9.3.3 Print Warning/Error Message contains no text

    We are using Reader 9.3.3 and we are getting a strange error when we print.  The window comes with the warning symbol, has 3 radio buttons and a checkbox that says "don't show this again" and an okay button.  If I check the first radio button and select ok, nothing prints.  If I choose the second or third radio button, the prints come out.  I would like to know what the options are for this warning/error.  It is happening on Windows 7, and Windows XP 64 Bit.  I has also gone away on 2 of the 5 computers this has shown up on.
    Thanks for your help.
    Dave

    Maybe your installation is currupt (scratched CD)
         Reinstall on another maschine (and clean CD) to validate this case.
    Update your Acrobat, maybe the corresponding files are replaced or the error is fixed.

  • How can i print a page which contains tooltip

    i am using a customtooltip, and the the tooltip is act like a
    pop-up box, but the tooltip will be remained on screen after user
    is clicked on the control, and destroy onli when user click others
    in the panel.
    The question is how can i print all these control in panel
    included tooltip? did i can print the tooltip also?

    Why can't we have menu in Android Firefox to do the printing? like in the pc version.
    ToddeSwe

  • Scroll Bar Problem after Printing a web page containing multiple page data

    Hi All,
    I have a web application which has two DIV, one is main and one is child. I am having problem in printing multiple pages. There is a lot of data in the child DIV and i am using JavaScript functions to control the print functionality. When i print using window.print(), only the data on the main page currently being showed is printed. I further researched and checked out the Style.Overflow property.
    Now i am using divMain.style.overflow = "visible"
    After this the complete print comes. But in Firefox, the scroll bar disappears and only single page is left with no scroll bar .
    Now if after print i give divMain.style.overflow = "Auto" OR divMain.style.overflow = "Scroll", still the scroll bar doesn't come and if it comes then its inactive. I am unable to see the complete data on the page after the print is taken.
    The problem is not coming in I.E and the full data with scroll bar is recovered in I.E.
    Please help me how to get the normal page with full data and scroll bar after printing in Firefox.
    Thanks,
    Manuj

    hi, i would update my reader first to the newest version.
    does the size of the textfield never change, independant how much text is in it?
    perhaps check your subforms, if they are type "position" size does not change in my opinion, except your parent subforms expand to fit....
    or use "flowed" subforms...and regard the parent subforms too!

  • Printing a multipage document containing multiple Components

    Hi everybody,
    I am trying to print a multipage document which consists of multiple JPanels used for grouping, each of which hold JLabels and JScrollPanes and JTextAreas.
    I know how to do multipage printing with text but I am lost with the multi component situation.
    Thanks in advance for any help.
    vh

    If you know how many pages are in use, get the size of the page (the pageformats imageable height * page number) and with that number translate the page up that number of pixels. ( the translate method of graphics ). Then you can draw all the components on the page. Make sure you translate before you draw, this mistake took me a day to figure out. Hope this helps.

  • To print an Pie Chart image with more than 1 slice is not working

    Hi friends,
    I'm using a version 12.0.4 and when I try to generate an Pie Chart image with more than 1 slice using the function saveImage() it's not working. The image is only generate when its return is just 1 value (1 peace of pie).
    Anybody help me?
    Regards!

    It's not unique for your setup, but it also happens in 12.0.11, so it's a bug.  Looks like it is throwing a null pointer for some bizzare reason when generating the GIF output by the ImageStorageServlet (per the NW logs). 
    Your best bet would be to log a ticket so it can be patched.
    12.1.7 seems to work fine.
    Edited by: Michael Appleby on Nov 23, 2010 2:39 PM

Maybe you are looking for