Posted by
Douglas Benn-2 on
Mar 11, 2010; 6:47pm
URL: http://imagej.273.s1.nabble.com/Width-of-Log-window-tp3689009p3689012.html
Hi Michael,
Thank you for your reply.
Yes I am very familiar with the macro functions which I have been using. In
fact I wrote the following code
print("Open Log window");
selectWindow("Log");
setLocation(100,100,800,700);
updateDisplay();
print(".....................................");
The output into the Log was
Open Log window
.....................................
But the size of the window does not increase from the default value. Any
suggestions?
Thanks.
Douglas
On 3/11/10 12:11 PM, "Michael Schmid" <
[hidden email]> wrote:
> Hi Douglas,
>
> first you should say whether you write a macro or a plugin.
>
> For macros, see
>
http://rsb.info.nih.gov/ij/developer/macro/functions.html>
> There, you will discover the selectWindow("name") and setLocation(x,
> y, width, height) commands.
>
> For a plugin, java.awt.Window is a subclass of java.awt.Component.
> It inherits the setSize(int width, int height) method.
> See
>
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html>
> Michael
> ________________________________________________________________
>
> On 11 Mar 2010, at 18:40, Benn, Douglas K. wrote:
>
>> Can anybody please tell me the correct syntax for setting the width of
>> the Log window?
>>
>>
>> Thank you.
>>
>> Douglas Benn
Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal
College of Radiologists, England).
Professor
Dept of General Dentistry
Creighton University Dental School
2500 California Plaza
Omaha
Nebraska 68178
Tel: (402)280 5025
Fax: (402)280 5094