@Override
public void setVisible(boolean visible) {
// Do not want dialog to be resizable in height, as its size may increase each time because of the recently added tags
// So need to modify the stored geometry (size part only) in order to use the automatic positioning mechanism
if (visible) {
WindowGeometry geometry = initWindowGeometry();
Dimension storedSize = geometry.getSize();
Dimension size = getSize();
if (!storedSize.equals(size)) {
if (storedSize.width < size.width) {
storedSize.width = size.width;
}