well... you don't, really. You could subclass JPanel and override getInsets(), but typically, if you want to change the insets, it's common to use an empty border...
panel.setBorder(BorderFactory.createEmptyBorder(2, 3, 4, 5)); // top, left, bottom, right
or you can use that with a compound border if you need padding and some other border.