I have a JPanel
which works allright. But there's a problem. I add a component which draws background for whole JFrame
and also adds some buttons.
Problem starts when the JPanel
"packs"(pack()
) itself and only half of the background is visible.
I've tried to set panel's size and preferred size but it didn't work.