Fairly new to Java... problem is trying to pass a Jframe (or frame) to another class. Both classes extend JFrame.
public class firstClass extends JFrame
secondClass second = new secondClass("sometext", getFrames());
public class secondClass extends JFrame
public secondClass(String sometext, Frame aframe)
The above code works some of the time depending on how I interact with the gui. I have spent hours searching through the methods for Window, Frame and JFrame. Once again I am fairly new to Java(over a year) and any input would be welcomed. Thanks