Mensen / swa-matlab

Sleep Wave Analysis - an open source toolbox for matlab to score and analyse various waveforms in sleep EEG data
51 stars 20 forks source link

javacomponent warning and errors with swa_Explorer.m #64

Open jtlechem opened 2 years ago

jtlechem commented 2 years ago

Trying out swa-matlab toolbox for the first time. Trying to just run the template/example scripts. When I run swa_Explorer.m, the GUI opens but with the following warnings/errors in the command window:

`>> swa_Explorer Warning: JAVACOMPONENT will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com.

In javacomponent (line 85) In swa_Explorer>DefineInterface (line 289) In swa_Explorer (line 3) Warning: JAVACOMPONENT will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com. In javacomponent (line 85) In swa_Explorer>DefineInterface (line 298) In swa_Explorer (line 3) Warning: The JavaFrame figure property will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com. In findjobj/getRootPanel (line 408) In findjobj (line 230) In swa_Explorer>DefineInterface (line 318) In swa_Explorer (line 3) Check for incorrect argument data type or missing argument in call to function 'setVerticalAlignment'.

Error in swa_Explorer>DefineInterface (line 322) handles.java.StatusBar.setVerticalAlignment(javax.swing.SwingConstants.CENTER);

Error in swa_Explorer (line 3) DefineInterface`

Then I go to load .\swa-matlab-develop\Templates\swaFile_5min_example.mat, the following error occurs:

`Unrecognized field name "fig".

Error in swa_Explorer>menu_LoadData (line 488) set(handles.fig, 'Name', ['Travelling Waves: ', swaFile]);

Error while evaluating Menu Callback.`

If I comment out line 488 of swa_Explorer>menu_LoadData, (it didn't seem entirely necessary), then I get an error on the next "handles.____" line:

`Unrecognized field name "java".

Error in swa_Explorer>menu_LoadData (line 498) handles.java.ChannelBox(1).setModel(java_model1);

Error while evaluating Menu Callback.`

So at this point I'm not sure at all what is going on. Any tips to get around this? I was hoping to be able to just throw in my eeg data and see where the spindles and slow waves are located. Thanks for any help possible