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: setText help

  1. #1
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default setText help

    Hi,
    Last edited by stresstedout; April 9th, 2014 at 11:17 PM.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,316
    My Mood
    Mellow
    Thanks
    253
    Thanked 780 Times in 765 Posts

    Default Re: setText help

    is this possible??
    Yes.
    does anyone know on how to i can do this?
    Of course: Add an action listener to the button (or several, not sure of the big picture) that does what you need when the button(s) is/are selected.
    or another thing i wanted to try was the statuslabel to have several png questions . . .
    What's a 'png question'?
    . . . every time the button is clicked?
    Same as before: Use an action listener on the button that does as desired.

    What's wrong with the actionPerformed() method you posted? Post sample code that does or tries to do what you've described and ask specific questions about how to modify it to meet your requirements.

Similar Threads

  1. setText Not Working
    By mattpotter28 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 15th, 2012, 03:22 PM
  2. .setText() for an int?
    By SilentNite17 in forum AWT / Java Swing
    Replies: 12
    Last Post: April 1st, 2012, 12:09 PM
  3. setText() NULL pointer excception problem
    By TempSpectre in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 5th, 2010, 09:32 PM