Weird issue that gets solved with println
I am writing a code for GUI frontend and Springboot backend.
In gui i have methods that doesn't show any errors or bugs, they never function or work unless i insert System.out.println(" "); into them
I never ran into such issue
Here is an example:
When pressing add this method gets called
but it doesn't work unless i put print ln in it for some reason

9 Replies
⌛
This post has been reserved for your question.
Hey @Ed! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i dont think so, because its not even connecting to database unless i add print
it should insert something to database then make a change to gui, but its neither doing insert or updating gui
its like not executing anything but not showing any error its weird
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Where do you call this method? Show the addactionlistener?
this gets called once the class is called
@Ed in constructor?
also this method call is not the same as the one that takes an ActionEvent (the called one doesn't take any params)
i changed it later before you asked about the method
yes
which is why i say its weird, its 100% reaching this method just not making anything
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.