Results 1 to 2 of 2
  1. #1
    hamsalekha is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Lightbulb Java gui help!!!

    Hi am working on a chat gui using java.
    the problem is am able to retrieve a list my friends from my xmpp server and display it in the form of text in the textbox of my client gui.
    now i want to actually display them as button so that i can use actionlistener on click of the button.
    i want this list of buttons to be added automatically as my friends on the server add up.
    such that on click of the corresponding button i should get a private window where i can one-one chat ..

    any suggestions in this regard is highly appreciated.
    thank you

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: Java gui help!!!

    It should be fairly easy for you to change the code that adds to the textbox into code that adds a new button.
    I would make it a method that takes whatever data you think the button/action listener needs and returns a button which can then be added to the container.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •