Synchronize scroll bars of two uitables
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Antoine Luijkx
am 25 Aug. 2012
Beantwortet: John Anderson
am 20 Jun. 2018
Hello,
In a GUI, I created two (large) uitables. I need to synchronize scrollbars (horizontal and vertical), so when the user browses (scrolls down, up, left, right...) in one uitable, the view of the other uitable follows and keeps synchronized (same rows/columns are shown).
Is there a way to do that?
Thank you,
Antoine
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Aug. 2012
There is no documented way to affect the scrolling of even one uitable.
1 Kommentar
Weitere Antworten (1)
John Anderson
am 20 Jun. 2018
Thanks for this answer, very useful. There may well be better ways of doing this now. However, to avoid having to play around with the visibility of the matlab uitable objects using the lines
set(tab1,'Visible','off');pause(0.01);set(tab1,'Visible','on');
you can simply invoke the repaint method of the javacomponent. This reduces the flicker and makes the operation run a little smoother.
jhEdit2.repaint
jhEdit1.repaint
0 Kommentare
Siehe auch
Kategorien
Mehr zu Desktop finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!