|
Hi all!
I have a slight problem with getting the size and
location of my components.
The few methods which i stated below do not return
me any useful information except 0.
Did i forget to set some attributes?
Please help me. Thanks alot!
JTextField tf = new JTextField();
cpane.add(tf, BorderLayout.NORTH);
/*
These statements all return 0.
tf.getHeight();
tf.getWidth();
tf.getX();
tf.getY();
*/
Regards,
S J Kwok
|
