help > RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn
Jul 4, 2024  10:07 AM | Ralf Veit
RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn

Dear Alfonso,


thanks for your suggestions. I installed the same conn version (conn22a) on my laptop as on the server. Unfortunately after starting conn the menu buttons are not readable (see attachment). 
According to https://www.mathworks.com/matlabcentral/... I made the following changes


cd(spm('Dir')) 
load spm_Menu.fig -mat 
hgS_070000.properties.DefaulttextFontName='FixedWidthFontName'; hgS_070000.properties.DefaultuicontrolFontName='FixedWidthFontName'; 
save spm_Menu.fig hgS_070000 -v6


% Edit spm/spm_Welcome.m and modify line: PF.helvetica = 'FixedWidthFontName';
set(0,'defaultTextFontName','FixedWidthFontName')  
set(0,'defaultUicontrolFontName','FixedWidthFontName') 


% Edit spm/matlabbatch/private/cfg_mlbatch_defaults.m and modify lines:


cfg_defaults.cfg_ui.lfont = {'FontAngle','normal',...
        'FontName',get(0,'FixedWidthFontName'),...
cfg_defaults.cfg_ui.bfont = {'FontAngle',get(0, 'factoryUicontrolFontAngle'),...
        'FontName',get(0,'FixedWidthFontName'),...


In SPM12 everything is readable now (toolboxes, results, batch ...). The problem consists only with conn. The strange thing is, when I use an older conn version (20b) on my laptop the problem doesn't exist (everything is readable). I think it makes no sense to use different conn version (client 20b and server 22a)?


Any ideas?


Ralf


  

Threaded View

TitleAuthorDate
Ralf Veit Jul 1, 2024
Alfonso Nieto-Castanon Jul 3, 2024
RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn
Ralf Veit Jul 4, 2024
Alfonso Nieto-Castanon Jul 4, 2024
Ralf Veit Jul 4, 2024
Alfonso Nieto-Castanon Jul 4, 2024
Ralf Veit Jul 5, 2024