I\'m trying to show multiple images in a component\'s tooltip, found createToolTip() and implemented a custom that adds the needed components like this:
createToolTip()
It might sound silly but, have you tried setting bounds for JPanel ?
JPanel
setBounds(100, 100, 150, 50);
And you can try setting a gap between components in BorderLayout
BorderLayout
JPanel content = new JPanel(new BorderLayout(1,1));