I initialize a JLabel in Java frame like this :
contentPane.add(myLabel, cc.xywh(1, 1, 31, 6, CellConstraints.DEFAULT, CellConstraints.BOTTOM));
But before showing the JFrame i make a small condition which if returns true i want to set myLabel to be set to DEFAULT instead of BOTTOM, but i can't find anyway except redefining it again like this :
contentPane.add(myLabel, cc.xywh(1, 1, 31, 6));
So is there a better way to just edit the vertical location property ?