Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Joseph Burgel
Joseph Burgel am 31 Jan. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
When a callback defined in this manner:
JMenuItem = ...
javaObjectEDT('javax.swing.JMenuItem',strMenuName);
h_Java = handle(JMenuItem, 'CallbackProperties');
set(h_Java,'MouseReleasedCallback',Callback);
is executing, gcbf() returns empty. This causes msgbox() to misplace itself. Any way to set gcbf() on callbacks created this way?

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by