MATLAB Answers


This question is closed. Reopen it to edit or answer.

Is there a way to set gcbf when a java callback is executing?

2 views (last 30 days)
Joseph Burgel
Joseph Burgel on 31 Jan 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
When a callback defined in this manner:
JMenuItem = ...
h_Java = handle(JMenuItem, 'CallbackProperties');
is executing, gcbf() returns empty. This causes msgbox() to misplace itself. Any way to set gcbf() on callbacks created this way?

Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!