I have a custom JComponent that paints some stuff when paint
is called. In a Border
layout, though, it's minimumSize
is not being respected. I've included this
@Override
public Dimension getMinimumSize() {
System.out.println("asking for min size");
return MINIMUM_SIZE;
}
and it never gets called. I've also tried setting min size on the container that holds it, and on the JFrame that holds that. How can I put some limits in here?