Bonjour, je développe une application java.

Ma fenetre principale est une jFrame, et j'ai tout un tas de JDIalog.

Il y a un jDialog 1, qu'on peut ourvrir de la frame privipale, et d'un jdialog.
Quand je l'ouvre à partir du jDialog, ca me sort une erreur :

java.lang.ClassCastException: other_dialog.resultats_recherche_mod cannot be cast to javax.swing.JFrame

pourtant, j'ai adapté mes constructeurs....

[
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
public nouveau_change_liaison_mod(JFrame owner) {
		super(owner);
		datas.reset_current_nouveau_change_liaison();
		initialize();
	}
 
	public nouveau_change_liaison_mod(JDialog owner) {
		super(owner);
		datas.reset_current_nouveau_change_liaison();
		initialize();
	}]
je ne vois pas ou est le problème??

merci pour votre aide