2010-09-01 50 views
7

我能夠從JInternalFrame刪除標題欄,但我不知道如何刪除邊框。如何刪除JInternalFrame中的邊框?

+0

只是一種猜測,但調用'frame.setBorder(NULL);' – jjnguy 2010-09-01 18:24:31

+0

感謝它爲我工作。 – Lalchand 2010-09-01 18:26:23

+0

甜,我補充說,現在作爲一個答案,我知道它的作品。 – jjnguy 2010-09-01 18:27:36

回答

9

要刪除邊框只需撥打frame.setBorder(null);

任何邊界是null根本就沒有顯示。

+1

非常感謝你。 – 2011-08-28 03:00:04

+0

@Tushar,不客氣。 – jjnguy 2011-08-28 15:37:09

+0

不適用於靈氣UI。 – Mordechai 2016-06-28 18:45:51

1

要刪除所有邊界,只需撥打:

this.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 
+0

非常感謝你... – Moon 2016-08-27 18:29:01