Browse by category:
|| | ||
Trying to compile the JFC examples using Swing/jfc results in errors like these:
Monitor.java:13: Class java.awt.swing.JApplet not found in import.
Chart.J's JFC examples were built using the JDK 1.2 beta. Some of the path names and imports differ between the final version of JDK 1.2 and the version of Swing/jfc you are using.
Current versions of StudioJ use the new javax.swing.* pathing instead of the older Swing version com.sun.java.swing.*.
If you need to change your code to use this new pathing, the PackageRenamer utility on Sun's website will help you automatically change all your import statements.
To change the libraries to correctly use the Swing paths, change the following:
- In StudioJcom oguechartjfccorev2_2graphicsCanvas3D.java, the first few lines should look like this:
//import java.awt.swing.JComponent; //comment this out
import com.sun.java.swing.JComponent; // add this line
- In StudioJcom oguechartjfcoverlayoverlaysv2_2chartsOverlayChart.java, the first few lines should look like this:
//import java.awt.swing.JComponent; // comment this out
import com.sun.java.swing.JComponent; //add this line
After making these changes, recompile these two files.
In the sample, you might also need to change the import line to look as follows:
//import java.awt.swing.JApplet; //comment this out
import com.sun.java.swing.JApplet; //add this line
public class LineExample extends JApplet
|Color printouts of Grid.J lose the background colors||Using RWDBConnection in nested RWDBReaders|