Change name of objects in JList ??

Hi there,
I'm building an adressbook. If I make some adress-objects and load them into a JList, I can see them fine and acces them, but they're called things like "adress@32897".
Is there a way to change the name of these objects? (that is not the name as such, but the name under which they appear in the JList).
Kind Regards
Thomas

I'm guessing the default renderer in a JList works (in most cases) by calling toString(), and rendereing the resulting text.
Override that method to return what you expect.

Similar Messages

  • Do you know how to change the Text Object for Billing Document?

    Hi,
    If you execute Transaction VOTX or VOTXn it will take you to Text Determination. The Billing Doc & Sales Document both has the VBBK as Text Object for me and is it like that for all.
    I need to change the Text Object to VBRK for Billing Doc, which is the ideal because I am using the Function Module READ_TEXT to retrieve text. This work perfectly for Sales Document which has VBBK as Text Object, but does not work for Billing Doc where it through as error message saying “Text 0020000021 ID 0002 language EN not found”.
    Thank You
    Kishan

    Hi kishan,
    For updating these text you can use FM 'SAVE_TEXT'.
    As for your problem, to get the parameter you need, go to the billing document, go to the text, and display it in plain page mode.
    Then you do 'GO TO' -> 'HEADER', and a pop-up window open with the parameters you need Obect type, ID, Name, ...
    Regards,
    Erwan.

  • Re-name package objects

    Hi
    Is there some way to re-name entity objects, view objects and their packages after creating them?
    I think one option can be to rename the various folders on my PC where I am storing all the source code, but I am not sure whether this is the way to do it.
    Any pointers will be appreciated.
    Thanks
    Ajay K. Garg

    You have to create the package (Directory) structure manually in the file system, then move all the renamed EO/VO/AM (and all realted files) to appropriate directories.
    After you do this, you need to open each file in some text editor (esp for XML files) and change the package structure there.
    Thanks,
    Tapash

  • Change name of function..?

    I have 2 codes on 2 different keyframes i have just copy/pasted. I have changed all the name of functions and variables, I just need one function I don't know how to change name of.
    code on key frame 1:
    var timedelay2:Number = 10;  // seconds delay in replay
    var video2;
    var nc2:NetConnection;
    var ns2:NetStream;
    nc2 = new NetConnection();
    nc2.connect(null);
    ns2 = new NetStream(nc2);
    ns2.client = this;
    ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF,timedelay*1000);
    function replayF2(){
    ns2.play("film/film1.f4v");
    var durationNum2:Number;
    function onMetaData(iObj:Object):void {
        durationNum2 = iObj.duration;
    video2 = new Video(287,263);
    video2.x = 231.1;
    video2.y = 140.5;
    addChild(video2);
    video2.attachNetStream(ns2);
    ns2.play("film/film1.f4v");
    code on key frame 2:
    var moviesA:Array =["film/film1.f4v", "film/film2.f4v"];
    var movie:String = moviesA[Math.floor(Math.random()*moviesA.length)];
    var timedelay:Number = 5;  // seconds delay in replay
    var video;
    var nc:NetConnection;
    var ns:NetStream;
    nc = new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.client = this;
    ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
    function netStatusf(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF,timedelay*1000);
    function replayF(){
    ns.play(movie);
    var durationNum:Number;
    function onMetaData(iObj:Object):void {
        durationNum = iObj.duration;
    video = new Video(287,263);
    video.x = 231.1;
    video.y = 140.5;
    addChild(video);
    video.attachNetStream(ns);
    ns.play(movie);
    problem is this function, I don't really know how to give one of the function another name so they don't interfere with each other...?
    function onMetaData(iObj:Object):void {
        durationNum2 = iObj.duration;
    anyone that can help..?

    hey again
    i'm now just using
    var durationNum:Number;
    function onMetaData(iObj:Object):void {
        durationNum = iObj.duration;
    on frame 1. But it seems i've lost the randomness on frame 2. it only plays "film/film1.f4v" all the time even though i put multiply times "film/film2.f4v". Is this true, or is it just me who have been very unlucky..?
    my frame 1 looks like this at the moment:
    var timedelay:Number = 10;
    var video;
    var nc:NetConnection;
    var ns:NetStream;
    nc = new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.client = this;
    ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
    function netStatusf(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF,timedelay*1000);
    function replayF(){
    ns.play("film/film1.f4v");
    var durationNum:Number;
    function onMetaData(iObj:Object):void {
        durationNum = iObj.duration;
    video = new Video(287,263);
    video.x = 231.1;
    video.y = 140.5;
    addChild(video);
    video.attachNetStream(ns);
    ns.play("film/film1.f4v");
    stage.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void{
        if (event.target.name!=null){
            switch(event.target.name) {
                case "work1_btn":
                gotoAndStop("work1");
                removeChild(video);
    break;
                case "contact_btn":
                gotoAndStop("contact");
                removeChild(video);
    break;
                case "frontpage2_btn":
                gotoAndStop("frontpage2");
                removeChild(video);
    break;
    And my frame 2 looks like this:
    var moviesA2:Array =["film/film1.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v"];
    var movie2:String = moviesA2[Math.floor(Math.random()*moviesA2.length)];
    var timedelay2:Number = 0;  // seconds delay in replay
    var video2;
    var nc2:NetConnection;
    var ns2:NetStream;
    nc2 = new NetConnection();
    nc2.connect(null);
    ns2 = new NetStream(nc2);
    ns2.client = this;
    ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF2,timedelay*1000);
    function replayF2(){
    ns2.play(movie2);
    video2 = new Video(287,263);
    video2.x = 231.1;
    video2.y = 140.5;
    addChild(video2);
    video2.attachNetStream(ns);
    ns2.play(movie2);
    stage.addEventListener(MouseEvent.CLICK, clickHandler2);
    function clickHandler2(event:MouseEvent):void{
        if (event.target.name!=null){
            switch(event.target.name) {
    case "frontpage2_btn2":
                gotoAndStop("frontpage2");
                removeChild(video2);

  • How to change name of software component version in IR and ID?

    Hi All,
    I have a scenario in which 50 interfaces are there.All interfaces are working fine and we are in Testing stage.
    I need to change name of Software component which I have used in IR.
    I tried with release transport. I am able to pass all my mapping programs and everything under new software component name. But in ID all configuration objects contain IR objects (Like interface mapping) with old software component name.
    Do I need to change everything in ID manually or is there any other way for this?
    Thanks in advance.
    Warm Regards,
    Gouri

    Gouri,
    If you check this blog , you are able to transfer data even without IR content, i.e, there is no message interface , no namespace in IR and stil this works. Reason, there is no validation if the message interafce exists in the IR. In the runtime the SOAP Header is filled with the interfacename and namespace and it uses these values.
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Likewise, irrespective of which SWCV the interface name and namespace is, things will work fine as long as they exists in the IR in your case.
    The SWCV is a means to group objects, it might be displayed while doing the manual configuration but it doesnt matter even if you just key in the values without using the help.
    Things will work fine.
    Regards
    Bhavesh

  • How to get text name text object and text id for long text

    Hi,
    I am trying to fetch Long text for a given order number from transaction CO04 in SAPScript. I know that I have to use Include X (OBJECT) XX ID XXX.
    How do I get the text name, text object and text id for the order header long text from Transaction CO04.
    Points will be awarded..
    Tushar

    Tushar,
    When you are in CO02, and are at the Long Text Tab,click on the Icon that is next to the Order Number at the top of the screen (this icon looks like a Pencil and a Pad of Paper and is called "Change Long Text"). When you click on this it will take you to the SAPscript Editor. Now hit Goto->Header and you will get the data you require.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly award Reward Points as appropriate.

  • How to pick the changed name.

    Hi all,
            can anyone help me out ...how to pick the changed name form the table ... if a name changed 
            three times in month, how should I get it in report.???
            I have gone through the tables BUT000 & BUT020 but I haven't got thr trick.
            can you please help me.
    Thanks & Regards,
    Rajeev

    Hi
    You can refer to CDHDR, CDPOS tables as When you change the Object change document get created
    You can put BP number in Object ID
    You can view this change documents in FPP3
    Extras-> Change History
    Regards,
    Prajakta
    Edited by: Prajakta Shringarpure on May 18, 2009 12:55 PM

  • Script-change from local object to package

    Hi Experts,
       I have created a script.My problem is i have saved the script in local  object,but i want in  package.
                How to change from local object to a package? Pls advice me on this issue.
    With Regards,
    Sharmila.S

    Hi,
    Go to SE03.
    Go to Object Directory-->Change Object Directory Entries
    Put the object type as FORM and press enter.
    Then enter the sap script name in the object name.
    Run and then change the package.
    Regards,
    Ankur Parab

  • How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts if changes on all computers.

    How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts it changes on all computers.  I would like to change icon and name for each computer.

    you would need to setup a VPN and tunnel into your office.
    FYI..the default ports are 3283 and 5900.

  • Error while changing the Resource Object Status

    Hi,
    I am trying to change the resource object status from Waiting to Provisioned for a self service task. Before approval I see the Resource Object Status as " Ticket Sent To REMEDY" on the administrator's web console and at the Requestor's web console I get the following error message-
    ???en_US.global.viewProfileForm.Lookup.Ticket-Sent-to-REMEDY???
    But after approval, based on the completion the task, the process on both the consoles is set to provisioned. That is what I want to display but the problem comes when the requestors sees the error status message on its console before approval.
    Can any body tell me the reason of the above error and how to resolve it?
    Thanks in advance

    do you have any custom written event handlers getting triggered off after request submission or during approval?
    It might also be due to either a browser issue or you might have missed any entry in the xladmin properties file for a custom label/error message etc.

  • Data not updated in business entity after change in architectural object

    Hi,
    A business entity was created from Architectural Object.
    When we modify the address in the architectural object, the data is not updated in the business entity.
    Is there any solution that make an automatic update for the address in business entity after a change in architectural object ?
    Thx for your help.
    Regards
    Saad

    Hi,
    I have created new infopackage and ran. Now the following message I have got on the monitor.
    "Data not received in PSA Table
    Diagnosis
    Data has not been updated in PSA Table . The request is probably still running or there was a short dump.
    Procedure
    In the short dump overview in BW, look for the short dump that belongs to your data request. Make sure the correct date and time are specified in the selection screen.
    You can use the wizard to get to the short dump list, or follow the menu path "Environment -> Short dump -> In Data Warehouse".
    Removing errors
    Follow the instructions in the short dump."
    Any more thoughts?
    Thanks,
    Rao.

  • System setting does not allow changes to be object CLAS /1SEM/CL_FACTORY_30

    hi,
    Recently we upgraded our BW system from BW 3.0B to BW 3.5.In BW 3.5,we created a planning area to which we
    assigned a transactional cube.Now when we are going for creating variables or planning levels for the planning area it
    gives the following error:
    System setting does not allow changes to be object CLAS /1SEM/CL_FACTORY_300ZPLAN
    Our support packages are as following:
    SAP_BASIS       640                   0009
    SAP_ABA         640                   0009
    ST-PI           2005_1_640            0000
    PI_BASIS        2004_1_640            0006
    SAP_BW          350                   0009
    BI_CONT         353                   0000
    Could you please suggest or help us in resolving the issue ?
    thanks and regards,
    Yogesh

    Hello,
    the above mentioned note is too old. Please check note 781371.
    Please also check in transaction SM30 view V_TRNSPACE
    the record for /1SEM/:
    Namespace:     /1SEM/
    Namespace role C
    Repair License
    SSCR Popup     X
    SAP Standard   X
    Gen Objs Only  X
    Regards,
    Gregor

  • Converting Video to iPod, can you change name of file

    When you convert Video to iPod format, can you change name of the new file or put some "marker" so one can tell which is the orginal and which is the new file?
    Currently it is difficult to tell between the orignal and the new file.
    thanks in advance
    Rohit

    You'd probably be better off doing this sort of editing in iTunes, and letting it move the files appropriately.
    Go to the preferences, Advanced tab, and check the box to 'Keep iTune Music folder organized'. Then any changes you make to song names or other info (within iTunes) will automatically be applied.

  • Using variable names for object names

    Is there any way you can use a String variable to name an object? I.e., something like:
    String name = "objectName";
    \\ create an Image object named objectName
    Image (name.valueOf()) = new Image();
    This code obviously does not work, but I'm working on a map applet which uses a map composed of thousands of tiles, and then shows only a portion of the map by drawing the appropriate tiles into the window using the x/y coordinates and a nested for loop to determine which tiles to draw. However, unless I want to manually declare and then call each of these Image objects, I need to have a way to have the actual name of each image object be a reference to a variable, which I will then initalize according to the name of the tile I'm using. Does that make sense at all? Anyway, I was just wondering if anyone knows of any way to do this. Thanks.
    -Ari

    Typically this is done using a Collection, for example:
    Image[] img = new Image[100];
    for (int i=0; i<img.length;i++)
      img[i] = new Image();... Sort of thing.

  • RE: 1) Changing name and IP address of an AIX 4.2 Server 2)Using NAT

    Daniel,
    you (normaly) just have to :
    1) edit the $FORTE_ROOT/fortedef.sh fileand change the value of variable
    FORTE_NS_ADDRESS
    2) shutdown and restart forte environment
    3) put the new values in the control panel of the client and run !
    It worked on our site with the same configuration (Aix 4.2)
    Good luck
    De : Daniel[SMTP:[email protected]]
    R&eacute;pondre &agrave; : Daniel
    Date : vendredi 18 juin 1999 13:08
    A : [email protected]
    Cc : Jose Ignacio
    Objet : 1) Changing name and IP address of an AIX 4.2 Server 2)
    Using NAT to reach forte
    Hello Forte Users :
        I have 2 questions to make:
        1)
        I've installed a Forte Server Central Node (Release 3.0.F.2) in an
    IBM RS/6000  with OS AIX 4.2
        (The name of the server is Name_1 and the IP address is
    125.125.50.50 with mask 255.255.255.0)
        Nowadays we had to change the name and IP address of this server
    lets say to Name_2 and 125.125.60.60 with mask 255.255.255.0.
        After that we try to find any reference to old name and IP address
    in the forte directory and all of its subdirectories changing them to
    the new ones.
        After these changes we found than forte could'nt start the nodemgr
    server.
        We have too many reasons to avoid installing FORTE again.
        Does anybody know if I have to change anything more to make
    nodemgr server work.
        2)
        The second question is about NAT (Network Address Translation).
        To reach a Forte Server Central Node from a Forte Client we have
    to pass through a Firewall and NAT.
        We are researching and at this moment we can not reach the server
    from the client, has anybody any suggestion to correctly configure
    Forte (Client and Server) to use NAT between them.
        If anyone could help me I would be very pleased.
        Thank you very much in advance,
        Daniel Gonz&aacute;Lucas (EAM Sistemas Inform&aacute;ticos SL, Spain,
    e-mail: [email protected])
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    >> 15 Mins is not enough for completely the replication.
    >> use repadmin /syncall /aEpd   - for force replication.
    >> Wait 3 hrs minimum.
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
      LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

Maybe you are looking for

  • Can't get router to connect to internet - printer

    This is not strictly an airport extreme question but I've got a major problem with my mac intranet set-up and hopefully someone can assist: Until 6pm here in Belgium today my Cable internet system was working fine (the past 2 years!). Suddenly no int

  • Question about smart playlists

    hello all: i was wondering if someone can help me out with something. i really, REALLY need my iPhone to start behaving the way an mp3 player i had almost 5 years ago worked. what i am looking to do is to have a playlist that has a bunch of my music,

  • Rent Photoshop CS5.5?Well, this is intersting:

    Rent Photoshop CS5.5

  • 10.10.1 display dead

    Hi, I've just upgraded my newish (4 months old) MacPro (can't get speck right now as its restoring from time machine) with thunderbolt cinema display to 10.10.1 in order to solve the wifi problem the previous version had and my display output is ...

  • Remote on apple earphones doesn't work with iPod Touch 4G :(

    Hi I have two in-ear earphones, the Apple one and the V-Moda RRMT, the one with the remote similar to Apple's. I've heard volume control works with iPhone 3GS, and have tried both earphones in iPad and they both work. Recently I bought an iPod Touch