Guys,
I want to invoke a jdialog and I'm using this line of code:
Component c = SwingUtilities.getRoot((Component)e.getSource());
JDialog subDialog = (JDialog)c;
It works GREAT in the entire project;
but for some reason, in diff class I get this message:
java.lang.ClassCastException
at CustomizeAgent.actionPerformed(CustomizeAgent.java:315)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)...
WHY??? any idea how to correct it?