Menu

#915 Layout manager freezes app in version 1.0.12

closed-duplicate
None
5
2009-03-19
2009-02-17
No

I am using Netbeans 6.5 under Windows Server 2008.
I had to add the old JFreechart 1.0.9 in order my code could work again. If I use the version 1.0.12, the Layout manager freezes the application and I have to end the process using Task manager. My code:

I generate my jfreechart instance reading data from the database:

OHLCDataset ohlcdataset = createDataset();
jfreechart = ChartFactory.createCandlestickChart(config.getChartTitle(), MsgCommon.use().getMsg("period"), MsgCommon.use().getMsg("price"), ohlcdataset, true);

------------------------------------------
Then I have a Jframe with a button that open a new window as follow:

public void button_pressed() {
JFrame jif = new JFrame();
jif.getContentPane().setLayout(new BorderLayout());
jif.setSize(800,600);
jif.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
jif.setVisible(true);
jif.repaint();

chartpanel = new ChartPanel(jfreechart);
jif.getContentPane().add(chartpanel, BorderLayout.CENTER);
chartpanel.revalidate();
}

Discussion

  • David Gilbert

    David Gilbert - 2009-03-19
    • assigned_to: nobody --> mungady
     
  • David Gilbert

    David Gilbert - 2009-03-19

    There's not enough information in your post to determine what the problem is, but I'm going to make a wild guess and say that the problem is the same as this bug:

    https://sourceforge.net/tracker2/?func=detail&aid=2499965&group_id=15494&atid=115494

    I'll transfer this from 'Patches' to 'Bugs' and close it as a duplicate. Feel free to re-open it if you (a) think it is not a duplicate of the bug I mentioned, and (b) can attach a test case that reproduces the problem.

     
  • David Gilbert

    David Gilbert - 2009-03-19
    • status: open --> closed-duplicate
     

Log in to post a comment.