I would like to transfer a large String
from a JTextField
to a JLabel
,but it is not displaying as expected
E.g:
wwwwxxyy...
As upon reaching the end of the JLabel
it stops, but i would like it to continue to the next line
Please guide me
My code:
String url=txturl.getText();
String uname = txuser.getText();
String pwd = pass.getText();
pass.setVisible(false);
txuser.setVisible(false);
txturl.setVisible(false);
JLabel path=new JLabel();
JLabel username=new JLabel();
JLabel password=new JLabel();
path.setText("path is:"+url.toString());
username.setText("usename is:"+uname);
password.setText("password is:"+pwd);