Reputation: 21329
I have taken this snapshot from netbeans.what is the method to add vertical gap from jpanel ? (i.e vertical gap from panel to the first component )
Upvotes: 1
Views: 183
Reputation: 421160
There are several ways. Either you let the layout manager take care of it, or you could use a BorderFactory.createEmptyBorder
.
Upvotes: 3