Get existing object from class name without needing command-line arguments
public class Target extends javax.swing.JFrame { private Object FieldIWant; /* constructor and other stuff */ public static void main(String args[]){ new Target().setVisible(true); } } Is there a way I can get FieldIWant for the guaranteed only running instance from another class? I have the fully qualified classname of Target. I will add some backstory later. […]