Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Joseph Burgel
Joseph Burgel le 31 Jan 2018
Clôturé : MATLAB Answer Bot le 20 Août 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?

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by