Hi,
I need to scroll the alarm message in the Alarm Journal from top to down until end of alarm message with the up/down button. Any help is appreciate it. Thanks,
Hi,
I need to scroll the alarm message in the Alarm Journal from top to down until end of alarm message with the up/down button. Any help is appreciate it. Thanks,
You've got three sets of up/down buttons - the code behind them is going to be different either way.
Searching these forums for scroll alarm status table #vision
(Search results for 'scroll alarm status table #vision order:likes' - Inductive Automation Forum) gets a variety of hits, though this is the most useful:
Alarm status table: scrollbar width and return to top in marquee mode [vision] - #2 by justinedwards.jle
The basic idea is the same, though - reach for the internal Java swing objects and call their internal methods to scroll.
Thanks for the link. However, that’s not what I want.
I would like to stop the Alarm Journal Refresh and Highlight the Alarm Text and using Up/Down button the scroll to next alarm in the Alarm Journal list. Thanks
The basic principle still applies.
Reach into the inner Java Swing table object to retrieve its selection model, and then from your buttons make programmatic adjustments to it.
JTable
defines getSelectionModel()
which is guaranteed to return an instance of ListSelectionModel
which has a variety of helpful methods for retrieving or setting selection indices.