Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by...
While working with Java, I find it hard to position my main window in the center of the screen when I start the application. Is there any way I...
I’m putting together a Swing application where I often want to replace the contents of a JPanel. To do this, I’m calling removeAll(), then adding my new content, then...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question...
I want the message box to appear immediately after the user changes the value in the textfield. Currently, I need to hit the enter key to get the message...
Can someone please explain me what’s the difference between Swing and AWT? Are there any cases where AWT is more useful/advised to use than swing or vice-versa? 9 Answers...
What’s the correct way to get a JFrame to close, the same as if the user had hit the X close button, or pressed Alt+F4 (on Windows)? I have...
I have a JPanel to which I’d like to add JPEG and PNG images that I generate on the fly. All the examples I’ve seen so far in the...
Several times I’ve been criticized for having suggested the use of the following methods: setPreferredSize setMinimumSize setMaximumSize on Swing components. I don’t see any alternative to their use when...
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by...