Java Swing window not showing

I have uploaded 2 .java files one is ShapedWindow and second Window. When running ShapedWindow the window appears as expected and UI works. ShapedWindow is basically few copypasted snippets together, so I wanted to rewrite it with Anonymous class overriding JPanel as seen in Window class but when running that, GUI does not show up, as if the call to display does not happen. Since biggest change was the Anonymous class I would be looking for issue there but I am not sure what exactly I am looking for. Is there a way of doing this better?
1 Reply
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @TwinkleTurd ✨! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 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. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
💤 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. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server