saplingPro
saplingPro

Reputation: 21329

leaving gap from top in panel

enter image description here

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

Answers (1)

aioobe
aioobe

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

Related Questions