leaving gap from top in panel
I have taken this snapshot from netbea开发者_如何学JAVAns.what is the method to add vertical gap from jpanel ? (i.e vertical gap from panel to the first component )
There are several ways. Either you let the layout manager take care of it, or you could use a BorderFactory.createEmptyBorder
.
精彩评论