私はいくつかのコードをオンラインで見つけました。少し編集しました。 JInternalFrameのタイトルバーを非表示にしたいJInternalFrameのタイトルバーを隠していますか? -java
JInternalFrame frame = new JInternalFrame();
// Get the title bar and set it to null
setRootPaneCheckingEnabled(false);
javax.swing.plaf.InternalFrameUI ifu= frame.getUI();
((javax.swing.plaf.basic.BasicInternalFrameUI)ifu).setNorthPane(null);
frame.setLocation(i*50+10, i*50+10);
frame.setSize(200, 150);
//frame.setBackground(Color.white);
frame.setVisible(true);
desktop.add(frame);
問題は、何らかの理由でタイトルバーが非表示になっていないことです。おかげさまで
これは正しいです。これは.setUI(null)とは異なります。私はまた、特定のイベント(ウィンドウを最小化するような)の後でこれをやり直す必要があるかもしれないと読んでいます。 –
これは正解です。 [frame.setBorder(null); 'と組み合わせて[' JInternalFrame'](https://docs.oracle.com/javase/8/docs/api/javax/swing/JInternalFrame.html)を使うと便利です。 )をトップレベルの['JFrame'](http://docs.oracle.com/javase/8/docs/api/javax/swing/JFrame.html)内のソロコンポーネントとして[' JPanel '](http://docs.oracle.com/javase/8/docs/api/javax/swing/JPanel.html)を参照してください。 – vallismortis
私のために働いた。私も試していないが、魅力のように働く。ありがとうございました。 – George