DefaultListModel  HELP =P  i need to add something to the JTextField

      add.addActionListener(addtext);
  }   // End of the constructor
private JTextField boxlist = new JTextField();      <--  Box that is supose to show what do we add to the list.(Display the names)                  
private JTextField boxname = new JTextField("type your name here...");   <--- We right something and add to the boxlist
private JButton add = new JButton("ADD");
private AddButton addtext = new AddButton(); 
private DefaultListModel listmodel = new DefaultListModel(); 
private class ADDButton implements ActionListener{
          public void actionPerformed(ActionEvent e ){
               listmodel.addElement("something")   <--------- don't what to do we this handler, it is supose to give action to the Button (ADD)
     }thanks

Swing related questions should be posted in the Swing forum.
If I understand your question then you should read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists for an example that upates a list with the text entered in a text field.

Similar Messages

  • HT4623 I downloaded ios 7, and now i need to accept something in the app-store, but i can't accept it, and now i can't download a thing from the appstore anymore, someone knows how to fix it?

    I downloaded ios 7, and now i need to accept something in the app-store, but i can't accept it, and now i can't download a thing from the appstore anymore, someone knows how to fix it?

    Why can't it be accepted?
    What is "it"?
    If help is desired, stop being vague.

  • I downloaded ios 7, and now i need to accept something in the app-store, but i can't accept it, and now i can't download a thing from the appstore anymore, someone knows how to fix it?

    I downloaded ios 7, and now i need to accept something in the app-store, but i can't accept it, and now i can't download a thing from the appstore anymore, someone knows how to fix it?

    Hello, Robke100.
    I would recommend trying the steps in the article below.
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Once these steps are processed, attempt to accept the terms and conditions.
    Also, you can make a purchase via the iTunes Store on the computer.  This should allow you to bypass accepting the terms and conditions on the device.
    Cheers,
    Jason H.

  • HT2463 Since I installed my new d6300 netgear my downloads on Apple TV have taken a lot longer than previously using a billion router.  Do I need to do something with the net gear set up?

    Since I installed my new d6300 netgear my downloads on Apple TV have taken a lot longer than previously using a billion router.  Do I need to do something with the net gear set up?

    Just connect the new iPod to your computer and setup the iPod via iTunes (instead of via wifi).
    If you want to copy all the infor from an old iPod touch to the inew iPod see:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Noobie question: How do I add something to the display list from a non-main class?

    I know how to use addChild() within the main class to add
    something to the stage display list and have it appear on the
    screen, but how do I add something to the stage display list from
    code within another class?
    So for example say I want to add some text (myTextField) to
    the stage's display list from within NotTheMainClass' code, could
    you give an example of the necessary code?

    you must pass a reference to a display list object or create
    one that's available to your class.
    there are so many ways to do this i'm not sure how you want
    to proceed. but you can create a globally available reference to
    the stage and root timeline:

  • I've upgraded to 13.I can't see fonts in search bar & tabs.Please help.If u need screenshots,please share me the site of image sharing.Thanks!

    I've upgraded to 13.I can't see fonts in search bar & tabs.Please help.If u need screenshots,please share me the site of image sharing.Thanks!
    [http://www.flickr.com/photos/80001361@N06/7346073414/in/photostream http://www.flickr.com/photos/80001361@N06/7346073414/in/photostream]

    Looks like a font problem.<br />
    Firefox seems to be using a font that isn't working properly.
    Try this solution: [[/questions/927322#answer-336404]]

  • My audio for Youtube is not functioning. I have checked my speakers and they test OK. Do I need to add something?

    This seems only to apply to Youtube. Has something possibly crashed or do I need to add a new version of something? Thanks

    Try to clear the Flash local storage and settings.
    *Windows Control Panel > Flash Player > Storage: Local Storage Settings
    **Remove a specific domain: Local Storage Settings by site
    **Remove all domains: Delete All and Delete Data
    Flash Website Storage Settings panel:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
    Global Storage Settings Panel:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html

  • HELP!  I need to add sales tax

    I created the following form:
    https://adobeformscentral.com/?f=IZQ74oNt78cRqRpdEYGlSA#
    I am using Paypal for checkout.  I have sales tax set in PayPal but this form does not add it in at check out. How do I add this to the form? 

    Sorry, we do not support Sales Tax. The API we use to integrate with PayPal doesn't use the sales tax configured in the PayPal account.

  • Mail from RVADOR01 need to add body of the mail

    Hi Experts,
    How to add mail body for the below case?please look
    I am using output tupe Zmail attached to Program ZRVADOR01 and script form ZRVORDER01.
    The Program ZRVADOR01 and the script ZRVORDER01are copied from standard prog RVADOR01  and standard script RVORDER01.
    And this output type is attached to VA02.
    In the Zprogram i could able to give mail subject in OPEN_FORM function module in OPTIONS parameter.
    And i am sending to the exterid which is outlook.
    For giving the email id i have added some code from the note .357137 before calling the OPEN_FORM function module in the program..
    mail is coming with subject line and attachment of script document .
    But the only thing needed is , add body text for the mail.
    How can i do this?
    Regards
    Ramakrishna

    Hi Rama, I am trying to do the same and noticed that your comments/question appears as "ANSWERED" at the top of the thread.
    Were you able to accomplish this?
    Jacob

  • Help! Quiz - need to count score at the end

    I have a working quiz but I want to know how to get the score of the number of correct answers the person got but I can't seem to figure out the code for it. This is my code below. Can someone help me?
    stop();// movie clip waits on buttons
    gloss_mc._visible = false;// set the gloss initially to not visible
    score_int = 0;// score on the quiz is initially zero
    // button functions
    q1_btn.onRelease = function() {
        scoreQuiz_fnc("1");
    q2_btn.onRelease = function() {
        scoreQuiz_fnc("2");
    q3_btn.onRelease = function() {
        scoreQuiz_fnc("3");
    q4_btn.onRelease = function() {
        scoreQuiz_fnc("4");
    function scoreQuiz_fnc(ansSelected) {
        trace("scoreQuiz_fnc ("+ansSelected+")");
    // define answer key
    answerkey_arr = new Array();
    answerkey_arr[1] = '2';// the answer to the question on frame 1
    answerkey_arr[2] = '4';// the answer to the question on frame 2
    answerkey_arr[3] = '3';// ... etc.
    answerkey_arr[4] = '4';
    answerkey_arr[5] = '3';
    answerkey_arr[6] = '1';
    answerkey_arr[7] = '3';
    answerkey_arr[8] = '4';
    answerkey_arr[9] = '1';
    answerkey_arr[10] = '2';
    glosskey_arr = new Array();// create array of gloss responses
    glosskey_arr[1] = 'The correct answer is: Congenital heart defect.';
    glosskey_arr[2] = 'The correct answer is: Four areas of the heart are defected because "tetra" means four. ';
    glosskey_arr[3] = 'The correct answer is: Two left valves because there is only a right and left valve.';
    glosskey_arr[4] = 'The correct answer is: Ventricular Septal Defect because this is when there is a hole (septum) between the right and left ventricles..';
    glosskey_arr[5] = 'The correct answer is: Babies because this condition congenital meaning at birth.';
    glosskey_arr[6] = 'The correct answer is: There is not enough oxygen carried within the blood which causes a discolouration in infants.';
    glosskey_arr[7] = 'The correct answer is: Heart murmur because this condition occurs at the heart.';
    glosskey_arr[8] = 'The correct answer is: After crying, during bowel movements or the occurrence of kicking legs in awakening.';
    glosskey_arr[9] = 'The correct answer is: Shunt because you cannot place the other objects in a heart.';
    glosskey_arr[10] = 'The correct answer is: Heart.';
    function nextQuestion_fnc() {
        gloss_mc._visible = false;// hide the gloss
        nextFrame();// advance timeline to the next question
    // score the answer selected by user
    function scoreQuiz_fnc(ansSelected) {
        trace("For question "+_currentframe);
        trace("scoreQuiz_fnc("+ansSelected+")");
        //if the answer key for this question matches the answer selected
        if (gloss_mc._visible == false) {
            if (answerkey_arr[_currentframe] == ansSelected) {
                trace("Correct");
                score_int = score_int+1;//add one to the score count
                nextFrame();// go to next frame
            } else {
                trace("Incorrect!");
                // show the gloss
                gloss_mc._visible = true;
                gloss_mc.gloss_txt.text = glosskey_arr[_currentframe];// insert gloss from the array
                // end if statement
                trace("Score is now "+score_int);
    }// end of function

    Try this
    Name the dynamic text box in var not at Instance name
    You will find it in properties panel .By selecting the dynamic text field you will have some properties like var,single line ....ect
    or
    Try this one
    this is your code : score_txt.text = score_int;
    try this :score_txt = score_txt+1;
    where  score_txt is the instance name or the var name you are assigning to the dynamic text field where you will display the score.
    Note: Change all of the dynamic text field name "score_int" in the script in to score_txt ,Because you have changed the dynamic text field to score_txt at the beginig of the script also you have score_int = 0.change heare also.
    If your problem is solved mark this as Answered

  • I need to add tab in the existing B1 scree

    Hai,
      I need to add two more additional tab in the production order screen. Please let me know how can i do this.
    regards
    Suresh S

    Hai,
    Thanks for you reply. I have gone through the example what you have suggested. Please let me know how i can add the item for production order.
    eg,
       For Sales Order it has been mentioned as  126. How can i identiy these 126
            '// use an existing item to place youe item on the form
            oItem = oOrderForm.Items.Item("126")
    For Sales Order it has been mentioned as 44. How can i identiy these 44
    '// use an existing item to place youe item on the form
            oItem = oOrderForm.Items.Item("44")
    And Form type :
    FormType = 139
    how following numbers can be identified for Production Order Form

  • Need to add $ symbol in the amount column

    Hi All,
    i need to add a $ symbol in one of the value column in my SSRS Report.(SSRS 2008 R2).
    But , the problem is $ should be Left Aligned and Value should be
    right aligned.  If the value is zero then also $ has to display as most left aligned as below "$                0".
    Can any one suggest me to get it done.
    Thanks n advance.
    bala krishna

    Hi balakrishna141,
    Based on your description, you want to add a “$” together with the Amount in one textbox, The”$” align to the most left of the textbox and the Amount align to the most right of the textbox, right?
    I have tested on my local environment and find there is some limitation of using the HTML and as you mentioned that the solution provided by Visakh16 have some little problem, so ,we can use another method by creating an rectangle(The rectangle should be
    the same size as the cell of the table) and put two textboxes (TextBox1 to put the value of “$”,TextBox2 to put the value of Amount) in it and replace the [Amount] TextBox with this rectangle, then set the properties of both TextBox(TextBox1:TextAlign=Left,
    TextBox2:TextAlign=right)
    Details steps below for your reference:
    Create an rectangle and place 2 textboxes inside a rectangle
    In the first text, put the $ and right align it
    In the second textbox, put the value of amount and left align it
    Make sure that the width of the first textbox1 is less as it just has to accommodate the $ symbol and give more width for the second textbox2 of amount
    Similar thread are for your reference:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/66d91599-d186-46f2-be03-5278612e6c91/right-align-dollar-sign-with-left-justified-number-in-ssrs-2005-matrix-report-column-?forum=sqlreportingservices
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • HELP PLEASE! Need to add music to my new ipod from my husbands ipod

    OK, I have a question....I am new to itunes...we just bought a used ipod and it has music on it that I would like to share and add to my other ipod...can somebody tell me how to take the music from one ipod and add it to another ipod?

    Hi,
        Why dont you try this http://www.askstudent.com/general/how-to-extract-songs-off-your-ipod-using-itune s/
       As i dont want to repeat the whole thing, i am refering to you.
       Hope you can get thru your problem
    Best Wishes

  • Need to add tables in the pricing report(V/LB)

    Hi
    I want to add some table in the existing pricing report.But I am unable to do so.
    My requirement was to add some new selection field in the Pricing report which is possible by adding the table in the existing pricing report.
    But I found If I go to EDIT>Tables.there is one option is called  "add table" which is appearing grey.
    Can you found it the way to add the tables in the Pricing report.

    Hi Sumit,
    You cannot add anything to existing report - you need to create new one and there you will be able to choose more tables than you use now.
    Regards,
    Marcin

  • Need to add field in the standard screen

    Hi
    As per my requirementn  we have to add one field in the Material master(MM01/MM02). Mentioned path below.
    MM01/MM02)-->  MRP1 tab --> in the MRP areas > click on MRP AREAS button>Pop will come with MRP AREA --> double cleck on entry > MRP area screen will appear> In general data tab> MRP group field is availble> Beside that i have to add one field.
    Program Name--> SAPLMD_MGD1
    Screen --> 0030
    As it is separate pop kind screen not sure whether we can add or not. Please let me know if there is any chance to add the field with procedure.
    Regards
    Raj.

    hi
    For this you have to find the screen EXITS.
    GOTO MM01->click on SYSTEM->then STATUS mow click on the program and find our the package name.
    NOW GOTO -> se84 ->click on ENHANCEMENT-> give the package name here and EXECUTE you find all the EXITs.
    hope this helps
    Regards
    Ritesh

Maybe you are looking for

  • One iTunes, two computers, two iPods help?

    I have one iTunes account shared between two computers. An iPod touch is on each computer. How can I separate the account but yet have the same one? I hope that this makes sense to everyone wanting to answer. I also found that if I purchase a song on

  • 2nd gen shuffle problems

    2nd gen ipod shuffle, will not connect to imac.  Reviewed manual, have current version of itunes, everything is ok with usb, dock etc.  orange light blinks when plugged into imac.  Green light steady when plugged into outlet, block. ???

  • System Preferences settings reset on reboot.

    I have a Mac Pro that keeps loosing is System Preferences. I change the mouse settings and as soon as the machine is rebooted, settings go back to default. I've seen other posts similar to this but no one has had a solution.

  • Need user exit or BADI name

    Hi   I have the below requirement. In the transaction Me51n, in the item data->valuation tab when the valuation price is greater than 5000.then it should display an error message 'user should not enter mothan price Rs 5000'. Please provide me the use

  • Half day processing of Leave raised from ESS

    Hi , We have the a problem in leave request  from ESS EP7 (ERP2005) How to allow half a day processing of leave request? even if i enter 4 hours in the duration field the system takes 8 hours but when i do the same from PA30 it is ok. kindly give you