
383Customizing MATLAB
®
Controls
Now, let us use this logging utility function to log some messages:
logMessage(jEditbox, 'a regular info message. . .');
logMessage(jEditbox, 'a warning message. . .', 'warn');
logMessage(jEditbox, 'an error message!!!', 'error');
logMessage(jEditbox, 'a regular message again. . .', 'info');
(See color insert.)
HTML editboxes are normally editable, images included. In actual applications, we may
wish to prevent editing the display log. To do this, simply call
jEditbox.setEditable(false).
Setting a hyperlink handler is easy: rst we need to ensure that we are using an HTML
content-type document. Next, set ...