I am new to Swing. There is a silly question that I have. It seems that every Swing code must have a container since all of JFrame, JWindow, etc are all containers. But I am not very sure if this is true. Can we have a swing page without a container?
Share
Yes. Without the
Containerwe can’t add and arrange (set Layouts) components and containers. Take a look at – Top-level swing containers.