how do I do that? I'm just starting in java programming hehe
Its exactly the same as using a JPanel. What did you try and what problems did you have? This is how you learn when you are a beginner. You try things. If they don't work as expected then you post the code you used with a question and we will help you out.
can you make a running code for that so I can copy-paste it in java empty class? tnx in advance
No. You can read the section from the Swing tutorial on
Using Layout Managers for examples.
Why do you think I gave you the llink above on "How to Use Icons". Too bad you where given the answer, now you didn't bother to read the section I pointed you to and you also didn't read the layout manager section on your own either.
Tutorial exist for you to read them and learn the basics.