#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    How To Read jar arguments in javaswing JtextField


    I am new to Java swing, actually i have developed Swing component and make executable jar file
    now when i am calling jar i am passing parameter, but when i am trying to display that parameter in java swing component i am not getting any result as per my till now finding, i found that
    initComponents(); which is in constructor executing before main method, in main method i am setting jtextfield with parameter.

    However i done it with Private static variable , i am not satisfy this approach as static variable using memory and its treated as single copy.

    please help me is there any there way.
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    348
    Please post the code you are having problems with and explain what you are trying to do.
    Be sure to wrap the code in code tags.

IMN logo majestic logo threadwatch logo seochat tools logo