[Win-Ill10]Expand Pattern Swatch not working!

Hi all,
Im using VC++6.0,Illustrator 10 & SDK.Im trying to Expand a pattern swatch programatically.But it does not work.Here's the code snippet
AIErr error;
AIArtHandle path;
case kPattern:
error=sExpand->Expand(path,0);
break;
Please tell whats wrong!

you could do as follow:
//retrieve the pattern art fot a given AIColor (PatternColor).
AIArtHandle patternArt;
AIPatternStyle patternStyle;
patternStyle = color.c.p
result = sAIPattern->GetPatternArt(patternStyle.pattern, &patternArt);
aisdk::check_ai_error(result);
then, do a recursive treewalk for this patternArt!
this is done!

Similar Messages

  • Win 7 Touchpad driver is not working on Satellite C855-21V

    Hello everybody!
    I have an Satellite C855-21V and it came with Windows 8. After one week of desaster Im sure I want never again a Windows 8 on my Computer!
    So I installed Windows 7 and can find all the drivers somewhere in the internet.
    The only thing what is not working is the touchpad.
    Win 8 driver dont work and from other models the win 7 driver don't work.
    Does anybody know what Brand is the touchpad or where to find a driver for win 7?
    Thank you all for the help!
    Best Regards
    Frank

    Hi
    First of all the touchpad should work after Win 7 installation.
    The Windows system contain an standard touchpad driver which should control the touchpad.
    Of course the installation of additional Synaptics driver would provide more touchpad features (finger scrolling, etc) but also without the Synaptics driver the touchpad should work.
    Anyway, I already mentioned the Synaptics driver and you can download this here:
    http://www.synaptics.com/resources/drivers
    PS: is the touchpad enabled? F5 Enables and disables the touchpad

  • Expand audio does not work in FCP X?

    when I use expand audio from video (cntr-S) accoding to the helpto split video/audio it does not work; the audiowaveform disappears, there is no split in audio and video. Only the audio is functoning and then the colour is green.
    A bug?

    I just restarted the macbpro and the program, tried again and now it works.
    thanks for your attention.
    bruce

  • Lennovo T60 with Win 8.1 Pro: Bluetooth not working

    Hi,
    I have a T60 with win 8.1 pro. Bluetooth menu doesnt show up in device manager or under the PC and Devices.
    Please help to get the bluetooth menu on PC, I need to connect a microsoft bluetooth mouse.
    Thanks
    Sal

    Hi om prakashfrombangalore,
    Welcome to the Apple Support Communities!
    I understand that you are having an issue where Bluetooth on your iPhone is not working as expected. In this situation, I would recommend reading over and working through the troubleshooting steps provided in the attached article. 
    iOS: Troubleshooting Bluetooth connections - Apple Support
    Best regards,
    Joe

  • Vista PDF Preview handler installed on Win 7 32 bit does not work.

    There is no discoverable information regarding failure to preview Adobe PDF files on Win 7 32 bit. The advice for 64 bit does not work. Adobe continues to install the Vista preview handler on my Windows 7 computer, which I suspect is the issue. Is there any way to find and install the Windows 7 32 bit handler or is there a registry hack that permits 11 to access the vista version or what? This is a repeat post, as I cannot locate the first and assume that there have been no responses, as I  have received no alerts.
    If you have an answer I will name my first born for you. He is 41 and object loudly, but no price to great.....

    I have fifteen minutes to mark this as a question, despite the fact that no question link or icon exists. Adobe?

  • Photoshop Pattern Definition not working correctly

    I work as a graphic designer at a company working with CS6. I try to define a pattern but when the dialogue box pops up in define pattern the pattern does not define as I want it to. Instead of defining it as it looks in the image. The pop up turns it into something else. I've taking a screen capture of the problem and inserted it below.
    What do I do to fix this issue?

    There was a similar problem reported five months ago:
    http://feedback.photoshop.com/photoshop_family/topics/incorrect_cropping_of_define_pattern _in_32_bit_mode_in_some_cases
    Adobe completely ignored the report. Not even an acknowledgement. That's what we get for $1000, I guess.
    Try creating your pattern in 8-bit RGB mode. It'll still be usable in other modes.

  • Win 2003 Sevver Command Prompt not working

    Hi,
    It seems somehow the command prompt are not working on my server and hence one of my software installation is failing on the server.
    it seems the CLI commands work fine when the Command prompt is executed directly from the /system32 dir. But when we use it from Start>run>cmd, the commands don't respond.
    For Example:
    C:\>ping
    'ping' is not recognized as an internal or external command,
    operable program or batch file.
    C:\>nslookup
    'nslookup' is not recognized as an internal or external command,
    operable program or batch file.
    And when I execute it from the /system32 :
    C:\WINDOWS\system32>ping
    Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
                [-r count] [-s count] [[-j host-list] | [-k host-list]]
                [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
    Options:
        -t             Ping the specified host until stopped.
                       To see statistics and continue - type Control-Break;
                       To stop - type Control-C.
        -a             Resolve addresses to hostnames.
        -n count       Number of echo requests to send.
        -l size        Send buffer size.
        -f             Set Don't Fragment flag in packet (IPv4-only).
        -i TTL         Time To Live.
        -v TOS         Type Of Service (IPv4-only).
        -r count       Record route for count hops (IPv4-only).
        -s count       Timestamp for count hops (IPv4-only).
        -j host-list   Loose source route along host-list (IPv4-only).
        -k host-list   Strict source route along host-list (IPv4-only).
        -w timeout     Timeout in milliseconds to wait for each reply.
        -R             Trace round-trip path (IPv6-only).
        -S srcaddr     Source address to use (IPv6-only).
        -4             Force using IPv4.
        -6             Force using IPv6.
    C:\WINDOWS\system32>nslookup
    Default Server:  dns-blr2.cisco.com
    Address:  72.163.128.140
    Please check and suggest!

    Hi Aryanadonis  ,
    Thanks for posting here
    According what you mentioned, I thought system can’t located command programs path when you perform this command .
    Seems that you can perform these command with assign path, what I thought is this issue occurred because wrong environment variable setting.
    I noticed that you have posted the Environment Variable result here, I checked and highlight wrong values that could cause this issue. please correct it and try perform
    command again.
    C:\WINDOWS;
    C:\WINDOWS\system32;
    C:\WINDOWS\system32\\wbem;
    C:\PROGRA~1\CSCOpx\objects\smarts\lib;
    C:\PROGRA~1\CSCOpx\objects\smarts\bin;
    C:\PROGRA~1\CSCOpx\campus\bin;
    C:\PROGRA~1\CSCOpx\MDC\tomcat\bin;
    C:\PROGRA~1\CSCOpx\MDC\Apache;
    C:\PROGRA~1\CSCOpx\MDC\Apache\bin;
    C:\PROGRA~1\CSCOpx\MDC\jre\bin;
    C:\PROGRA~1\CSCOpx\MDC\bin;
    C:\PROGRA~1\CSCOpx\lib\jre\bin\server;
    C:\PROGRA~1\CSCOpx\objects\db\win32;
    C:\PROGRA~1\CSCOpx\bin;
    C:\WINDOWS\system32\\wbems\smarts\binPROGRA~1\CSCOpx\MDC\ApacheOGRA~1\CSCOpx\lib\jre\bin\serverCOpx\lib\jrebin\serveremRoot%\System32\Wbem;
    C:\Other Programs\net snmp\bin
    This article below introduce how to modify environment variables in windows XP , but you may also reference to it and modify environment variable on you windows 2003:
    How To Manage Environment Variables in Windows XP
    http://support.microsoft.com/kb/310519
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I have compaq cq50. was VISTA upgraded to WIN 7. Recovery disks not working. BOOTMGR compressed

    will not boot up.  I have 2 recovery disks, the 1 of 2 will take but 2 of 2 disk doesnt run.

    Hi:
    If you are trying to use the Vista recovery disks and they are not working, and you can read your Vista product key on the bottom of your notebook, then you can make your own Vista installation disk by reading the guidance below.
    If you're up to a slight but rewarding challenge you can make your own if you can read your 25 character Vista product key on the PC.
    Just download the 3 files you need at the link below, and read all of the instructions to create a bootable DVD installation disk using imageburn.
    Disregard the part of the text under the first screen shot about "extract the files to the Vista folder."
    The files were already extracted to that folder when you ran the X14.exe file by reading the text on top of the first screen shot.
    The other thing I noticed is on the 4th screen shot, where it shows Developer ID Microsoft Corporation. I had to type Microsoft Corporation in myself, and then the other codes automatically populated.
    When I went to compile the ISO file, ImageBurn gave a message that about a WIM file and ISO, and if I wanted to burn it in a different format.
    I selected No, make the ISO file.
    It was not that hard to do. I burned both the 64 bit disk and the 32 bit disk in case I ever need them.
    I tested both of them an my hp dc7100 CMT desktop PC, they worked perfectly.
    When you enter the product key, it knows what version of Vista you have.
    http://en.community.dell.com/support-forums/software-os/w/microsoft_os/3317.2-3-microsoft-windows-v....
    After you successfully install Vista, you can then install the drivers from your PC's support and driver page.
    Paul

  • Processing Pattern Example not working?

    I am trying to run the Processing Pattern example for the first time. I'm using the .cmd files provided with the example.
    The server starts up without error and its logs show loading some Processing Pattern TaskProcessor classes:
    2010-09-28 14:30:47.616/4.839 Oracle Coherence GE 3.5.2/463 <Info> (thread=Thread-4, member=1): Starting dispatcher Task Dispatcher Class:com.oracle.coherence.patterns.processing.dispatchers.AbstractDispatcher
    2010-09-28 14:30:47.632/4.855 Oracle Coherence GE 3.5.2/463 <Info> (thread=SimpleEventDispatcher:Thread-2, member=1): DefaultTask Processor Definition Manager starting Class:com.oracle.coherence.patterns.processing.internal.task.DefaultTaskProcessorDefinitionManager
    2010-09-28 14:30:47.632/4.855 Oracle Coherence GE 3.5.2/463 <Info> (thread=Thread-4, member=1): Starting dispatcher Local Dispatcher Class:com.oracle.coherence.patterns.processing.dispatchers.AbstractDispatcher
    2010-09-28 14:30:47.632/4.855 Oracle Coherence GE 3.5.2/463 <Info> (thread=ReplicatedCache:ReplicatedServiceForProcessingPattern:EventDispatcher, member=1): Registering TaskProcessorDefinition TPD:{Identifier{GridTaskProcessor},Grid Task Processor,GRID} Class:com.oracle.coherence.patterns.processing.dispatchers.task.DefaultTaskDispatcher$1
    2010-09-28 14:30:47.663/4.886 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:DistributedServiceForProcessingPattern:EventDispatcher, member=1): TaskProcessorMediator inserted TPSK:{Identifier{GridTaskProcessor},1} Class:com.oracle.coherence.patterns.processing.dispatchers.task.DefaultTaskDispatcher$2
    2010-09-28 14:30:47.663/4.886 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:DistributedServiceForProcessingPattern:EventDispatcher, member=1): TaskProcessorMediator inserted TPSK:{Identifier{SingleTaskProcessor},0} Class:com.oracle.coherence.patterns.processing.dispatchers.task.DefaultTaskDispatcher$2
    2010-09-28 14:30:47.679/4.902 Oracle Coherence GE 3.5.2/463 <Info> (thread=ReplicatedCache:ReplicatedServiceForProcessingPattern:EventDispatcher, member=1): Registering TaskProcessorDefinition TPD:{Identifier{SingleTaskProcessor},Single Task Processor,SINGLE} Class:com.oracle.coherence.patterns.processing.dispatchers.task.DefaultTaskDispatcher$1
    However, when I attempt to run the example I'm getting a runtime error:
    "C:\Java\jdk1.5.0_14"\bin\java -Dtangosol.coherence.clusterport=COH_OPTSCLUSTER_PORT -Dtangosol.coherence.cacheconfig=coherence-processingpattern-cac
    he-config.xml -Dtangosol.pof.config=file:/C:\temp\coherence-incubator-examples-1.1.1.14471\resource\processingpattern\examples-pof-config.xml -Dtangos
    ol.coherence.log=C:\temp\coherence-incubator-examples-1.1.1.14471\bin\..\log\PiCalculationSample-9001.log -Dtangosol.coherence.cacheconfig=C:\temp\coh
    erence-incubator-examples-1.1.1.14471\resource\processingpattern\processing-cache-config.xml -Dtangosol.coherence.distributed.localstorage=false -cp C
    :\temp\coherence-incubator-examples-1.1.1.14471\bin\..\lib\coherence-common-1.6.1.14470.jar;C:\temp\coherence-incubator-examples-1.1.1.14471\bin\..\li
    b\coherence-commandpattern-2.6.1.14471.jar;C:\temp\coherence-incubator-examples-1.1.1.14471\bin\..\lib\coherence-functorpattern-1.3.1.14471.jar;C:\tem
    p\coherence-incubator-examples-1.1.1.14471\bin\..\lib\coherence-messagingpattern-2.6.1.14471.jar;C:\temp\coherence-incubator-examples-1.1.1.14471\bin\
    ..\lib\coherence-pushreplicationpattern-2.6.1.14471.jar;C:\temp\coherence-incubator-examples-1.1.1.14471\bin\..\lib\coherence-processingpattern-1.2.1.
    14471.jar;"C:\tools\Coherence-3.5.2"\lib\coherence.jar;C:\temp\coherence-incubator-examples-1.1.1.14471\bin\..\classes -Xms256m -Xmx256m com.oracle.c
    oherence.examples.incubator.processingpattern.task.PiCalculationSample
    Testing PI calculation
    Using the Incubator Extensible Environment for Coherence Cache Configuration
    Copyright (c) 2010, Oracle Corporation. All Rights Reserved.
    java.lang.RuntimeException: Storage is not configured
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.onMissingStorage(DistributedCache.CDB:9
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.addMapListener(DistributedCache.CDB:59)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.addMapListener(DistributedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.addMapListener(SafeNamedCache.CDB:12)
    at com.tangosol.coherence.component.util.SafeNamedCache.addMapListener(SafeNamedCache.CDB:47)
    at com.oracle.coherence.patterns.processing.internal.DefaultProcessingSession.<init>(DefaultProcessingSession.java:218)
    at com.oracle.coherence.examples.incubator.processingpattern.task.PiCalculationSample.executeSample(PiCalculationSample.java:75)
    at com.oracle.coherence.examples.incubator.processingpattern.task.PiCalculationSample.main(PiCalculationSample.java:56)
    The server log shows an error also after I attempt to run the example:
    *2010-09-28 14:32:54.322/131.545 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:DistributedServiceForProcessingPattern, member=1): Service DistributedServiceForProcessingPattern joined the cluster with senior service member 1*
    *2010-09-28 14:32:57.740/134.963 Oracle Coherence GE 3.5.2/463 <Info> (thread=ClientLeaseCoordinator:Thread-5, member=1): Restarting NamedCache: coherence.patterns.processing.taskprocessormediator*
    *2010-09-28 14:32:58.614/135.837 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:06.232/143.455 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:13.850/151.073 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:21.452/158.675 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:29.054/166.277 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:36.656/173.879 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:44.258/181.481 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.*
    *2010-09-28 14:33:51.766/188.989 Oracle Coherence GE 3.5.2/463 <Error> (thread=PacketListenerN, member=1): Stopping cluster due to unhandled exception: com.tangosol.net.messaging.ConnectionException: Unable to refresh sockets: [UnicastUdpSocket{State=STATE_OPEN, address:port=10.100.153.51:8088}, MulticastUdpSocket{State=STATE_OPEN, address:port=224.3.5.2:8087, InterfaceAddress=10.100.153.51, TimeToLive=4}, TcpSocketAccepter{State=STATE_OPEN, ServerSocket=10.100.153.51:8088}]; last failed socket: MulticastUdpSocket{State=STATE_OPEN, address:port=224.3.5.2:8087, InterfaceAddress=10.100.153.51, TimeToLive=4}*
    *     at com.tangosol.coherence.component.net.Cluster$SocketManager.refreshSockets(Cluster.CDB:91)*
    *     at com.tangosol.coherence.component.net.Cluster$SocketManager$MulticastUdpSocket.onInterruptedIOException(Cluster.CDB:9)*
    *     at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:33)*
    *     at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)*
    *     at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)*
    *     at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)*
    *     at java.lang.Thread.run(Thread.java:595)*
    Caused by: java.net.SocketTimeoutException: Receive timed out
    *     at java.net.PlainDatagramSocketImpl.receive0(Native Method)*
    *     at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)*
    *     at java.net.DatagramSocket.receive(DatagramSocket.java:712)*
    *     at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)*
    *     at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)*
    *     at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)*
    *     at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)*
    *     at java.lang.Thread.run(Thread.java:595)*
    Has anyone had similar experiences? Any advice to help me understand and get this going would be appreciated.
    Thanks !!

    I have same problem.
    Midi trigger patern correctly. When trying idividual souds, it works but running sequencer do not trigger sound.
    HW MacBook Pro (model 2008)
    Soudcard: MOTU 828, M-Audio ozonic, internal speaker
    Midi: Korg nanoPad, Roland Fantom, m-audio Ozonic,
    I invesigate and i found out this:
    1)
    When open MainStage and automaticaly load Concert, pres midi key - no sound
    Then I close just concert not MainStage, open recent concert (same), press midi key - seq playing, soud works
    2)
    Switch of automatic loading last opened Concert, quit and start MainStage, open Concert manualy and no sound.
    Close concert, open again, soud works
    3)
    Switch automatic concert loading on, open MainStage - no sound
    Open preferences, audio / change buffer size, hit applay - sound works
    4)
    Setup previous buffer size, change routing to buffer
    Restart MainStage, no sound, change routing back to output - no sound
    Change audio driver to System Setting - sound works - system setting goes to same soundcard
    Restart MainStage - no sound
    Change system sound output to Internal Speaker - no sound
    Change system sound output to soundcard - sound works
    5)
    Preferences - change audio to System settings, switch off I/O Safety Buffer - below Buffer Size setting
    Restart Mainstage - SOUND WORKS
    Restart MainStage again - SOUD WORKS

  • Upgraded LV7 to 8.2.1 and List Folder pattern does not work anymore as it did

    Hi
    I have upgraded LV7 to 8.2.1 and use XP.
    In a vi developed in LV7 I used the List Folder with pattern input to check wether a file name already exist in a folder  (path). This worked very well in LV 7 as the function return the filename if the exisiting filename matched the pattern input. In 8.2.1 this fucntion still exists but it does not return the filename as it used to do which is rather annoying.
    Has anybody else experienced this ie is it a bug? or is the operation of the function changed?
    Thanks in advance for the help.
    Cheers
    Jack

    Hi Jack,
    I can understand your frustration..   We had a thread complaining about the changes when it was first introducted.  Now that I'm used to it, I wouldn't go back..
    However, you can keep all versions of Labview installed on the same PC, meaning that Labview versions 7.0, 7.1, 8.0, 8.2, 8.5 can all happily co-exist on the same PC.  The benefit is that you can use the original version that you developped your code and continue to enhance the code using the original version without having to adapt to the newer version.  However, going up versions should be compatible, unless you are adding new features.
    There is one catch in what I described.  And you must keep a backup copy of your code.  If you open an older version using a newer version and save it, you cannot open it again in your older version, unless you use Save As Previous.  For that reason, it is best to keep an extra copy somewhere (which is always good practice anyway).
    Hope this helps,
    RayR

  • JTree expand programatically is not working

    jTree1.fireTreeExpanded(curTreePath);
    expandAll(jTree1, curTreePath, true);
    jTree1.expandPath(curTreePath);
    jTree1.scrollPathToVisible(curTreePath);
    jTree1.updateUI();
    jTree1.setExpandsSelectedPaths(true);
    jTree1.expandPath(curTreePath);
    expandAll(jTree1, curTreePath, true);
    for (int i = 0; i < jTree1.getRowCount(); i++)
    jTree1.expandRow(i);
    jTree1.validate();
    jTree1.repaint();
    Any help ?

    package so;
    ToDo list
    * Log timestamp and line number of at every exception.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import java.sql.*;
    import java.io.*;
    import java.net.*;
    import java.util.Enumeration;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import javax.swing.tree.*;
    public class SCM extends javax.swing.JFrame implements javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeWillExpandListener
        Connection con = null;
        java.sql.Statement stmt = null;
        ResultSet rs = null;
        PrintStream log = null;// File creation at local system, to record events, actions, errors and traces
        javax.swing.tree.TreePath curTreePath = null;
        /** Creates new form SCM */
        public SCM()
            //---------------------- Native LookandFeel Windows is expected.-------------------//
            try
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception e)
                System.out.println("Error setting native LAF: " + e);
            //******************** Native LookandFeel Windows is expected.*******************//
            // initialising GUI containers and controls
            initComponents();
            TableCellRenderer defaultRenderer;
            defaultRenderer = jTable1.getDefaultRenderer(JLabel.class);
            jTable1.setDefaultRenderer(JLabel.class, new Label_cell(defaultRenderer));
            setState(javax.swing.JFrame.HIDE_ON_CLOSE);
            jfc.setEnabled(false);
            this.setSize(1024, 740);
            jTree1.setSize(400, this.getWidth() / 4);
            jTree1.setRootVisible(false);
            jTree1.addTreeWillExpandListener(this); // Registering jTree1 to Expand listener.
            jTree1.setCellRenderer(new TreeIconRenderer());
            try
                //-------Preparing Logger----------------//
                FileOutputStream fos = new FileOutputStream(new File(System.getProperties().getProperty("user.home") + System.getProperties().getProperty("file.separator") + "SCM-Log_" + System.currentTimeMillis()));
                log = new PrintStream(fos);
                log.println("Started Time\t\t:" + new java.util.Date().getTime());
                //*******Preparing Logger****************//
                // Initialising jTree1 with the userid and preparing the xml and loading jTree1 with xml content,
                // and expected to repeat the same while refreshing.
                //----- Rendering images for the folders and files i.e. nodes and leaves of this tree
                jTree1 = new XMLTree("215");
                //******** Rendering images for the folders and files i.e. nodes and leaves of this tree
                //Selection can only contain one path at a time, i.e. user is confined to reffere to only one node
                //or leaf at a time
                //jTree1.getSelectionModel().setSelectionMode(javax.swing.tree.TreeSelectionModel.SINGLE_TREE_SELECTION);
                this.setTitle("ZIIC-ITG SCM");// Title can be changed at any time.
            catch (IOException ioe)
                ioe.printStackTrace(log);   //logging Exception.
                //This is first level action and to be decided to go further or not by exit(0);.
        public boolean prepareCon() throws ClassNotFoundException
            try
                if (con != null && !con.isClosed())
                    return true;
                else
                    Class.forName("oracle.jdbc.driver.OracleDriver");
                    java.sql.DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                    con = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@172.16.1.31:1521:soadb", "dms", "dms");
                    if (con != null && !con.isClosed())
                        return true;
            catch (java.lang.ClassNotFoundException cnfe)
                cnfe.printStackTrace(log);
            catch (SQLException se)
                se.printStackTrace(log);
            if (con != null)
                return true;
            else
                return true;
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents()
            jPopupMenu1 = new javax.swing.JPopupMenu();
            jSplitPane1 = new javax.swing.JSplitPane();
            jScrollPane1 = new javax.swing.JScrollPane();
            try
                jTree1 = new XMLTree("215");
                jScrollPane2 = new javax.swing.JScrollPane();
                jTable1 = new javax.swing.JTable();
                menuBar = new javax.swing.JMenuBar();
                fileMenu = new javax.swing.JMenu();
                openMenuItem = new javax.swing.JMenuItem();
                saveMenuItem = new javax.swing.JMenuItem();
                saveAsMenuItem = new javax.swing.JMenuItem();
                exitMenuItem = new javax.swing.JMenuItem();
                editMenu = new javax.swing.JMenu();
                cutMenuItem = new javax.swing.JMenuItem();
                copyMenuItem = new javax.swing.JMenuItem();
                pasteMenuItem = new javax.swing.JMenuItem();
                deleteMenuItem = new javax.swing.JMenuItem();
                helpMenu = new javax.swing.JMenu();
                contentsMenuItem = new javax.swing.JMenuItem();
                aboutMenuItem = new javax.swing.JMenuItem();
                //setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            }catch(Exception e){}
            jTree1.setDoubleBuffered(true);
            jTree1.setDragEnabled(true);
            jTree1.setEditable(true);
            jTree1.setFocusTraversalPolicyProvider(true);
            jTree1.setInheritsPopupMenu(true);
            jTree1.setInvokesStopCellEditing(true);
            jTree1.setLargeModel(true);
            jTree1.setMaximumSize(new java.awt.Dimension(250, 64));
            jTree1.setPreferredSize(new java.awt.Dimension(200, 64));
            jTree1.setVerifyInputWhenFocusTarget(false);
            jTree1.addMouseListener(new java.awt.event.MouseAdapter()
                public void mouseClicked(java.awt.event.MouseEvent evt)
                    jTree1MouseClicked(evt);
            jTree1.addTreeExpansionListener(new javax.swing.event.TreeExpansionListener()
                public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
                    jTree1TreeCollapsed(evt);
                public void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
                    jTree1TreeExpanded(evt);
            jTree1.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener()
                public void valueChanged(javax.swing.event.TreeSelectionEvent evt)
                    jTree1ValueChanged(evt);
            jScrollPane1.setViewportView(jTree1);
            jSplitPane1.setLeftComponent(jScrollPane1);
            jScrollPane2.setAutoscrolls(true);
            jScrollPane2.setDoubleBuffered(true);
            jScrollPane2.setFocusCycleRoot(true);
            jScrollPane2.setFocusTraversalPolicyProvider(true);
            jScrollPane2.setInheritsPopupMenu(true);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][]
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null}
                new String []
                    "Title 1", "Title 2", "Title 3", "Title 4"
            jTable1.addMouseListener(new java.awt.event.MouseAdapter()
                public void mouseClicked(java.awt.event.MouseEvent evt)
                    jTable1MouseClicked(evt);
            jScrollPane2.setViewportView(jTable1);
            jSplitPane1.setRightComponent(jScrollPane2);
            fileMenu.setText("File");
            openMenuItem.setText("Open");
            fileMenu.add(openMenuItem);
            saveMenuItem.setText("Save");
            fileMenu.add(saveMenuItem);
            saveAsMenuItem.setText("Save As ...");
            fileMenu.add(saveAsMenuItem);
            exitMenuItem.setText("Exit");
            exitMenuItem.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    exitMenuItemActionPerformed(evt);
            fileMenu.add(exitMenuItem);
            menuBar.add(fileMenu);
            editMenu.setText("Edit");
            cutMenuItem.setText("Cut");
            editMenu.add(cutMenuItem);
            copyMenuItem.setText("Copy");
            editMenu.add(copyMenuItem);
            pasteMenuItem.setText("Paste");
            editMenu.add(pasteMenuItem);
            deleteMenuItem.setText("Delete");
            editMenu.add(deleteMenuItem);
            menuBar.add(editMenu);
            helpMenu.setText("Help");
            contentsMenuItem.setText("Contents");
            helpMenu.add(contentsMenuItem);
            aboutMenuItem.setText("About");
            helpMenu.add(aboutMenuItem);
            menuBar.add(helpMenu);
            setJMenuBar(menuBar);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void jTree1ValueChanged(javax.swing.event.TreeSelectionEvent evt)
        try
            curTreePath = evt.getPath();
            //curTreePath.getPathCount();
            //selectedNode = stPath.getPathComponent(stCount - 1);
            //TODO add your handling code here:
            if (prepareCon())
                javax.swing.tree.TreePath path = evt.getPath();
                DMETreeNode node = (DMETreeNode) path.getLastPathComponent();
                try
                    if (node != null && (node.getSerial() + "").length() > 0)
                        //stmt = con.createStatement();
                        stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                        rs = stmt.executeQuery("select serial, description, file_location, status, sheet,  part, approvedby, locked, location, created_by from dms_files where owner=" + node.getSerial());
                        SCM_Tbl_model model = new SCM_Tbl_model();
                        model.setRs(rs);
                        //jTable1.setColumnModel(columnModel);
                        jTable1.setModel(model);
                        TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(model);
                        jTable1.setRowSorter(sorter);
                catch (Exception e)
                    e.printStackTrace();
            catch (ClassNotFoundException ex)
                ex.printStackTrace(log);
                Logger.getLogger(SCM.class.getName()).log(Level.SEVERE, null, ex);
        private void jTree1MouseClicked(java.awt.event.MouseEvent evt)
        // TODO add your handling code here:   
        if (evt.getButton() == evt.BUTTON3)
            jPopupMenu1.removeAll();
            javax.swing.JMenuItem expandMI = new javax.swing.JMenuItem("Expand");
            javax.swing.JMenuItem expandAllMI = new javax.swing.JMenuItem("Expand All");
            javax.swing.JMenuItem find_folderMI = new javax.swing.JMenuItem("Find Folder");
            final javax.swing.JMenuItem new_folderMI = new javax.swing.JMenuItem("New Folder");
            javax.swing.JSeparator separator1 = new javax.swing.JSeparator();
            jPopupMenu1.setSize(100, 200);
            jPopupMenu1.add(expandMI);
            jPopupMenu1.add(expandAllMI);
            jPopupMenu1.add(separator1);
            jPopupMenu1.add(find_folderMI);
            jPopupMenu1.add(new_folderMI);
            jPopupMenu1.setVisible(true);
            jPopupMenu1.show(evt.getComponent(), evt.getX(), evt.getY());
            //expandToLast(jTree1);
            //jTree1.scrollPathToVisible(curTreePath);
            //jTree1.fireTreeExpanded(curTreePath);       
            ActionListener menuOnTree = new ActionListener()
                        public void actionPerformed(ActionEvent e)
                            if (e.getSource().equals(new_folderMI))
                                    DMETreeNode ch=new DMETreeNode("Child of "+((DMETreeNode)curTreePath.getLastPathComponent()).toString());   
                                    ((DMETreeNode) curTreePath.getLastPathComponent()).add(ch);
                                    jTree1.fireTreeExpanded(curTreePath);
                                    expandAll(jTree1, curTreePath, true);
                                    jTree1.expandPath(curTreePath);
                                    jTree1.scrollPathToVisible(curTreePath);
                                    jTree1.updateUI();
                            if (e.getActionCommand().trim().equalsIgnoreCase("Expand"))
                                jTree1.setExpandsSelectedPaths(true);
                                jTree1.expandPath(curTreePath);
                                expandAll(jTree1, curTreePath, true);
                                for (int i = 0; i < jTree1.getRowCount(); i++)
                                    jTree1.expandRow(i);
                                jTree1.validate();
                                jTree1.repaint();
                                System.out.println(((DMETreeNode) curTreePath.getLastPathComponent()).getSerial());
                                expandToLast(jTree1);
                                System.out.println(jTree1.getModel().getRoot().toString());
                                ((XMLTree)jTree1).expandAll(true);
                                expandToLast(jTree1);
            expandMI.addActionListener(menuOnTree);
            expandAllMI.addActionListener(menuOnTree);
            find_folderMI.addActionListener(menuOnTree);
            new_folderMI.addActionListener(menuOnTree);
    public void expandAll(JTree tree, boolean expand)
            TreeNode root = (TreeNode) tree.getModel().getRoot();
            // Traverse tree from root
            expandAll(tree, new TreePath(root), expand);
        private void expandAll(JTree tree, TreePath parent, boolean expand)
            // Traverse children
            TreeNode node = (TreeNode) parent.getLastPathComponent();
            if (node.getChildCount() >= 0)
                for (Enumeration e = node.children(); e.hasMoreElements();)
                    TreeNode n = (TreeNode) e.nextElement();
                    TreePath path = parent.pathByAddingChild(n);
                    //System.out.println(path.toString());
                    expandAll(tree, path, expand);
            // Expansion or collapse must be done bottom-up
            if (expand)
                tree.expandPath(parent);
            else
                tree.collapsePath(parent);
    public void expandToLast(JTree tree)
            // expand to the last leaf from the root
            DefaultMutableTreeNode root;
            root = (DefaultMutableTreeNode) tree.getModel().getRoot();
            tree.scrollPathToVisible(new TreePath(root.getLastLeaf().getPath()));
            //System.out.println(""+root.getLastLeaf().getPath().toString());
        public void expandToLast(JTree tree)
            TreeModel data = tree.getModel();
            Object node = data.getRoot();
            if (node == null)
                return;
            TreePath p = new TreePath(node);
            while (true)
                int count = data.getChildCount(node);
                if (count == 0)
                    break;
                node = data.getChild(node, count - 1);
                p = p.pathByAddingChild(node);
            tree.scrollPathToVisible(p);
        private void jTree1TreeExpanded(javax.swing.event.TreeExpansionEvent evt)
        // TODO add your handling code here:
            System.out.println("@447");
        private void jTree1TreeCollapsed(javax.swing.event.TreeExpansionEvent evt) {                                    
        // TODO add your handling code here:
        private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {                                            
            System.exit(0);
        @SuppressWarnings("static-access")
        private void jTable1MouseClicked(java.awt.event.MouseEvent evt)                                    
            // TODO add your handling code here:
            jPopupMenu1.removeAll();
            jPopupMenu1.setVisible(true);
            //Prepare Menu items based the event and the user, and the item clicked on i.e.
            javax.swing.JMenuItem menuItem = new javax.swing.JMenuItem("Add A doc", KeyEvent.VK_T);
            jPopupMenu1.add(menuItem);
            ActionListener al = new ActionListener()
                        public void actionPerformed(ActionEvent e)
                            jfc.updateUI();
                            jfc.showOpenDialog(jTable1);
                            jTable1.setValueAt(jfc.getSelectedFile().getAbsolutePath(), jTable1.getSelectedRow(), jTable1.getSelectedColumn());
                            jfc.setDialogTitle("Choose only fmx files");
                            try
                                if (jfc.getSelectedFile().getAbsolutePath() != null)
                                    java.io.File f = new java.io.File(jfc.getSelectedFile().getAbsolutePath());
                                    if (f.exists())
                                        // Start FTP process.
                                        SCM_FTP ftp = new SCM_FTP();
                                        ftp.connect("ziicsrv11", 21, "z11902", "ziicit");
                                        ftp.bin();
                                        // Change to a new working directory on the FTP server.
                                        ftp.cwd("bin");
                                        // Upload some files.
                                        log.println("FTP Start: " + System.currentTimeMillis());
                                        ftp.stor(f);
                                        ftp.disconnect();
                                        log.println("FTP Done: " + System.currentTimeMillis());
                            catch (java.io.IOException ioe)
                                log.println("File is not Found");
                                ioe.printStackTrace(log);
            menuItem.addActionListener(al);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));
            menuItem.getAccessibleContext().setAccessibleDescription("This doesn't really do anything");
            jPopupMenu1.setSize(100, 200);
            if (evt.getButton() == evt.BUTTON3)//evt.isPopupTrigger()
                jPopupMenu1.show(evt.getComponent(), evt.getX(), evt.getY());
         * @param args the command line arguments
        public static void main(String args[])
            java.awt.EventQueue.invokeLater(new Runnable()
                        public void run()
                            SCM s = new SCM();
                            s.setVisible(true);
                            //s.setState(s.HIDE_ON_CLOSE);
                            s.setAlwaysOnTop(true);
                            SystemTrayTest st = new SystemTrayTest();
                            st.setControl(s);
                            st.showFrame();
        // Variables declaration - do not modify                    
        private javax.swing.JMenuItem aboutMenuItem;
        private javax.swing.JMenuItem contentsMenuItem;
        private javax.swing.JMenuItem copyMenuItem;
        private javax.swing.JMenuItem cutMenuItem;
        private javax.swing.JMenuItem deleteMenuItem;
        private javax.swing.JMenu editMenu;
        private javax.swing.JMenuItem exitMenuItem;
        private javax.swing.JMenu fileMenu;
        private javax.swing.JMenu helpMenu;
        private javax.swing.JPopupMenu jPopupMenu1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JSplitPane jSplitPane1;
        private javax.swing.JTable jTable1;
        private javax.swing.JTree jTree1;
        private javax.swing.JMenuBar menuBar;
        private javax.swing.JMenuItem openMenuItem;
        private javax.swing.JMenuItem pasteMenuItem;
        private javax.swing.JMenuItem saveAsMenuItem;
        private javax.swing.JMenuItem saveMenuItem;
        // End of variables declaration                  
        private javax.swing.JFileChooser jfc = new javax.swing.JFileChooser();
        public void treeExpanded(TreeExpansionEvent event)
        public void treeCollapsed(TreeExpansionEvent event)
        public void treeNodesChanged(TreeModelEvent e)
        public void treeNodesInserted(TreeModelEvent e)
        public void treeNodesRemoved(TreeModelEvent e)
        public void treeStructureChanged(TreeModelEvent e)
        public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException
        public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException
    }

  • Photoshop CS6 -Win, original purchased disc does not work. What are the options ?

    After spending a frustrating hour trying to make sense of this issue and making phone calls to the appropriate number, I still have a non-working CD version of Photoshop CS6/Win that will not load. The disc is obviously corrupted. What happens now, as this program is now required. This place appears to be the only way I can get any assistance from Adobe regarding this issue.

    You can try downloading the cs6 installer from here:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • Why is pattern maker not working?

    I am trying to make a pattern using pattern maker (cs3), but the pattern maker option is grayed out. Any ideas? I've tried various things: different file formats, new layers, new files, selected areas, unselected areas, etc. What am I missing?! I can't seem to do anything that allows me to access pattern maker. Thanks!

    Check the bit depth and image mode of your document.
    For example, the pattern maker is not available for images in the 16 bits/channel
    image mode. It works best for images in the RGB color mode and 8 bits/channel.
    MTSTUNER

  • "Create New Swatch" not working in Indesign CS5

    Suddenly, I am no longer able to create a process swatch by clicking on "new Swatch" on the swatch menu swatch. When I click this
    window comes up and the PMS list is over the procees color boxes and i cant input anything. To work around I have been creating the Process colors and them dragging them to the swatch palatte, but this is annoying. Any Idea how to fix this problem?

    Trash your prefs. See Replace Your Preferences

  • Audio drivers for Compaq C770LA for Win XP Pro / integrated mic not working

    Hello. I have downgraded a Compaq C770LA to Win XP Pro SP3. Almost everything seem works perfect, but I have tried several audio drivers and still can´t get to control or use the integrated mic which this notebook has. I can hear audio and even record, etc, but there is no way to use or get to the integrated mic and some of the volumen controls I was used to (as "Record whats been listened") are lost. Does anybody knows wheter I have to change the driver or if it´s going to be any difference if I install for example the smartaudio add-on? I tried HP but they replied they don´t provide drivers for notebook for Operating Systems other than the one they gave the notebook with.
    Thanks in advance for any clue!

    Try XP downgrade guide, here
    Your model is in Part 2.
    Pavilion DV2922TX, XP-SP3 32bit, Intel T5750 2.0Ghz, Nvidia Geforce 8400M GS with 128MB, 4GB 667 DDR2, 250GB HDD

Maybe you are looking for

  • RMAN duplicate target using set until telling me it can not find data files

    I have RMAN scripts that I use freqently to clone a database from DB (production) to another (non-prod). These work just fine. I use the set until so that I can tell it at what point I want the new DB to be created from the backups of the source. I h

  • How can I get my serial number for my iPad from Apple?

    My iPad 1 was stolen and I need the serial number but the box is not available to me at this time. Does Apple have the serial number?

  • Button opens link in a new window

    Hello everyone, This is a rather simple question for all gurus out there, but it seems a bit hard to find on documentation. How can you open a link in a new window with a button in a flash form? I want a button on my form to pop a new window with a s

  • WebDAV Navigation and Japanese

    Hi All, I have an English Windows XP with the following settings within Control Panel -> Regional and Language Options: 1. Regional Options tab's Standards and Formats is set to Japanese. 2. Languages tab has had "Install files for East Asian languag

  • Help Resynch Contacts and Calendar

    I just recently reformatted my C drive and it seems like all my contacts and calendar events in outlook express got erased. I do have all of them still on my iphone though. Is there any way to put the contacts and calendar events back onto the comput