Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How To Read jar arguments in javaswing JtextField

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How To Read jar arguments in javaswing JtextField

    Dear All,

    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
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,046
    Thanks
    52
    Thanked 2,280 Times in 2,251 Posts

    Default Re: How To Read jar arguments in javaswing JtextField

    Also posted at How To Read jar arguments in javaswing JtextField - Dev Shed
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. passing arguments
    By Samaras in forum Java Theory & Questions
    Replies: 19
    Last Post: August 2nd, 2012, 05:47 AM
  2. Method is not applicable for the arguments
    By jbodary in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 23rd, 2012, 07:05 AM
  3. Read input, read file, find match, and output... URGENT HELP!
    By MooseHead in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 3rd, 2012, 11:01 AM
  4. execute bat file with arguments
    By kafka82 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: August 6th, 2011, 01:20 PM
  5. Tiny problem with arguments.
    By Melawe in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 15th, 2011, 02:26 PM