I have a component "graphEditorPane" which extends from JGraph. Now I have this code :
graphEditorPane.setBackgroundComponent(situationLabel);
the problem is that this situationLabel is always aligned to the top left at the background of the pane. Is there a way to set it at the center of(the background of) the pane?