How can I add the string to JList

I have one string " teletoppy" and I have Jlist which have 5 items in it.
After I press submit I want teletoppy added to the list.
How can I write the command?
because I try by using command_list.add("teletoppy", comp);
I don't know what component is?how can I add it in?.

Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists for a working example of how to do this. The "Hire" button adds the text from the text field to the JList.

Similar Messages

  • How can I add the "Profile Removal Password Payload"  to a configuration Profile?

    How can I add the “Profile Removal Password Payload”  to a configuration Profile?
    I’m not seeing an option to add this option when I edit the configuration profile within Apple Configurator.
    Do I have to edit the configuration profile(xml file) within a text editor?
    FYI:
    https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProf ileRef/Introduction/Introduction.html
    Profile Removal Password Payload
    The Removal Password payload is designated by specifying com.apple.profileRemovalPassword value as the PayloadType value.
    A password removal policy payload provides a password to allow users to remove a locked configuration profile from the device. If this payload is present and has a password value set, the device asks for the password when the user taps a profile's Remove button. This payload is encrypted with the rest of the profile.
    Key
    Type
    Value
    RemovalPassword
    String
    Optional. Specifies the removal password for the profile.

    You have found where it is stored in Thunderbird?
    Delete it. When Thunderbird needs it again, it will ask you for it.

  • How can i add the check box beside the directory?

    how can i add the check box beside the directory? anybody can help?
    tis r the panel of my program :
    // FileTreePanel.java
    // JPanel for displaying file system contents in a JTree
    // using a custom TreeModel.
    package com.deitel.advjhtp1.mvc.tree.filesystem;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import com.deitel.advjhtp1.mvc.tree.filesystem.FileSystemModel;
    public class FileTreePanel extends JPanel {
    private JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea fileDetailsTextArea;
    public FileTreePanel( String directory )
    fileDetailsTextArea = new JTextArea();
    fileDetailsTextArea.setEditable( false );
    fileSystemModel = new FileSystemModel(
    new File( directory ) );
    fileTree = new JTree( fileSystemModel );
    fileTree.setEditable( true );
    fileTree.addTreeSelectionListener(
    new TreeSelectionListener() {
    public void valueChanged(
    TreeSelectionEvent event )
    File file = ( File )
    fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(
    getFileDetails( file ) );
    JSplitPane splitPane = new JSplitPane(
    JSplitPane.HORIZONTAL_SPLIT, true,
    new JScrollPane( fileTree ),
    new JScrollPane( fileDetailsTextArea ) );
    setLayout( new BorderLayout() );
    add( splitPane, BorderLayout.NORTH );
    JCheckBox check = new JCheckBox("Check me");
    add( check, BorderLayout.SOUTH );
    public Dimension getPreferredSize()
    return new Dimension( 400, 200 );
    private String getFileDetails( File file )
    if ( file == null )
    return "";
    StringBuffer buffer = new StringBuffer();
    buffer.append( "Name: " + file.getName() + "\n" );
    buffer.append( "Path: " + file.getPath() + "\n" );
    buffer.append( "Size: " + file.length() + "\n" );
    return buffer.toString();
    public static void main( String args[] )
    if ( args.length != 1 )
    System.err.println(
    "Usage: java FileTreeFrame <path>" );
    else {
    JFrame frame = new JFrame( "JTree FileSystem Viewer" );
    FileTreePanel treePanel = new FileTreePanel( args[ 0 ] );
    frame.getContentPane().add( treePanel );
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    frame.pack();
    frame.setVisible( true );
    }

    You can maybe explore button and forms feature in InDesign. It was added in CS6.

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

  • OBN: How can we add the tcode of target system into Source System.?

    Dear Experts,
    I want to add a t-code ME53n of ERP) into a role as OBN target in my SAP TM.
    I tried to add this t-code but could not find this t-code in SAP TM system.
    How can we add the tcode of target system into Source System.?
    I tries to import the role of target system but that does not work.
    Please help!
    Regards,
    Saurabh

    Hi Saurabh,
    Logically there is no need to add a tcode of the target system in the source system.
    If you have right roles in the system then system should allow you to add tcode in the OBN target simply by going to PFCG roles and using add transaction feature.
    To make sure it works properly you have to check the Method & Parameter assignment to the newly added tcode.
    Thanks & Regards,
    Tarun Kumar

  • How can I add the number of columns/row starting with the build in "Text Report" example in the LabVIEW

    Hi All,
    I am wondering how can I add the numbers of row and column from the existing build-in "text report"
    VI ? If possible, would you mind showing me step-by-step because I am a new user and I am not familiar with the labview software.
    Thanks

    Hi,
    Easy text Report is for saving to a file. Do you mean you just want to add the totals of two arrays and write that? In that case I would just append the totals before writing to file.
    Jeff | LabVIEW Software Engineer

  • How can I add the controller name in the subject of Alarm emails? PI2.1

    How can I add the controller name in the Alarm emails in PI2.1?  This would make it much easier to scan the mailbox and see what devices are affected.

    Thanx for your reply. No, although helpful, that's not what I meant. In outlook, the first line of the header contains the full username follow by a horizontal line. Under that, the default headers like To:, From:, Subject: etc follow.
    I need that firstline printed so we know instantly from which user the email was printed (the To: field often is the same name of the sender of the mail, therefor you won't know WHO printed it...).

  • How can I add the new AP license to HA 5508 WLC?

    Hi,
    My customer has two 5508 WLC in HA mode and these devices have 250 AP license. Customer bought 50 AP and 50 AP license. But I could not add the license to WLC! When I check the Management>Software Activation> tab there are only two options under the tab these are "Licenses" "License Usage". There is no "Command" option in there. Also I tried add on CLI but this error log appeared " !!!! Blocked: Changing License configurations on Secondary unit is blocked !!!! " 
    I think this is possible when disable the HA but is there anybody know this how can I add the new 50 AP license to HA WLC without disable the HA?
    Thanks,
    Burhan

    Hi,
    Thank you for your reply. 
    Yes I know the controllers synchronize with the enabled license and the 250 AP license bundled with two device there is no problem.
    I want to add new 50 AP license in addition 250 AP license. Because customer has 300 AP's.
    As I said, When I check the Management>Software Activation> tab there are only two options under the tab these are "Licenses" "License Usage". There is no "Command" option in there.
    Thanks,

  • How can I add the audio content cd after logic finished installing ?

    There was an eror installing the Audio Content CD 1 and I did not notice. Everything else installed properly, Audio Content CD 2, Jam Pack, but how can I add the Audio Content CD1 after Logic has finished installing?
    If you can help me please be very specific as to how to do it so that I can follow the directions properly.
    Please help me.
    Thanks

    Hi
    You could re-run the installer, or, once you have updated to Logic 9.1.8 you could use the "Download Additional Content" function in the Logic Pro menu. It will tell you what is installed and what is incomplete.
    CCT

  • How can I add the attachment list pdf file context to purchase order ?

    Dear all,
           I have use services for object in ME22N to attach PDF file to purchase order,I want to know how can I add the pdf file context to purchase order when I send the purchase order to vendor.
    Thanks in advance
    Best regards,
    Merry

    hi,
    attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) .
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • How can i add the dimensions and data loading into planning apllications?

    Now please let me know how can i add the dimensions and data loading into planning apllication without manuallly?

    you can use tools like ODI or DIM or HAL to load metadata & data into planning applications.
    The data load can be done at the Essbase end using rules file. But metadata changes should flow from planning to essbase through any of above mentioned tools and also there are many other way to achieve the same.
    - Krish

  • How can I add the progress loading box when I load a module?

    Hi everyone, how can I add the progress loading box when I
    load a
    module? Is it an automated thing with flex or must I code it?
    Thanks.
    :)

    try using javascript onclick attribute:
    onclick="document.form.name.disabled=false"
    m

  • How can I add the key listener to JFrame

    Hi,
    How can I add the Key Listener to the JFrame? I want to show the Windows default popup which comes after right clicking on the frame's header. I want to add the key board support for the same

    1. Make sure that key events are enabled on your component. (AWTMulticaster.enableEvents(...)
    2. add the keylistener

  • How can I add the date at the top of the screen along with the day and time display?

    Hello,
    How can I add the date at the top of the screen along with the day and time display?
    Thanks so much!

    Open System Preferences>Date & Time:
    Ciao.

  • How can I add the presets to new catalog or sync info to both catalogs?

    I have lightroom on my main laptop was advised to create a new catalog on my external (my laptop is almost out of space). I just upload some presets to lightroom,--when I use my Lightroom catalog on my external the presets are not loaded at all. How can I add the presets or sync both catalogs. Thank you

    Listener can be added to a cell editor, not cell renderer.
    Set relevent cess(s) to setEditable == true when you use your custom cell editor.

Maybe you are looking for