Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javacomponent warning and errors with swa_Explorer.m #64

Open
jtlechem opened this issue Mar 3, 2022 · 0 comments
Open

javacomponent warning and errors with swa_Explorer.m #64

jtlechem opened this issue Mar 3, 2022 · 0 comments

Comments

@jtlechem
Copy link

jtlechem commented Mar 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant