Jfrechart show in the Jpanel

JfreeCharts API using
I want to add a Jpanel to a JFrame and Draw a chart in that Jpanel. but normally
Jfreechart API draws charts on Jframe. Here I want to know how to do it on Jpanel. (Because I want to add TAB in one jframe)
Thank you......

Good golly, 5 minutes of searching shows me that JFreeChart has its own API here
http://www.jfree.org/jfreechart/api/javadoc/index.html
and a few seconds of searching this shows that there is a class JFreeChart:
http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html
and a few seconds of reading this tells me that "You should use a ChartPanel to display a chart in a GUI." which also has an API:
http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/ChartPanel.html
which states that this class extends JPanel. And there's the answer.
You really need to learn to exercise your Google muscles.

Similar Messages

  • Use the JPanel's graphics to draw something

    I get a Jpanel's Graphcis g and use g to paint something,
    g.drawRect(......),
    the rectangle show on the JPanel , but it was clear when I resize the JPanel
    or switch between applications. I think I can override the paintComponent()
    method to let the image keep on it. I want to know: Is there some component
    I can get its' graphics like JPanel and whatever I painted on use it can not
    be clear?
    BTW, I want to try some small game programming, anyone know some BEAutiful
    component package?

    the rectangle show on the JPanel , but it was clear when I resize the JPanelThe reason your painting clears when you resize your window (or min/maximize) is because you will need to
    tell your program to repaint the scene after anything happens to the window. The best thing to do is create
    a thread to constantly call your paint routines so that even when the painting clears, it is repainted
    immediately.
    Is there some component I can get its' graphics like JPanel and whatever I painted on use it can not
    be clear?I'm afraid not, all components behave this way. You don't have to worry if you use a thread for painting
    (a thread for painting is infact one of several standards for rendering). Here is some code:
    public void startPainting(){
       Thread paintTimer = new Thread(
          new Runnable(){
             public void run(){
                try{
                    Thread.sleep(delay);
                }catch(InterruptedException e) {break;}
                repaint();
       paintTimer.start();
    }[\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Getting the name of the JPanel

    Hi!
    Could anyone tell me how I could get the name of the JPanel when I click with the mouse on the panel.
    Thanks....

    mainPanel.addMouseListener(new MouseListener()
                             public void mousePressed(MouseEvent me)
                                  if ((me.getModifiers() & InputEvent.BUTTON3_MASK)==InputEvent.BUTTON3_MASK)
                                            jpm.show(mainPanel,me.getX(),me.getY());
                                            pointx = me.getX();
                                            pointy = me.getY();
                                            String si = new String(mainPanel.getName());

  • Show Swing Container JPanel in ADF Component

    Hi ADF-Folk,
    I come out of the forms developer world. in forms i used pluggable java components to show graphical components in forms.
    Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
    Application example: Colored tray configuration for a lean lift administration. On this tray are nearly 120 places to allocate. I don't want to use 120 adf labels in dynamic .jspx with backing bean to rebuild this function.
    How can I manage this?
    Thank you very much.
    Best regards.
    Gunnar

    Hi,
    Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
    yes, use f:verbatim as a tag and add the JPanel as an Applet. Note that the Applet will not be integrated with ADF Faces and requires you to use JavaScript to get this working. See the following example
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf
    Frank

  • When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect?

    When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect.

    Yes you certainly can.
    Right click any desktop in the list > Settings > in the left pane select the desktop you want to auto connect to > check "Auto connect to this desktop".

  • How can I get ALL of my Google Calendars to show on the iCal on my iPhone? I see all of my Google Calendars on the iCal on my Mac, but I do not see them in the iCal on my iPhone. I only see one Google Cal, but not the others.

    How can I get ALL of my Google Calendars to show on the iCal on my iPhone?
    I see all of my Google Calendars on the iCal on my Mac, but I do not see them in the iCal on my iPhone. I only see one Google Cal, but not the others.

    https://www.google.com/calendar/iphoneselect

  • I have itunes on a mac with 2 users but the library only shows on the main user how can both users have the same library?

    i have itunes on a mac with 2 users but the library only shows on the main user how can both users have the same library?

    Hi,
    Have a Look at these Links on Home Sharing:
    http://support.apple.com/kb/HT4620
    http://support.apple.com/kb/HT3819
    Could be what you need...
    Cheers,

  • I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in?

    I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in without closing and reopening?

    No. Frequently the apps take up more storage space on the iPod that the file download size.

  • TS1814 Most of the songs on my iPod Classic no longer dshow up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Th

    Most of the songs on my iPod Classic no longer show up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Thanks you for any help.

    See Empty/corrupt iTunes library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • The billing doc is not showing in the order  documnet flow in SAP CRM 7.0

    Hi CRM Experts,
    Our CRM system has been upgraded from 4.0 to 7.0 recently.
    We have come across with one strange issue; for some orders  which are billed in ECC6.0 are not showing as next document in the CRM order under document flow in SAP GUI. Only preceding document and replicated document are showing in the CRM document flow.
    Appreciate for yor valuable solution at the earliest.
    Best Regards
    Succhi

    I have the same problem!!!   Did anyone solve this???

  • I just downloaded the latest version of iTunes on my PC, Window 8 and now it won't recognize my iPhone 4. The device never shows in the menu bar

    I just upgraded to 11.1.4.62 and now my iTunes won't recognize my iPhone 4.  The device never shows in the menu bar

    Hello there.
    The following Knowledge Base article provides some great, in-depth steps for troubleshooting your issue:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to I get a marker name to show in the timeline?

    I must have done something to disable it, but I recall marker names displaying in the Timeline when a marker is selected. Now I have to open the marker to see the name. How to I re-enable the display so marker names show in the timeline?
    (Yes I looked in the FCP manual, but just try and find something like that in the PDF file!)
    thanks
    Scott
    Message was edited by: Scott Stark

    JR Steendahl wrote:
    Are the markers on the clips or the timeline?
    You might try view>show overlays
    They're on clips and on the timeline itself.
    Show Overlays does display them on the timeline (not in the Viewer), but it also displays in/out points and audio timecode. Is it all or nothing?
    thanks,
    Scott

  • I would like to use time Machine to back up to a network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it

    I currently have a mini server (OSX10.8.5, server 2.2.2) that I am using Time Machine to back up 4 external drives that are connected to the server via firewire 800. I would like to use Time Machine to back up to a windows network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it for use.
    Can this be done
    Thanks for any and all help

    The supported targets for Time Machine backups are local (direct-connected) disks, and network targets include Time Capsule, a disk hanging off the current-generation AirPort (though not earlier AirPort devices), and OS X Server systems.
    The Time Machine storage is based on the HFS+ file system, so I would not expect TM to work with SMB file services.
    While there are hacks to allow Time Machine to access network drives, I would not consider those to be reliable. Skim the forum and the 'net for related details, and for previous discussions of setting this up and the related issues that can arise.
    Remember to test the recovery with whatever you decide to use; whole point of backups is the ability to restore the data, after all.
    If you want to learn more about Time Machine, Pondini is an excellent resource.

  • HT5772 How do I delete voice memos from my phone?  It does not show on the app or in iTunes.  Thanks!

    How do I delete voice memos from my phone?  It does not show in the app or in iTunes.  Thanks

    Welcome to the Apple Community.
    Settings > Music > Show all music > Off

  • How to replace a component in the JPanel?

    Hi,
    I want to replace a component in the JPanel. My panel has GridBagLayout.
    Thanks in advance.

    because my application demands me to use GridBagLayout.No it doesn't, that a choice you made. You are never forced to use a specific layout manager. In fact most layout problems are solved by using combinations of layout managers. You two main choices are:
    a) use a GridbagLayout for the main panel and then a CardLayout for the two components you want to sway, although it may look strange if the components are a different size as the preferred size of the panel will be the size of the largest component
    b) Simulate a card layout using:
    panel.remove(...)
    panel.add(...);
    panel.revalidate(...)

Maybe you are looking for