I have a not scrollable Form
with a BorderLayout
. In the CENTER
of this BorderLayout
, I have made a scrollable Container
with BoxLayoutY
. Inside this Container
are appearing more Container
. When there are a lot of Containers
the CENTER
Container
is scrollable, but the last element is nos visible, I have to go down with the focus to see the last Container
. What I want to do is:
When a new Container
appears in the CENTER
Container
, this Container
must scroll down, revealing the last Container
added...is like an auto-scrolling.
Any help?
Asked
Active
Viewed 539 times
1

Mun0n
- 4,438
- 4
- 28
- 46
1 Answers
2
What about :
componentOfLastContainer.requestFocus();
centerBigContainer.repaint();

pheromix
- 18,213
- 29
- 88
- 158
-
Thanks! I'm going to try this! – Mun0n Mar 27 '12 at 07:08