Below you will find a fully functional code example that shows how to do many common tasks with JPanel & JFrame. I stripped out as much useless "fluff" as I could, leaving the code as bare as possible ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results