For custom rendering purposes, I've created a class (axialPanel.java) that extends JPanel and overrides the paintComponent method. An instance of axialpanel is added to the west side of a container class set with a BorderLayout. I would like to have a few pixels of margin around the axialpanel, but setting axialpanel's border to an instance of EmptyBorder with some moderate size doesn't appear to work. Any thoughts on how I might accomplish this?
Thanks in advance.