Can't change the JTextField text
<p>I usually write the code in C#, and I even have the application finished in C#, but I need to port it to Java.</p>

<p>Just started out today, never really used Java before.</p>

<p>The problem is quite strange because I do not get any error it just does not update, here's the code:</p>

<pre><code>public void setInfoStrip(String infoStrip) {
    InfoStrip.setText(infoStrip);
}
</code></pre>

<p>The above is a Setter that should update the JTextField (and it does if I update it using the ActionListener for a button), but it does not update the text when I call it in a class or even in the main(String[] args) entry point of application using this code:</p>

<pre><code>mainGUI GUI = new mainGUI();
GUI.setInfoStrip("test");
</code></pre>

<p>or this code:</p>

<pre><code>new mainGUI().setInfoStrip("test");
</code></pre>

<p>My guess is that it does nothing becuase I call it from a static class</p>

<pre><code>public static void main(String[] args)
</code></pre>

<p>But even if I create a new class that's not static and reference it from the public staitc void main(String[] args) then put either </p>

<pre><code>mainGUI GUI = new mainGUI();
GUI.setInfoStrip("test");
</code></pre>

<p>or </p>

<pre><code>new mainGUI().setInfoStrip("test");
</code></pre>

<p>It the newly created class, which I call by </p>

<pre><code>new ImGoingToCry().Alot();
</code></pre>

<p>It still does nothing.</p>

<p>I'm confused as hell, I even read some problems connected with this on google but they were all solved by this: </p>

<pre><code>mainGUI GUI = new mainGUI();
GUI.setInfoStrip("test");
</code></pre>

<p>Here's the MVCE that some of you requested:</p>

<pre><code>public class mainGUI {
// GUI Elements
private JPanel WorkSpace;
private JTabbedPane tabbedPane1;
private JList DetectedProfiles;
private JButton StartGame;
private JTextField CurProf;
private JButton BackupProfiles;
private JButton SearchSaves;
private JButton RetrieveProfiles;
private JTextField InfoStrip;
private JLabel ProfileSize;

/**
 * Getter and Setter functions
 */
public void setInfoStrip(String infoStrip) {
    InfoStrip.setText(infoStrip);
}


// Initialize the main application GUI and set it's properties
public static void main(String[] args) {
    JFrame mainGUIFrame = new JFrame("The Witcher 3 Save Manager | " + " ver. "  + GlobalVariables.appversion);
    mainGUIFrame.setContentPane(new mainGUI().WorkSpace);
    mainGUIFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    mainGUIFrame.setLocationRelativeTo(null);
    mainGUIFrame.setPreferredSize(new Dimension(420, 370));
    mainGUIFrame.setResizable(false);
    mainGUIFrame.pack();
    mainGUIFrame.setVisible(true);
    new mainGUI().run();
}


public void run() {
    /**
     * Initialize the core application functions
     */
    // Load the application settings
    GlobalVariables.Settings();
    // Initialize the app components
    GlobalVariables.Initialize();

    // Pass the value to setter
    new mainGUI().setInfoStrip("test"); // This should change the text but it does nothing there's not even an error
}
}
</code></pre>