Reuse symbols between different files

Dear friends,
I'm designing a big web site with too many different pages
(about 150). It's no possible to add all pages in only one
Fireworks file, because de performance is too slow when I open or
save the file. So, I can't use de document library to reuse some
elements (headers, footers, etc.).
I would try to use de Common Library, but it's not the
solution: if I do any change on a symbol, the instances in the
different files doesn't changes.
There are any way to do something like I want to do (common
elements between some files).
Regards.

Thanks, mebadger. It's not exactly what I mean, but your
message give me a clue. There are a way to do exactly what I want
For example, suppose that we need to have our navigation menu
separated. Make a different file with the menu, select all items
and convert to symbol in de Document Library (it's no necessary
save to Common Library). Select the symbol in the panel, and then
from the options menu select 'Export...'. This option save a PNG
file with the menu symbol.
Now, create a new document, select 'Import...' from the
Document Library options menu and choose the file that you create
from Export option. The symbol appears in the panel and you can put
in the layout.
Now, open the PNG file with the menu, change anything in the
symbol and save the file.
Go back to the other file, and on Document Library options
menu select Update and... here you are!!! :)
I hope you can undestand the explanation. Sorry for my
english :oops:

Similar Messages

  • Maintaing symbols between different computers

    I am currently using CS3, on Windows XP-SP3.
    I work with ESRI ArcGIS mapping software and export my documents to .ai format to work on the graphic design in illustrator. The symbols work fine between the two programs since I have the symbol/font set installed. They also work when I save as a pdf.
    I can, while exporting from ArcGIS to .ai, vectorize the symbols. But this removes the ability to resize the symbols proportionally, while keeping their proper location (I am making maps).
    The problem I have is transferring an .ai file from my computer to another computer, which doesn't have the same symbols.
    -Is there a way to package the symbol/font to my .ai file?
    -Should I just send them the symbol/font to install?
    I would like to stay with vector format.
    Thanks!!

    > I work with ESRI ArcGIS mapping software and export my documents to .ai format to work on the graphic design in illustrator. The symbols work fine between the two programs since I have the symbol/font set installed. They also work when I save as a pdf.
    So you want to work the drawing in AI, correct? And you have no difficulty getting it from your other program into AI with the "symbols" intact, because the "symbols" are glyphs in a clipart font?
    > I can, while exporting from ArcGIS to .ai, vectorize the symbols.
    Assuming PS Type 1, TrueType, or OpenType fonts, the glyphs are already vector. So you don't "vectorize" fonts. I assume you are talking aobut converting text to paths.
    > But this removes the ability to resize the symbols proportionally, while keeping their proper location (I am making maps).
    Again, assuming you are working in AI, you
    can resize the symbols proportionally while keeping their current locations. That's what the Transform Each command is for.
    JET

  • Can't compute difference between symbols in different segments.

    I have just compiled PostgreSQL with Sun Studio 9 (version #8 used to work nicely).
    When compiling spinlock code on my sparc machine I get an error ...
    /opt/SUNWspro/prod/bin/fbe: "/tmp/yabeAAAsfaizn", line 277: error: can't compute difference between symbols in different segments
    Failure in /opt/SUNWspro/prod/bin/fbe, status = 0x100
    Fatal Error exec'ing /opt/SUNWspro/prod/bin/fbe
    cc: acomp failed for s_lock.c
    gmake[4]: *** [s_lock.o] Error 2
    I have no idea what this means and even google doesn't know. I wanted to look at the temporary file but somehow this file is cleaned up when fbe terminates. I have not found a flag preventing the software from doing that.
    Can anybody point me to some documentation?
    How can I find the problem? This code works with gcc and sun studio 8 by the way ...

    Sorry for the late response but I was out doing business.
    Here is the compiler version we are using:
    [postgres@unknown /]$ /opt/SUNWspro/bin/cc -V
    cc: Sun C 5.6 2004/07/15
    This is the latest Sun Studio shipped with Fire 120 boxes for Sparc.
    [postgres@unknown /]$ uname -a
    SunOS unknown 5.8 Generic_108528-29 sun4u sparc SUNW,UltraAX-i2
    Building a test case is a bit hard because I don't know what this error means and where it happens (I cannot preserv the file causing the error).
    What I am doing is building a recent version of PostgreSQL (ftp://ftp.postgresql.org/pub/latest/postgresql-8.0.0.tar.gz). I am not using any specific flags - here is my build script;
    #!/bin/sh
    LD_LIBRARY_PATH=/opt/sfw/lib:/usr/local/lib:$LD_LIBRARY_PATH
    # PATH=/opt/SUNWspro/bin/:/opt/sfw/bin:$PATH:/usr/ccs/bin
    PATH=/usr/ccs/bin:/usr/ccs/bin/:/opt/SUNWspro/bin/:/opt/sfw/bin::/usr/sbin:/usr/bin
    gmake distclean
    CC='/opt/SUNWspro/bin/cc'
    # CC='/opt/sfw/bin/gcc'
    export CC
    export PATH
    export LD_LIBRARY_PATH
    # ./configure prefix=/usr/local/pgsql disable-rpath enable-debug without-readline without-gnu-ld disable-spinlocks
    ./configure prefix=/usr/local/pgsql disable-rpath enable-debug without-readline --without-gnu-ld
    # ./configure prefix=/usr/local/pgsql enable-debug --without-readline
    gmake
    gmake check
    The code producing the problem is related to spinlocks. s_lock.c contains platform specific code for various systems providing support for spinlocks (please refer to the tar archive I have sent you - s_lock.c is too long to post).
    Here is what configure tells me (relevant lines):
    checking build system type... sparc-sun-solaris2.8
    checking host system type... sparc-sun-solaris2.8
    checking which template to use... solaris
    configure: using CFLAGS=-v -g
    checking whether the C compiler still works... yes
    checking how to run the C preprocessor... /opt/SUNWspro/bin/cc -Xa -E
    configure: using CPPFLAGS=
    configure: using LDFLAGS=
    checking for non-GNU ld... /usr/ccs/bin/ld
    checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
    Here is the history of this problem:
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/freespace'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o freespace.o freespace.c
    /usr/ccs/bin/ld -r -o SUBSYS.o freespace.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/freespace'
    gmake -C ipc SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/ipc'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o ipc.o ipc.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o ipci.o ipci.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o pmsignal.o pmsignal.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o shmem.o shmem.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o shmqueue.o shmqueue.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o sinval.o sinval.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o sinvaladt.o sinvaladt.c
    /usr/ccs/bin/ld -r -o SUBSYS.o ipc.o ipci.o pmsignal.o shmem.o shmqueue.o sinval.o sinvaladt.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/ipc'
    gmake -C large_object SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/large_object'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o inv_api.o inv_api.c
    "../../../../src/include/access/tuptoaster.h", line 70: warning: can not declare variably modified type at file scope
    "../../../../src/include/access/tuptoaster.h", line 70: warning: member can not have variably modified type: data
    "inv_api.c", line 305: warning: end-of-loop code not reached
    /usr/ccs/bin/ld -r -o SUBSYS.o inv_api.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/large_object'
    gmake -C lmgr SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/lmgr'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o lmgr.o lmgr.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o lock.o lock.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o proc.o proc.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o deadlock.o deadlock.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o lwlock.o lwlock.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o spin.o spin.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o s_lock.o s_lock.c
    /opt/SUNWspro/prod/bin/fbe: "/tmp/yabeAAAQ.aaFl", line 277: error: can't compute difference between symbols in different segments
    Failure in /opt/SUNWspro/prod/bin/fbe, status = 0x100
    Fatal Error exec'ing /opt/SUNWspro/prod/bin/fbe
    cc: acomp failed for s_lock.c
    gmake[4]: *** [s_lock.o] Error 2
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/lmgr'
    gmake[3]: *** [lmgr-recursive] Error 2
    gmake[3]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage'
    gmake[2]: *** [storage-recursive] Error 2
    gmake[2]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend'
    gmake[1]: *** [all] Error 2
    gmake[1]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src'
    gmake: *** [all] Error 2
    gmake -n tells me what the build script is supposed to do ...
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/ipc'
    gmake[4]: `SUBSYS.o' is up to date.
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/ipc'
    /opt/sfw/bin/gmake -C large_object SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/large_object'
    gmake[4]: `SUBSYS.o' is up to date.
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/large_object'
    /opt/sfw/bin/gmake -C lmgr SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/lmgr'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o s_lock.o s_lock.c
    /usr/ccs/bin/ld -r -o SUBSYS.o lmgr.o lock.o proc.o deadlock.o lwlock.o spin.o s_lock.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/lmgr'
    /opt/sfw/bin/gmake -C page SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/page'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o bufpage.o bufpage.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o itemptr.o itemptr.c
    /usr/ccs/bin/ld -r -o SUBSYS.o bufpage.o itemptr.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/page'
    /opt/sfw/bin/gmake -C smgr SUBSYS.o
    gmake[4]: Entering directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/smgr'
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o md.o md.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o smgr.o smgr.c
    /opt/SUNWspro/bin/cc -Xa -v -g -I../../../../src/include -c -o smgrtype.o smgrtype.c
    /usr/ccs/bin/ld -r -o SUBSYS.o md.o smgr.o smgrtype.o
    gmake[4]: Leaving directory `/usr/share/src/pg/postgresql-8.0.0/src/backend/storage/smgr'
    /usr/ccs/bin/ld -r -o SUBSYS.o buffer/SUBSYS.o file/SUBSYS.o freespace/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
    By the way; there are only VERY few parts in PostgreSQLwhich are platform dependent - there is a very nice and very good abstraction layer which abstracts all this locking stuff - the problem happens in Sun specific code and ONLY with Sun CC (not with gcc).
    Help is very much appreciated.
    Hans

  • How do I share files on iCloud between different apps?

    Hi,
    how do I share files on iCloud between different apps?
    I would like to edit simple plain text files on my Mac and my iPad using different apps. They don't see the content of each other. How do I fix this?
    example:
    when I create a .txt files:
    Byword on Mac syncs nicely with Byword on iOS.
    Ulysses 3 on Mac syncs nicely with Daedalus Touch.
    BUT, cross-sync is not possible.... :/
    How can I change this? - I would like to work with Byword on my Mac and Daedalus on the go.
    Thanks in advance!

    Cross-sync only works if an app on the iDevice allows it.  For example, some apps (editors) sync with Dropbox (icloud usually isn't the thing to use) but only in their own folders. 
    If you save a file from the mac to it's own folder, A, on dropbox and on the device you use a different app that uses its own folder, B, then you won't be able to reach folder A on the device. 
    One thing to look for in editors that support Dropbox (most do, on a device - clearly all do on a mac) is whether they access dropbox using the root folder.  From there you can drop down to any subfolder and reach the files you want.

  • I just received an OEM copy of Adobe Photoshop Lightroom 5 with my Canon Pixma Pro 100 Printer.  What exactly is OEM.  Is it a full version?  Can I transfer files between different computers?

    @

    OEM means "Original Equipment Manufacturer", or in your case, Canon (not Adobe) is providing the software. It is identical to what you can buy from Adobe. It is the full version (that's the only version of Lightroom that exists)
    Transfer files between different computers ... this is not a function of Lightroom. Lightroom neither helps nor prevents you from transferring files from one computer to another.

  • [SOLVED]Simple file transfer between different os'es

    Hi
    I'm searching for some kind of simple file transfer between different computers/os (mainly arch and windows) on local net, without I have to set up any samba/ftp server etc. It would be perfect if i could select a file I want to transfer and then be able to receive it on a different computer.
    So far I've tried giver but I most of the times they can't find each other.
    Any know how I could archive something like the a bow?
    Thanks
    Last edited by zann (2012-12-07 01:43:44)

    Try using simple file sharing through http server 'oneliner's.
    - Note your host IP (which I refer to by "ip.of.your.server"),
    - Go under your directory where you want to share files and fire a command line :
    Using python : python2 -m SimpleHTTPServer 8000
    And you can access your files on the network using http://ip.of.your.server:8000/
    Using php : php -S localhost:8080 -t webrootpath/
    Files under webrootpath/ will be accessible from http://ip.of.your.server:8888/
    Using mongoose : mongoose -r . -p 8888
    Files will be accessible from http://ip.of.your.server:8888/
    You may restrict access, ie.:  -l -0.0.0.0/0,+10.60.100.105
    And have access/error logging (à la apache) too : -a access_log.txt -e error_log.txt
    NB.: You may install python or php under windows but mongoose is the easiest thing when it comes to windows -> linux.
    Last edited by xpixelz (2012-12-04 15:01:40)

  • Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

    In the attached file, I have a series of symbols that have a drag and drop command to change colour at different sections of a bullseye, and that are also text editable (html).
    However, some of the symbols get stuck and will not be moved after moving once or at all, and some get stuck once their text has been edited.
    I have poured over the code and it appears to be the same for each symbol - can anyone explain as to why this is happening?
    I also cannot now edit the text properly on the ipad (it is really fiddly to change between different symbols to edit their text -- is there maybe a better way to do this? A button to change between symbols to then edit their text, can you help with this too?)
    THANK YOU SO MUCH!!!
    File here:
    https://www.dropbox.com/s/g71gnfichjgyehn/NEW%20RISK%20RADAR.zip

    Hi, I think I undertsand what you mean now, so the code is as below, btu I am not sure what a handler is? but some of my risks still get stuck once the text has been changed on them:
    // Use for loop for attr
    // deleted  yepnope since you load with scropt loading
    // added pos for each symbol so we can replace them there.
    document.ontouchmove = function(e) {
            e.preventDefault();
    var risk = ;
    var Pos = [
    {'x':-9,'y':806},
    {'x':27,'y':854},
    {'x':72,'y':894},
    {'x':71,'y':934},
    {'x':231,'y':811},
    {'x':231,'y':853},
    {'x':231,'y':894},
    {'x':231,'y':934},
    {'x':388,'y':811},
    {'x':388,'y':852},
    {'x':388,'y':893},
    {'x':388,'y':934},
    {'x':543,'y':811},
    {'x':543,'y':853},
    {'x':543,'y':893},
    {'x':543,'y':934}
    var myText = ; 
    for (i=0;i<risk.length;i++){
    sym.getSymbol(risk[i]).$(risk[i]).attr("contenteditable",true);
    sym.$('Quadrant_text').attr("contenteditable",true);
    sym.$('Quadrant1_text').attr("contenteditable",true);
    sym.$('Quadrant2_text').attr("contenteditable",true);
    sym.$('Quadrant3_text').attr("contenteditable",true);
    // apply the draggable JQuery UI plugin to the MyDraggableSymbol symbol on your stage
    sym.$('Risk1').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk1").stop("Initial");
      sym.setVariable("symName","Risk1");
    //adding for risk3_orange similarly add for other symbols
    sym.$('Risk1').draggable();
    sym.getSymbol('Risk1').$("Risk1").bind('click tap',function(ev) {
         sym.$('Risk1').draggable('disable');
    }).unbind('dblclick tap',function(ev) {
         sym.$('Risk1').draggable('enable');
    sym.$('Risk2').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk2").stop("Initial");
      sym.setVariable("symName","Risk2");
    //adding for Risk2 similarly add for other symbols
    sym.$('Risk2').draggable();
    sym.getSymbol('Risk2').$("Risk2").bind('click tap',function(ev) {
         sym.$('Risk2').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk2').draggable('enable');
    sym.$('Risk3').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk3").stop("Initial");
      sym.setVariable("symName","Risk3");
    //adding for Risk3 similarly add for other symbols
    sym.$('Risk3').draggable();
    sym.getSymbol('Risk3').$("Risk3").bind('click tap',function(ev) {
         sym.$('Risk3').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk3').draggable('enable');
    sym.$('Risk4').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk4").stop("Initial");
      sym.setVariable("symName","Risk4");
    //adding for Risk4 similarly add for other symbols
    sym.$('Risk4').draggable();
    sym.getSymbol('Risk4').$("Risk4").bind('click tap',function(ev) {
         sym.$('Risk4').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk4').draggable('enable');
    sym.$('Risk5').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk5").stop("Initial");
      sym.setVariable("symName","Risk5");
    //adding for Risk5 similarly add for other symbols
    sym.$('Risk5').draggable();
    sym.getSymbol('Risk5').$("Risk5").bind('click tap',function(ev) {
         sym.$('Risk5').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk5').draggable('enable');
    sym.$('Risk6').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk6").stop("Initial");
      sym.setVariable("symName","Risk6");
    //adding for Risk6 similarly add for other symbols
    sym.$('Risk6').draggable();
    sym.getSymbol('Risk6').$("Risk6").bind('click tap',function(ev) {
         sym.$('Risk6').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk6').draggable('enable');
    sym.$('Risk7').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk7").stop("Initial");
      sym.setVariable("symName","Risk7");
    //adding for Risk7 similarly add for other symbols
    sym.$('Risk7').draggable();
    sym.getSymbol('Risk7').$("Risk7").bind('click tap',function(ev) {
         sym.$('Risk7').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk7').draggable('enable');
    sym.$('Risk8').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk8").stop("Initial");
      sym.setVariable("symName","Risk8");
    //adding for Risk8 similarly add for other symbols
    sym.$('Risk8').draggable();
    sym.getSymbol('Risk8').$("Risk8").bind('click tap',function(ev) {
         sym.$('Risk8').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk8').draggable('enable');
    sym.$('Risk9').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk9").stop("Initial");
      sym.setVariable("symName","Risk9");
    //adding for Risk9 similarly add for other symbols
    sym.$('Risk9').draggable();
    sym.getSymbol('Risk9').$("Risk9").bind('click tap',function(ev) {
         sym.$('Risk9').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk9').draggable('enable');
    sym.$('Risk10').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk10").stop("Initial");
      sym.setVariable("symName","Risk10");
    //adding for Risk10 similarly add for other symbols
    sym.$('Risk10').draggable();
    sym.getSymbol('Risk10').$("Risk10").bind('click tap',function(ev) {
         sym.$('Risk10').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk10').draggable('enable');
    sym.$('Risk11').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk11").stop("Initial");
      sym.setVariable("symName","Risk11");
    //adding for Risk11 similarly add for other symbols
    sym.$('Risk11').draggable();
    sym.getSymbol('Risk11').$("Risk11").bind('click tap',function(ev) {
         sym.$('Risk11').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk11').draggable('enable');
    sym.$('Risk12').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk12").stop("Initial");
      sym.setVariable("symName","Risk12");
    //adding for Risk12 similarly add for other symbols
    sym.$('Risk12').draggable();
    sym.getSymbol('Risk12').$("Risk12").bind('click tap',function(ev) {
         sym.$('Risk12').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk12').draggable('enable');
    sym.$('Risk13').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk13").stop("Initial");
      sym.setVariable("symName","Risk13");
    //adding for Risk13 similarly add for other symbols
    sym.$('Risk13').draggable();
    sym.getSymbol('Risk13').$("Risk13").bind('click tap',function(ev) {
         sym.$('Risk13').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk13').draggable('enable');
    sym.$('Risk14').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk14").stop("Initial");
      sym.setVariable("symName","Risk14");
    //adding for Risk14 similarly add for other symbols
    sym.$('Risk14').draggable();
    sym.getSymbol('Risk14').$("Risk14").bind('click tap',function(ev) {
         sym.$('Risk14').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk14').draggable('enable');
    sym.$('Risk15').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk15").stop("Initial");
      sym.setVariable("symName","Risk15");
    //adding for Risk15 similarly add for other symbols
    sym.$('Risk15').draggable();
    sym.getSymbol('Risk15').$("Risk15").bind('click tap',function(ev) {
         sym.$('Risk15').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk15').draggable('enable');
    sym.$('Risk16').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk16").stop("Initial");
      sym.setVariable("symName","Risk16");
    //adding for Risk16 similarly add for other symbols
    sym.$('Risk16').draggable();
    sym.getSymbol('Risk16').$("Risk16").bind('click tap',function(ev) {
         sym.$('Risk16').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk16').draggable('enable');
    sym.getSymbol("Drop").$('Outer').droppable(
    sym.getSymbol("Drop").$('Middle').droppable(
    sym.getSymbol("Drop").$('Target').droppable(
    sym.$('resetBtn').click(function(){
      sym.$('Quadrant_text').html('Quadrant');
      sym.$('Quadrant1_text').html('Quadrant');
      sym.$('Quadrant2_text').html('Quadrant');
      sym.$('Quadrant3_text').html('Quadrant');
    for (i=0;i<risk.length;i++){
      sym.$(risk[i]).css({"left":Pos[i].x,"top":Pos[i].y,"position":"absolute"})
      sym.getSymbol(risk[i]).stop(0);
      sym.getSymbol(risk[i]).$(risk[i]).html("Challenge");
    But is still doesn't work,
    Subject: Re:  Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

  • How to share music between different accounts on a single computer

    I am trying to share music on my Mac between two different iTunes accounts.  Can this be done?

    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • Sharing iTunes library between different user accounts

    I recently purchased my imac and made the leap from the PC world. I set up another user account aside from the general administrator and followed the steps of having itunes folder go to the users/shared folder in an effort to be able to share files between users. I am able to now share the library between users but find that when I load new songs onto one user I then need to go into the other user's account and manually copy the new songs from the shared folder into itunes.
    Anyone know how I can have it so when I load songs into one users itunes they will automatically appear in library of the other user's itunes without having to take the step of copying/importing?
    Also when I was downloading and importing over 4000 songs my imac had the transparent black box which informed me I needed to shut down my computer at least twice. Should I be concerned? I'm assuming this notice is very similar to the "blue screen of death" known in the PC world so that can't be good especially when I paid the extra $ for fully loaded imac.
    Thanks for the help!

    DANMAC808, Welcome to the discussion area!
    See KB 93195, iTunes: How to share music between different accounts on a single computer.
    Also when I was downloading and importing over 4000 songs my imac had the transparent black box which informed me I needed to shut down my computer at least twice. Should I be concerned?
    That is not normal at all.

  • Communication between different JVMs

    Hallo,
    is there a simple way, to exchange data between different java sessions? At the moment I store the needed data to a table and load it in my java procedures when ever I need them.
    But because this data is temporary, it wouldn't really be necessary to store the data. It's just for communication between the different JVMs. Is there an other way to do this, too?
    Thanks, Christian

    Christian, I may have misunderstood your question, but, until java version 1.4, the only way for different JVMs to communicate was via sockets, or secondary storage (the file system -- which includes databases).
    In java version 5.0 (previously version 1.5), there is a new feature known as class data sharing.
    But since you posted to the "Database >> JVM" forum, I can't help thinking that you are referring to different database JVMs. Is that correct? In any case, sockets and secondary storage are your only options there as well.
    Good Luck,
    Avi.

  • Sharing music between different accounts - is this how it works?

    The way iTunes shares music between different users seems a bit poor.
    I have two user accounts set up on the same PC, with music files accessed by each from the same folder (as described here: How To Share Music Between Different Accounts On A Single Computer).
    My main issues are:
    1) I have to manually add new music added by the other user instead of it just appearing in iTunes.
    2) iTunes doesn't recognise if a music file is already in the joint library, so we end up with two copies of things (particularly tiresome for podcasts).
    Am I doing something wrong - maybe there is an easy way around this?
    ... or do the people at Apple need to do a bit of work here?
    Pentium 4   Windows XP  

    By default, any new file or folder created is set to be read+write for the creator, and read-only for everyone else. The file creator can grant write access to other users by changing the permissions on a folder and its contents, as Neil suggests. But you'll have to repeat that process every time a new file is added.
    Fortunately, there is a way to automatically grant read+write access to all files created or copied to the folder. First go to System Preferences -> Accounts. Click the + button under the users list. Then, make a new group; calling it "sharegroup" or something similar. Add the users you want to the group.
    Then put all the files you want to share into a commonly-accessible folder, such as a subfolder in /Users/Shared.
    Then log in to an admin account and open Terminal. Paste in the following two lines:
    sudo chmod -R +a "sharegroup allow delete,chown,list,search,add_file,\
    addsubdirectory,delete_child,file_inherit,directoryinherit" \
    Press return, then drag the folder into the Terminal window, and press return again. Enter admin password when prompted and press return. That should do it. Everything there now should be fully writable by all users in sharegroup. New files that are *created in* or *copied to* the folder will be the same way.
    Files that you *move in* from a different location on the same hard drive won't be, though. So make sure you copy previously existing files into the sharefolder instead of moving them (hold down option key while dragging to copy) so that they get the custom permissions applied.

  • Sharing music between different accounts on a single computer

    I have read the instructions here: http://support.apple.com/kb/HT1203 , but I'm still having a problem.
    Scenario: Two Ipods, one PC (WinXP), one big music library, originally created and stored directly in C:\My Music, which is accessible to all users of the PC. From my non-admin account, I add folders and files to my itunes library, modify songs and artwork, no problem. Now my son has an iPod, and I would like to be able to share out portions of the C:\My Music library with him. It kind of works. He adds files and folders to his library, on his account, in his itunes. The music is there, but it is somehow protected. No artwork, in fact I get the "artwork is not modifiable" message. Nor can he modify any info in the songs. In a few cases, the artwork comes with the songs, but mostly not. In either case, no info in the songs are modifiable. Neither of our Windows XP user accounts are admin, but why does my account seem to "own" the songs? He's not going to be happy without any artwork in his library or on his ipod.
    Any ideas? Thanks!

    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189

  • How to pass/share components between different JPanels/Container

    Dear Friends,
    I know here a lot Java Guru, I met a problem below.
    How can I pass components between different JPanels??
    here, ListPanelMain.java is main,
    When I click a tree node in splitPane, I can see all its children on the right splitpane, but I hope they can be seen on another Panel called "ListRightPane.java"
    How to do it??
    Why cannot pass??
    [1]. main Program:
    package swing.com.test.test;
    import javax.swing.JFrame;
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import java.io.Serializable;
    import swing.com.test.test.ListPanel;
    import java.awt.GridLayout;
    public class ListPanelMain implements java.io.Serializable{
         private JFrame frame;
         * Launch the application
         * @param args
         public static void main(String args[]) {
              try {
                   ListPanelMain window = new ListPanelMain();
                   window.frame.setVisible(true);
              } catch (Exception e) {
                   e.printStackTrace();
         * Create the application
         public ListPanelMain() {
              initialize();
         * Initialize the contents of the frame
         private void initialize() {
              frame = new JFrame("FileTreePanelMain");
              frame.setBounds(100, 100, 900, 675);
         //     FieTreePanelComm      ftreecomm                = new      FieTreePanelComm();
              ListPanel                ftree                     = new      ListPanel("C:\\");
    //          ListAllFile           ftree                     = new      ListAllFile("C:\\");
         //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JPanel panel = new JPanel();
              panel.setLayout(new GridLayout(0, 2));
              frame.getContentPane().add(panel, BorderLayout.CENTER);
         //     final JSplitPane splitPane = new JSplitPane();
         //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
         //     splitPane.setLeftComponent(ftree);
              panel.add(ftree);
              final ListRightPanel listRightPanel = new ListRightPanel(ftree);
              //splitPane.setRightComponent(listRightPanel);
              panel.add(listRightPanel);
         frame.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
         frame.pack();
         frame.setVisible(true);
    [2]. Program 2:
    package swing.com.test.test;
    //File System Tree
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.io.File;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.JPanel;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListPanel extends JPanel implements Serializable{
    protected JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea ltextArea = new JTextArea();
    protected JTextArea fileDetailsTextArea = new JTextArea();
    private String str = "";
         public String getlTextArea() {
                   //textArea.getText();
                   return str;
         public String setlTextArea(String ta) {
                   ltextArea.setText(ta);
                   str = ta;
                   return str;
    public ListPanel(String directory) {
    //super("JTree FileSystem Viewer");
                   setLayout(new BorderLayout());
                   final JPanel panel = new JPanel();
                   panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
    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) {
    System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
    File file = (File) fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(getFileDetails(file));
    final ListRightPanel lrp = new ListRightPanel(this);
    lrp.textArea.setText(getFileDetails(file));
    setlTextArea(getFileDetails(file));
    System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
              final JSplitPane splitPane = new JSplitPane();
              panel.add(splitPane, BorderLayout.CENTER);
              final JPanel panel_1 = new JPanel();
              splitPane.setLeftComponent(panel_1);
              panel_1.add(new JScrollPane(fileTree));
              final JPanel panel_2 = new JPanel();
              splitPane.setRightComponent(panel_2);
              panel_2.add(new JScrollPane(fileDetailsTextArea));
    setVisible(true);
    private String getFileDetails(File file) {
    if (file == null)
    return "";
    StringBuffer buffer = new StringBuffer();
    if (file.listFiles()!=null){
         for (int i=0; i< file.listFiles().length; i++){
         buffer.append(((file.listFiles())) + "\n");
         System.out.println("List all files");
    return buffer.toString();
    public static void main(String args[]) {
    new ListPanel("c:\\");
    class FileSystemModel implements TreeModel {
    private File root;
    private Vector listeners = new Vector();
    public FileSystemModel(File rootDirectory) {
    root = rootDirectory;
    public Object getRoot() {
    return root;
    public Object getChild(Object parent, int index) {
    File directory = (File) parent;
    String[] children = directory.list();
    return new TreeFile(directory, children[index]);
    public int getChildCount(Object parent) {
    File file = (File) parent;
    if (file.isDirectory()) {
    String[] fileList = file.list();
    if (fileList != null)
    return file.list().length;
    return 0;
    public boolean isLeaf(Object node) {
    File file = (File) node;
    return file.isFile();
    public int getIndexOfChild(Object parent, Object child) {
    File directory = (File) parent;
    File file = (File) child;
    String[] children = directory.list();
    for (int i = 0; i < children.length; i++) {
    if (file.getName().equals(children[i])) {
    return i;
    return -1;
    public void valueForPathChanged(TreePath path, Object value) {
    File oldFile = (File) path.getLastPathComponent();
    String fileParentPath = oldFile.getParent();
    String newFileName = (String) value;
    File targetFile = new File(fileParentPath, newFileName);
    oldFile.renameTo(targetFile);
    File parent = new File(fileParentPath);
    int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
    Object[] changedChildren = { targetFile };
    fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
    private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
    TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
    Iterator iterator = listeners.iterator();
    TreeModelListener listener = null;
    while (iterator.hasNext()) {
    listener = (TreeModelListener) iterator.next();
    listener.treeNodesChanged(event);
    public void addTreeModelListener(TreeModelListener listener) {
    listeners.add(listener);
    public void removeTreeModelListener(TreeModelListener listener) {
    listeners.remove(listener);
    private class TreeFile extends File {
    public TreeFile(File parent, String child) {
    super(parent, child);
    public String toString() {
    return getName();
    [3]. Program 3:
    package swing.com.test.test;
    import java.awt.BorderLayout;
    import java.io.File;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
         protected JTextArea textArea;
    //     protected ListAllFile laf;
    private String str = "";
              public String getlTextArea() {
                        //textArea.getText();
                        return str;
              public String setlTextArea(String ta) {
                        str = ta;
                        return str;
         * Create the panel
         public ListRightPanel(ListPanel laff) {
              super();
              setLayout(new BorderLayout());
              final JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
              textArea = new JTextArea();
    final String st = laff.getlTextArea();
    System.out.println("####################################");
    System.out.println("st=" + st);
         laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
         public void valueChanged(TreeSelectionEvent event) {
         //laff.textArea.setText(getFileDetails(file));
              textArea.setText(getlTextArea());
         System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
         System.out.println("st=" + st);
              panel.add(textArea, BorderLayout.CENTER);
         public void valueChanged(TreeSelectionEvent e){};
    It is runnable program, just compile and run it in Console is ok,
    Regards
    Sunny

    Thnaks, code post again, see
    [1]. package swing.com.test.test;
    import javax.swing.JFrame;
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import java.io.Serializable;
    import swing.com.test.test.ListPanel;
    import java.awt.GridLayout;
    public class ListPanelMain implements java.io.Serializable{
         private JFrame frame;
          * Launch the application
          * @param args
         public static void main(String args[]) {
              try {
                   ListPanelMain window = new ListPanelMain();
                   window.frame.setVisible(true);
              } catch (Exception e) {
                   e.printStackTrace();
          * Create the application
         public ListPanelMain() {
              initialize();
          * Initialize the contents of the frame
         private void initialize() {
              frame = new JFrame("FileTreePanelMain");
              frame.setBounds(100, 100, 900, 675);
         //     FieTreePanelComm      ftreecomm                = new       FieTreePanelComm();
              ListPanel                 ftree                     = new      ListPanel("C:\\");
    //          ListAllFile            ftree                     = new      ListAllFile("C:\\");
         //     FileTreePanelText      fileTreePanelText      = new      FileTreePanelText(ftreecomm);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JPanel panel = new JPanel();
              panel.setLayout(new GridLayout(0, 2));
              frame.getContentPane().add(panel, BorderLayout.CENTER);
         //     final JSplitPane splitPane = new JSplitPane();
         //     frame.getContentPane().add(splitPane, BorderLayout.CENTER);
         //     splitPane.setLeftComponent(ftree);
              panel.add(ftree);
              final ListRightPanel listRightPanel = new ListRightPanel(ftree);
              //splitPane.setRightComponent(listRightPanel);
              panel.add(listRightPanel);
                frame.addWindowListener(new WindowAdapter() {
                     public void windowClosing(WindowEvent e) {
                         System.exit(0);
                 frame.pack();
                 frame.setVisible(true);
    }[2] Program 2
    package swing.com.test.test;
    //File System Tree
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.io.File;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.JPanel;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListPanel extends JPanel implements Serializable{
      protected JTree fileTree;
      private FileSystemModel fileSystemModel;
      private JTextArea ltextArea = new JTextArea();
      protected JTextArea fileDetailsTextArea = new JTextArea();
      private String str = "";
         public  String getlTextArea()  {
                   //textArea.getText();
                      return str;
         public  String setlTextArea(String ta)  {
                   ltextArea.setText(ta);
                   str = ta;
                      return str;
      public ListPanel(String directory) {
        //super("JTree FileSystem Viewer");
                   setLayout(new BorderLayout());
                   final JPanel panel = new JPanel();
                   panel.setLayout(new BorderLayout());
                  add(panel, BorderLayout.CENTER);
        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) {
            System.out.println("1. What we save is: getlTextArea() =" + getlTextArea() );
            File file = (File) fileTree.getLastSelectedPathComponent();
            fileDetailsTextArea.setText(getFileDetails(file));
            final ListRightPanel lrp = new ListRightPanel(this);
            lrp.textArea.setText(getFileDetails(file));
            setlTextArea(getFileDetails(file));
            System.out.println("2. What we save is: getlTextArea() =" + getlTextArea() );
              final JSplitPane splitPane = new JSplitPane();
              panel.add(splitPane, BorderLayout.CENTER);
              final JPanel panel_1 = new JPanel();
              splitPane.setLeftComponent(panel_1);
              panel_1.add(new JScrollPane(fileTree));
              final JPanel panel_2 = new JPanel();
              splitPane.setRightComponent(panel_2);
              panel_2.add(new JScrollPane(fileDetailsTextArea));
        setVisible(true);
      private String getFileDetails(File file) {
        if (file == null)
          return "";
        StringBuffer buffer = new StringBuffer();
        if (file.listFiles()!=null){
             for (int i=0; i< file.listFiles().length; i++){
             buffer.append(((file.listFiles())) + "\n");
         System.out.println("List all files");
    return buffer.toString();
    public static void main(String args[]) {
    new ListPanel("c:\\");
    class FileSystemModel implements TreeModel {
    private File root;
    private Vector listeners = new Vector();
    public FileSystemModel(File rootDirectory) {
    root = rootDirectory;
    public Object getRoot() {
    return root;
    public Object getChild(Object parent, int index) {
    File directory = (File) parent;
    String[] children = directory.list();
    return new TreeFile(directory, children[index]);
    public int getChildCount(Object parent) {
    File file = (File) parent;
    if (file.isDirectory()) {
    String[] fileList = file.list();
    if (fileList != null)
    return file.list().length;
    return 0;
    public boolean isLeaf(Object node) {
    File file = (File) node;
    return file.isFile();
    public int getIndexOfChild(Object parent, Object child) {
    File directory = (File) parent;
    File file = (File) child;
    String[] children = directory.list();
    for (int i = 0; i < children.length; i++) {
    if (file.getName().equals(children[i])) {
    return i;
    return -1;
    public void valueForPathChanged(TreePath path, Object value) {
    File oldFile = (File) path.getLastPathComponent();
    String fileParentPath = oldFile.getParent();
    String newFileName = (String) value;
    File targetFile = new File(fileParentPath, newFileName);
    oldFile.renameTo(targetFile);
    File parent = new File(fileParentPath);
    int[] changedChildrenIndices = { getIndexOfChild(parent, targetFile) };
    Object[] changedChildren = { targetFile };
    fireTreeNodesChanged(path.getParentPath(), changedChildrenIndices, changedChildren);
    private void fireTreeNodesChanged(TreePath parentPath, int[] indices, Object[] children) {
    TreeModelEvent event = new TreeModelEvent(this, parentPath, indices, children);
    Iterator iterator = listeners.iterator();
    TreeModelListener listener = null;
    while (iterator.hasNext()) {
    listener = (TreeModelListener) iterator.next();
    listener.treeNodesChanged(event);
    public void addTreeModelListener(TreeModelListener listener) {
    listeners.add(listener);
    public void removeTreeModelListener(TreeModelListener listener) {
    listeners.remove(listener);
    private class TreeFile extends File {
    public TreeFile(File parent, String child) {
    super(parent, child);
    public String toString() {
    return getName();
    [3] Program 3:
    package swing.com.test.test;
    import java.awt.BorderLayout;
    import java.io.File;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import java.io.Serializable;
    public class ListRightPanel extends JPanel implements TreeSelectionListener, Serializable{
         protected JTextArea textArea;
    //     protected ListAllFile  laf;
        private String str = "";
              public  String getlTextArea()  {
                        //textArea.getText();
                           return str;
              public  String setlTextArea(String ta)  {
                        str = ta;
                           return str;
          * Create the panel
         public ListRightPanel(ListPanel  laff) {
              super();
              setLayout(new BorderLayout());
              final JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              add(panel, BorderLayout.CENTER);
              textArea = new JTextArea();
            final String st = laff.getlTextArea();
            System.out.println("####################################");
            System.out.println("st=" + st);
             laff.fileTree.addTreeSelectionListener(new TreeSelectionListener() {
                 public void valueChanged(TreeSelectionEvent event) {
                   //laff.textArea.setText(getFileDetails(file));
                      textArea.setText(getlTextArea());
                     System.out.println("ListRightPanel Was Invoked from ListPanel!!getlTextArea() =" + getlTextArea() );
                     System.out.println("st=" + st);
              panel.add(textArea, BorderLayout.CENTER);
           public void valueChanged(TreeSelectionEvent e){};
    }You can try this one, thanks again
    sunny

  • 2 different files in the same location?

    When we upload files they go all in one folder.
    The first editor calls his graphic "Picture 1.png" (wonder where that came from..)
    Sure sometimes before the item gets deleted another one will upload an completly different picture with the same filename.
    The thing that it different between the 2 would be the Asset ID. So I was wondering if there is a way to make folders with asset IDs in the location where everybody uploads there stuff to.
    To tidy up on the long run I guess we just would need to delete the empty folders (as the content has been archived).
    How would I do this? How do other people deal with the same filenames for different files? It even happens within the same production so the solution to create an subfolder for each production (read this a while ago) does not work for us.
    I know that for future projects we will tell people to use more describing filenames (but even there: there might be two different kitchens called the same..) but I also talk about a huge, messy archive to migrate..
    thanks
    tobi

    Let me rephrase things a bit as I used the term Excel chart  to literally. We create charts in SSRS. We then use a query string that includes "rs:command=render&rs:format=Excel" to get the chart into Excel. The "chart" in Excel is really just an
    image and the associated data table is the cells filled in with the data. We then "select" the area that encompasses all of these objects and paste that into the PowerPoint slide.
    Our source folder structure is as follows (note that I while I am being generic, the Ecel file names are the same between folders:
    Folder A: File1.xls, File2.xls, File3.xls ..... File40.xls
    Folder B: File1.xls, File2.xls, File3.xls .....File40.xls
    This goes on for 8 folders but can be as many as 30
    The routine we use to create the xls file from the SSRS chart names the xls file and puts it in the correct folder.
    The idea was we would create a template chart set in PPT for folder A and then create copies of the PPT and change the links to point to Folder B, etc.
    We have ensured that all Excel Documents are closed when we try to do an update.
    We are also getting the following error and I'm paraphrasing: Cannot open multiple instances of a file of the same name even if it is in a different location. This occurs when doing an update links when we don't get the initial error message I listed first.
    If we change the names of the files in each folder: i.e. FolderAFile1.xls, FolderAFile2.xls, etc then we can do the update links. This is time consuming as the SSRS exports are done by the end users and we are the developers trying to create a reusable solution.
    One other issue we are seeing which I hope you can address is that when we are getting the update links to work, the process opens up each Excel file THREE times. It takes almost 15 minutes to update a PPT with 18 linked xls files.

Maybe you are looking for