This is expected behaviour, the setPreferredSize is just to tell children how they should look. but the background is based on children size not ...
確定! 回上一頁