p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_java_objects thread: chapter 16 page 521


Message #1 by "gemann" <gemann32@h...> on Sat, 8 Jun 2002 20:18:22
Hi, In the source code for Calculator2 the line:

input1TextField = new JTextField(10);

What does the (10) paramater signify?

Thanks gemann.
Message #2 by Jacquie Barker <jjbarker@e...> on Sat, 08 Jun 2002 19:20:52 -0400
It specifies that the preferred size of the JTextField should be the width of 10 lower case
"m" characters in whatever font the JTextField defaults to.

Regards,

Jacquie

gemann wrote:

> Hi, In the source code for Calculator2 the line:
>
> input1TextField = new JTextField(10);
>
> What does the (10) paramater signify?
>
> Thanks gemann.

Message #3 by "gemann" <gemann32@h...> on Sun, 9 Jun 2002 07:45:40
> It specifies that the preferred size of the JTextField should be the 
width of 10 lower case
"m" characters in whatever font the JTextField defaults to.

Regards,

Jacquie

gemann wrote:

> Hi, In the source code for Calculator2 the line:
>
> input1TextField = new JTextField(10);
>
> What does the (10) paramater signify?
>
> Thanks gemann.

Thanks Jacquie, a very helpful book.

Thanks again,

gemann

  Return to Index