You can use setPreferredSize() in BorderLayout also. The problem lies in the code, you are adding the same component to the other Panel ...
確定! 回上一頁