If you are interested in the Accountname of the current user, you can use
the following :

  Properties sysProps = System.getProperties();
  String name = sysProps.get("user.name");
  jtextfield.setText(name);

Hope this helps

Sybille

----- Original Message -----
From: "John A. Preston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 11:08 AM
Subject: Current user


> Does anybody know how I can get the current user name to use in a
JTextField
>
> John
> _______________________________________________
> Swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/swing
>

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to