Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove the borders in JInternalFrame?

Tags:

java

swing

i was able to remove the title bar from the JInternalFrame but i don't know how to remove the borders.

like image 893
Lalchand Avatar asked Sep 01 '10 18:09

Lalchand


2 Answers

To remove the border simply call frame.setBorder(null);

Any border that is null is simply not shown.

like image 55
jjnguy Avatar answered Oct 27 '22 21:10

jjnguy


To remove all borders, simply call:

this.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
like image 31
Miguel Hernandez Avatar answered Oct 27 '22 22:10

Miguel Hernandez