![]() However, setting the background color is actually setting the background color of the not visible root pane. As of Java 5, most things added directly to the Frame are added to the content pane. The one focused here is the content pane which displays pretty much everything (except the optional menu bar). ![]() There are multiple panes on the JFrame: root pane, layered pane, content pane, glass pane. its worth noting why it works, not just a code answer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |