When I prepare a JFrame, I am unable to talk to it. I can not change it again or click on the title button, though I am able to move the window. Even as some simplicity:
JFrame win = new JFrame (); Win.setVisible (true);
The problem will be displayed This application is displayed in the console when it starts:
2015-03-17 10: 06: 47.261 Java [1406 : 507] [java coca compatibility mode]: enabled 2015-03- 17 10: 06: 47.261 java [1406: 507] [java coconut compatibility mode]: Setting deadline for SWT 0.100000
Obviously this can happen when shaking swing and SWT components. I do not use the SWT library, although my project uses JFreeChart, which contains swtgraphics2d.jar
. Is there still a way to fix it, while still using the Geoffrey Chart?
one ChartPanel
your JFreeChart
and Adding ()
to it in JFrame
. The default status is BorderLayout.CENTER
, which should change its chart size with the frame.
Private Zero Exposure () {JFrame f = new JFrame (); F.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Create your dataset data = YOURDataset (...); Geoffrey Chart Chart = Create Interest (...); F.add (New ChartPanel); FPC (); F.SatelliteRelletto (empty); F.Ssevibible (True);}
With it,.
Public static zero main (string [] args) {EventQueue.invokeLater (New Runnabel) {@Override public void run () {new YourClass (). Display ();}})}
No comments:
Post a Comment