This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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)...