Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、画面を開くときに、jsplitpane コンポーネントにデフォルトの高さと幅を割り当てたいと考えています。このタスクを実行する最も簡単な方法は何ですか?
私が見つけた最良の方法は、分割ペインがネストされているフレームの setVisible() をオーバーライドしてから、分割ペイン自体で setDividerLocation() を呼び出すことです。
setDividerLocation() は、int (ピクセルの位置) または double (比例した幅/高さ) のいずれかを取ることができます。