Search found 5 matches

by leshem
Thu Oct 22, 2009 7:18 pm
Forum: JFreeChart
Topic: How to add a chart to a specific panel?
Replies: 8
Views: 6088

Re: How to add a chart to a specific panel?

Even I add scatterPanel.validate(), it doesn't show. But I found if I add a Internal Frame to the current frame to contain the chart panel, it shows. I still don't know how to let the chart shows in a panel. What is the layout manager for scatterPanel? Have you called validate() and/or invalidate() ...
by leshem
Tue Oct 20, 2009 4:55 am
Forum: JFreeChart
Topic: How to add a chart to a specific panel?
Replies: 8
Views: 6088

Re: How to add a chart to a specific panel?

My code is JPanel localJPanel = createDemoPanel(); localJPanel.setPreferredSize(new Dimension(500, 270)); setContentPane(localJPanel); scatterPanel.add(localJPanel); scatterPanel.setVisible(true); localJPanel is used to get the chartPanel generated by createDemoPanel(), I want to add localJPanel int...
by leshem
Mon Oct 19, 2009 7:02 am
Forum: JFreeChart
Topic: How to add a chart to a specific panel?
Replies: 8
Views: 6088

Re: How to add a chart to a specific panel?

I added the chartPanel to a jPanel which embeded in the current frame in order to show the chart. And I add code this.setVisible(false) before it. But when I run the program, the current frame disappear as I press the button and shows again with nothing on the frame. I use NetBeans to edit the inter...
by leshem
Sun Oct 18, 2009 10:18 pm
Forum: JFreeChart
Topic: How to add a chart to a specific panel?
Replies: 8
Views: 6088

Re: How to add a chart to a specific panel?

Anyone?
by leshem
Sun Oct 18, 2009 8:23 am
Forum: JFreeChart
Topic: How to add a chart to a specific panel?
Replies: 8
Views: 6088

How to add a chart to a specific panel?

Hi, my name is leshem. I am learning jFreeChart recently. I tried very hard on add a chart to a specific panel in a frame. It always fails. I think my code is correct since I can show the chart in a new frame with the same code. But what I want is to show the chart in the same frame which I choose x...