Pregunta

Could you please tell me how can I refresh viewPort or maximizing and minimizing the window in JScrollPane. I know I may have to called repaint or revalidate but I do not how write listener for that.

Minimize window enter image description here

Maximize window enter image description here

¿Fue útil?

Solución

The content should implement Scrollable:

public boolean scrollableTracksViewportWidth() {
    return true;
}

This will also block horizontal scrolling.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top