Dialog box size

imagej

#1

Hi
I just discovered the new function “Dialog.addToSameRow()” which make my Dialog much more User friendly ;
But now the default dialog box size is too small:
2018-05-04 09_40_32-Photos
Is there a way to easily fix that?
Thanks in advance!
Alban


#2

Good day!

Could you please provide the macro code, so we can check as well?

Regards

Herbie

ADDITION:

This works for me, although it doesn’t look very nice:

color = newArray("red","green","blue");
slice = newArray("1","2","3","4");
Dialog.create("Test Dialog");
	Dialog.addChoice("Color", color, color[1]);
	Dialog.addToSameRow();
	Dialog.addNumber("with value", 255, 0, 3, "steps");
	Dialog.addToSameRow();
	Dialog.addNumber("that increment in", 4, 0, 2, "steps");
	Dialog.addChoice("Slice", slice, slice[0]);
	Dialog.addToSameRow();
	Dialog.addCheckbox("Delete", true);
	Dialog.addToSameRow();
	Dialog.addCheckbox("Recolor", false);
Dialog.show();

Ohne Titel-1


#3

sure:

		Dialog.create("Micro properties"); 
		Dialog.addChoice("Micro ", newArray("DP4","DP4A","DP4A2","DP11","DP31","DU","UA1","DP10","DTS10","DX","DX10","DS","HI-EX","Sinter","False"));
		Dialog.addToSameRow();			
		Dialog.addString("lot","0000");
		Dialog.addToSameRow();
		Dialog.addString("OF","200");
		Dialog.addToSameRow();
		Dialog.addChoice("Rouleau", newArray("1", "2", "3", "4", "5", "6"));
		Dialog.addToSameRow();
		Dialog.addChoice("DF", newArray("Début", "Fin"));
			
		
		Dialog.setLocation(5/6,0)
		Dialog.show();

#4

This is what I get with your code:

Ohne Titel-1

Not sure what’s the reason for your result …

Regards

Herbie


#5

Same here (Linux):

Screenshot_2018-05-04_12-23-56

Are you using Windows?


#6

Yes, using windows 10


#7

The dialog box looks okay on my Windows 10 system running ImageJ 1.52b and Java 1.8.0_112. What are you using?

Screenshot


#8

Thanks for your help , i updated from ImageJ1.52A to 1.52b and it worked!