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

show stack name #2

Open
orena1 opened this issue Feb 17, 2021 · 2 comments · May be fixed by #4
Open

show stack name #2

orena1 opened this issue Feb 17, 2021 · 2 comments · May be fixed by #4

Comments

@orena1
Copy link

orena1 commented Feb 17, 2021

It would be great to see the name of the stack for which the volume is presented.

@ctrueden
Copy link
Member

ctrueden commented Nov 7, 2021

On the ImageJ mailing list, Hidenao Iwai wrote:

I can solve the issue#1 on GitHub (show stack name)
Add two lines as follows in Volume_Viewer.java,

public void run(String args) {
        ...
        imp = WindowManager.getCurrentImage();
        String stackName = imp.getTitle(); // <--- added
        if (imp == null  || !(imp.getStackSize() > 1)) {
        ...
        else {
                frame = new JFrame("Volume Viewer " +  version + " (" + stackName + ")");  // <--- modified
                frame.setLocation(control.xloc,control.yloc);
        ...

@orena1 If you would care to file a PR, I would merge and release a new Volume Viewer.

@orena1 orena1 linked a pull request Nov 10, 2021 that will close this issue
@orena1
Copy link
Author

orena1 commented Nov 10, 2021

Done -#4
Did not test, but looks reasonable. Thanks!!

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

Successfully merging a pull request may close this issue.

2 participants