Java Swing window not showing
I have uploaded 2 .java files one is
Is there a way of doing this better?
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?
ShapedWindow.java2.55KB
Window.java2.46KB