J
John_Woo
Hi,
let's say
JTextField f = new JTextField(100);
f.setText( "more than 100 letters..| <inside is 100 letters end");
in a case setSize(400,200), or supposed the wide-size for this f is
just 100-letters length.
what displayed is that, f displays the 100 letters which backford from
the end of the string,
like "inside is 100 letters end";
I'm wondering, how to make it display from a specified postion?
I've tried
javax.swing.BoundedRangeModel m = f.getHorizontalVisibility();
m.setValueIsAdjusting(true);
m.setValue(10); //display from postion 10 to the end.
but it changed nothing.
let's say
JTextField f = new JTextField(100);
f.setText( "more than 100 letters..| <inside is 100 letters end");
in a case setSize(400,200), or supposed the wide-size for this f is
just 100-letters length.
what displayed is that, f displays the 100 letters which backford from
the end of the string,
like "inside is 100 letters end";
I'm wondering, how to make it display from a specified postion?
I've tried
javax.swing.BoundedRangeModel m = f.getHorizontalVisibility();
m.setValueIsAdjusting(true);
m.setValue(10); //display from postion 10 to the end.
but it changed nothing.