erreur d'exception "internal compilation Error"
bjr,
j'ai telecharger le code source pour les swingx
voila mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
package org.jdesktop.swingx;
import java.awt.Font;
import javax.swing.*;
public class JXHeaderDemo extends JPanel {
public JXHeaderDemo() {
setLayout(new VerticalLayout(3));
add(new JXHeader());
JXHeader header = new JXHeader("A Custom JXHeader",
"This JXHeader sets a custom title, an icon, and a custom description.\n" +
"Multiple lines can be specified by using a \\n control character.\n" +
"You may even specify more than two lines using this technique.",
new ImageIcon(JXHeaderDemo.class.getResource("resources/header-image.png")));
add(header);
header = new JXHeader("This JXHeader uses a different font",
"By calling setFont(), I can replace the font used by this\n" +
"JXHeader. Note, however, that it affects both the title and" +
"the description.", null);
header.setFont(new Font("Times New Roman", Font.PLAIN, 14));
add(header);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.setSize(400, 400);
frame.add(new JXHeaderDemo());
frame.setVisible(true);
}
});
}
} |
mais lors de l'execution, il genere l'erreur suivant
Code:
Error: Internal compilation error, terminated with a fatal exception
pour la compilation aucune erreur n'est affichée en rouge ds jdeveloppper
pouvez vous m'aider pour resoudre ce probleme