Help with copying frames

Hi,
Thanks in advance for spending some time helping me with this issue. Im new to the Flash world
I am actually designing a website and need to copy frames from one page to another. The problem is that after pasting the frames in a different location I dont seem to be able to edit it without having the original frame change. Is there anyway I can copy frames (animation, buttons etc) and still be able to edit them without having the original frame change?
My intention is two have multiple pages with the same basic design but slight modification on each page.
Thanks

copy frame 1 to frame 2.
make a list of all the library objects in frame 2.  (anything else that's not in your library (like shapes) you can edit in frame 2 and they won't change in frame 1).
in your library, right click on one of the objects you noted in you list, click duplicate, click ok.  (you may as well accept the default name for now.)
do the same for all the objects in your list.
now, click on one of the objects in frame 2 to select it.  in the properties panel click swap and select the duplicate.  do the same for all the frame 2 objects.
you can now (or anytime after they were created) edit the duplicate objects.  frame 2 will reflect those changes.  frame 1 will not.

Similar Messages

  • Combining APEX help with a frame-like TOC html help system (I used DITA)

    Problem:
    The APEX page-oriented help system is bad at helping users find how to do something. I prefer to use a task-oriented help system for that, with a table of contents that users can browse around in. I like the DITA (Darwin Information Typing Architecture) system's topic based help with its ideas of tasks, concepts and references. But, I also like the context-based feel of a page-based help system and the way that the APEX help system automatically aggregates all of the item-based help on a page for you.
    My Solution:
    I'm no html genius, so this may be totally wrong, but what I did was to create a task oriented html user guide that also included a page based help TOC entry for each page. I then used iframes in the APEX help page to allow me to have a TOC always showing with links that controlled a content "pane," but still also display the automatically-generated item help for the page help is called from.
    * Downloaded the DITA open toolkit (http://sourceforge.net/projects/dita-ot ), full package distribution and installed using the user guide (http://dita-ot.sourceforge.net/doc/ot-userguide131/xhtml/ )
    * Downloaded and installed XMLmind XML editor free personal edition version ([http://www.xmlmind.com/xmleditor/download.shtml]). I'm not endorsing this thing, but it's free and it works great out of the box for editing DITA files.
    * Created an html user guide by modifying the garage sample that's included with the DITA open toolkit and publishing to xhtml (I also published to pdf2, by the way, to provide a printable user guide for my users to download...one of the nice things about DITA). I set up my files so that they would all be in a topics subfolder, rather than the standard task, concept, and reference folders of the example. I did this so that I wouldn't have to worry about linking to a different folder from APEX (more on that later). I made a concept topic for each page of my application with the filename "Concept_About_page_X.dita," where X is the APEX page number.
    * I run APEX using Oracle Application Server 10g, so I uploaded the files to a subdirectory of their own in the i/ folder on the OAS server. In my case this was APPSERVER_HOME/apache/apache/images/doc/MyAppHelp/
    * The DITA toolkit generates html pages that look for a CSS called commonltr.css, located at the same level as the index.html file. I copied my APEX theme's CSS file to that same place and renamed it commonltr.css (in my case that was APPSERVER_HOME/apache/apache/images/themes/theme_13/theme_V3.css). Now, the proper thing to do would be to configure DITA to point at the real location of the theme's CSS, I guess. But I didn't want to figure out how to do that at this point.
    * Now, in APEX, I deleted all of the page-level help text from my pages, since I had now duplicated this information into the DITA page concept topics. Instead, on each page I put
    * On the help page (the page that you create when you're first setting up Help in APEX, mine is page 50), I added the following iframe tags in the header text of the page: \\      <iframe src="../../i/doc/gradevalhelp/index.html" width="40%" height="50%" align="left"></iframe><iframe name="contentwin" src="../../i/doc/gradevalhelp/topics/Concept_About_page_&REQUEST..html" width="60%" height="50%" align="right"></iframe><br> \\      Note the <br> at the end. I had to put that in to prevent the item level help from printing over my content iframe. Again, someone who knows something about html could probably tell you the right way to do that. The DITA toolkit generates a base tag (<base target="contentwin"/>) in the head section of the index.html file, to make the target of the TOC links be the content frame. Notice how I use it to map the links in the first iframe to the second iframe on the APEX help page, by naming the second frame "contentwin". Notice how the &REQUEST. Substitution string is used to present the proper DITA html file. I also tried setting it up to use a calculated hidden item that looks up the page alias for the requesting page; this had the advantage of allowing me to name my DITA files using page alias instead of page number, but it was too slow.

    Look at all the apdiv's you have.  Those are absolutely positioned layers.  I'm assuming by your post that you are very new to Dreamweaver and HTML and CSS.  I would highly recommend not using absolutely positioned layers until you have a better grasp on HTML and CSS.
    Looking at your code I would suggest that you consider using one of Dreamweaver's built in, or downloadable templates as a starting point and work from there. 
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html

  • Help with Printing Frames

    I am trying to print frames, but all that prints out right now is a blank page. Here is the code I have:
    public void actionPerformed(ActionEvent e) {
       if(e.getActionCommand().equals("print")){
          PrintJob pj = getToolkit().getPrintJob(frame,"Printing",null);
          if (pj!=null){
          Graphics pg = pj.getGraphics();
             printAll(pg);
             pg.dispose();
          pj.end();
    }Anyone know how to fix this or have any simple source code to print frames?

    copy frame 1 to frame 2.
    make a list of all the library objects in frame 2.  (anything else that's not in your library (like shapes) you can edit in frame 2 and they won't change in frame 1).
    in your library, right click on one of the objects you noted in you list, click duplicate, click ok.  (you may as well accept the default name for now.)
    do the same for all the objects in your list.
    now, click on one of the objects in frame 2 to select it.  in the properties panel click swap and select the duplicate.  do the same for all the frame 2 objects.
    you can now (or anytime after they were created) edit the duplicate objects.  frame 2 will reflect those changes.  frame 1 will not.

  • Help with copying SP List data to SQL Server

    I need to read some data from a SP list and copy it to a table in SQL Server.
    Visual Studio  BIDS 2013. SharePoint 2010. Planning to migrate to 2013 this year. I tried to use the
    SP Data source/destination adapter with SSIS, but learned that I can't with Visual Studio 2013. I'm really looking for any way to read data from a SP list and import it into a SQL database (SQL 2014). Haven't found anything online that has worked for me the
    way they say it should (such as OData connection in SSIS). Maybe it's version issues.
    Does anyone have a solid step-by step to do this? I am not a C# developer...

    Hi,
    According to your description, my understanding is that you want to read SharePoint list data and copy it to SQL Server table.
    Hatim's option is a way to achieve it manually.
    If you want to do it automatically, I suggest you can create a console application to read SharePoint list using CAML Query and Client Object Model, Then use SqlConnection object to connect database, then you can insert record using SqlCommand object.
    Here are some detailed code demos for your reference:
    http://www.codeproject.com/Articles/399156/SharePoint-Client-Object-Model-Introduction
    https://msdn.microsoft.com/en-us/library/ms233812.aspx
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Can anyone help with copying a movie?

    I am trying to copy my HD camcorder movie (9.5 Gb) on to a16 gb SD card. When dragging and dropping the message 'The operation cannot be completed because an unexpected error occurred (error code 0). comes up.
    I've also tried 'Export movie' in Imovie. When trying that, a window appears saying 'exporting movie' and runs for a while then disappears. However nothing goes to the SD card.
    Can anyone out there help me please?

    I'm not an expert in this forum and have no idea as to the error message but the problem lay lie in how the card is formatted. FAT16 and FAT32 are common formats for off the shelf cards but have file size limits of 2 and 4 GB respectively. They may be able to hold 16GB but an individual file is size limited unless you use a different format. If you're just using this card as a storage device for a Mac then format it to Mac extended. If you're still trying to use it with a third party device then likely those won't work with Mac extended and we'd have to have more details on what you're doing and your configuration in order to provide assistance.

  • Need help with inserting frame with scrolling images

    Hi,
        Im a beginner and need help putting a single box/frame with scrolling images in the middle of my layout, so that when viewed in browser, the header and footer remain in place, while the images and info in the frame in the centre of the page can be scrolled down/up?

    You can use an iframe element <iframe src="" width="" height="" scrolling="yes"> though if you're concerned with crawlers you should avoid frames as much as possible. 

  • Help with putting Frame inside Frame

    I have created two Frames: one with the code that works with the buttons (StudentsFile) and the second as a Tabbed Frame (TabbedPaneDemo).
    I want to put StudentsFile into one of the tabs. The files compile but when I run TabbedPaneDemo the window that is created in StudentsFile comes up but it is not in the Tabbed window. What Am I doing wrong?
    Any assistance would be appreciated.
    This is the portion of the TabbedPaneDemo where I put in the StudentsFile into Panel 1.
    public class TabbedPaneDemo extends JPanel {
        public TabbedPaneDemo() {
            super(new GridLayout(1, 1));
            JTabbedPane tabbedPane = new JTabbedPane();
            ImageIcon icon = createImageIcon("middle.gif");
            JComponent panel1 = makeTextPanel("Panel #1");      
           StudentsFile simpleTable = new StudentsFile();
            tabbedPane.addTab("Report", simpleTable);
            tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
            JComponent panel2 = makeTextPanel("Panel #2");
            tabbedPane.addTab("Tab 2", icon, panel2,
                    "Does twice as much nothing");
            tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
            JComponent panel3 = makeTextPanel("Panel #3");
            tabbedPane.addTab("Tab 3", icon, panel3,
                    "Still does nothing");
            tabbedPane.setMnemonicAt(2, KeyEvent.VK_3);
            JComponent panel4 = makeTextPanel(
                    "Panel #4 (has a preferred size of 410 x 50).");
            panel4.setPreferredSize(new Dimension(410, 50));
            tabbedPane.addTab("Tab 4", icon, panel4,
                    "Does nothing at all");
            tabbedPane.setMnemonicAt(3, KeyEvent.VK_4);
            //Add the tabbed pane to this panel.
            add(tabbedPane);
            //The following line enables to use scrolling tabs.
            tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        }This is the portion of the StudentsFile where I setup the Frame.
    public class StudentsFile extends JFrame
         //Sets Size of Frame
         private static final int WIDTH = 450;
         private static final int HEIGHT = 450;
         //Declares Text Fields
         private JTextField FNameTF, SIDTF, AddressTF, CityTF, StateTF, TelephoneTF ;
         //Declares Labels
         private JLabel FNameL, SIDL, AddressL, CityL, StateL, sheadingL,  TelephoneL, StatusL;
         //Declares Buttons
         private JButton openB, saveB, shelpB,sexitB, senterB ;
         private ButtonHandler bhHandler;
         //Declares Combobox that will list selections for teacher to select
         private JComboBox Selections;
         //Declares text areas     
         private JTextArea /*SoutputTA,*/ statusTA;
         //Declares filechooser for input/output file
         JFileChooser sfc = new JFileChooser();;
         //Creates object of StudentInformation
         private StudentInformation Studentdata = new StudentInformation();
    public StudentsFile()
         //sets title and size of frame
         setTitle("Student Entries");
         setSize(WIDTH,HEIGHT);
         setBackground(Color.red);
         //Gets the frame
         Container pane = getContentPane();
         pane.setLayout(null);
         pane.setBackground(Color.yellow);
         //Creates button handler
         bhHandler = new ButtonHandler();
         //creates label to be used on pane
         sheadingL = new JLabel ("Student Information Center",
                        SwingConstants.CENTER);
         //sets the labels
         FNameL     = new JLabel("Student Name");
         SIDL       = new JLabel("Student ID");
         AddressL   = new JLabel("Address");
         CityL      = new JLabel("City");
         StateL         = new JLabel ("State");
         TelephoneL = new JLabel ("Telephone");
         StatusL        = new JLabel ("Status");
         //sets size of text fields
         FNameTF     = new JTextField(30);
         SIDTF       = new JTextField(20);
         AddressTF   = new JTextField(30);
         CityTF      = new JTextField(8);
         StateTF     = new JTextField(30);
         TelephoneTF = new JTextField(20);
         //sets size of text area to display status to teacher
         statusTA = new JTextArea(3, 10);
         //sets title of buttons and creates action listener
         openB = new JButton("Open");
         openB.addActionListener(bhHandler);
         saveB = new JButton("Save");
         saveB.addActionListener(bhHandler);
         senterB = new JButton ("Enter");
         senterB.addActionListener(bhHandler);
         shelpB = new JButton ("Help");
         shelpB.addActionListener(bhHandler);
         sexitB = new JButton ("Exit");
         sexitB. addActionListener(bhHandler);
         //Options that will appear in combo box
         String selection[] = {"Choose From The Available Options ",
                        "Add Student","Search for Student", 
                        "Edit Student Record","Delete Student Record"};
         Selections = new JComboBox(selection);
         //sets size of labels, text fields, buttons
         sheadingL.setSize(200,30);
         StatusL.setSize(50,20);
         SIDL.setSize(100,30);          
         SIDTF.setSize(200,30);       
         FNameL.setSize(100,30);          
         FNameTF.setSize(200,30);     
         CityL.setSize(100,30);          
         CityTF.setSize(200,30);          
         AddressL.setSize(100,30);     
         AddressTF.setSize(200,30);     
         StateL.setSize(100,30);          
         StateTF.setSize(200,30);     
         TelephoneL.setSize(100,30);     
         TelephoneTF.setSize(200,30);          
         statusTA.setSize(370, 30);
         Selections.setSize(400,30);
         openB.setSize(80,30);
         saveB.setSize(80,30);          
         shelpB.setSize(80,30);
         sexitB.setSize(80,30);
         senterB.setSize(80,30);
         //sets location of labels, text fields, buttons on frame
         sheadingL.setLocation(110,20);
         FNameL.setLocation(70,110);
         FNameTF.setLocation(170,110);
         SIDL.setLocation(70,140);
         SIDTF.setLocation(170,140);
         AddressL.setLocation(70,170);
         AddressTF.setLocation(170,170);
         CityL.setLocation(70,200);
         CityTF.setLocation(170,200);
         StateL.setLocation(70,230);     
         StateTF.setLocation(170,230);
         TelephoneL.setLocation(70,260);
         TelephoneTF.setLocation(170,260);
            StatusL.setLocation(30, 300);
         statusTA.setLocation(30, 330); 
         Selections.setLocation(20,60);
         openB.setLocation(20,370);     
         saveB.setLocation(100,370);
         senterB.setLocation(180,370);          
         shelpB.setLocation(260,370);
         sexitB.setLocation(340,370);
         //adds labels, text fields, buttons to pane
         pane.add(sheadingL);
         pane.add(SIDL);
         pane.add(SIDTF);
         pane.add(FNameL);
         pane.add(FNameTF);
         pane.add(AddressL);
         pane.add(AddressTF);
         pane.add(CityL);
         pane.add(CityTF);     
         pane.add(StateL);
         pane.add(StateTF);
         pane.add(TelephoneL);
         pane.add(TelephoneTF);
         pane.add (Selections);
         pane.add (openB);
         pane.add (saveB);
         pane.add (shelpB);
         pane.add (sexitB);
         pane.add(StatusL);
         pane.add(statusTA);
         pane.add(senterB);
         setVisible(true);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    I haven't looked at all of your code, but I do see that you are trying to put a JFrame, which is a root container into a JTabbedPane, and this just cannot be done. It would be better to refactor your StudentsFile class to extend a JPanel, and then you can add it to a JTabbedPane.
    Oh, and please ask these types of questions in the Swing forum.

  • Help with copy list item workflow in SPD 2013

    Hello
    i just can't find anywhere to help me on the web with workflows, I am very new to this.
    I have 2 custom lists.
    First list, 3 columns:
    'date received' (date)
    'student name' (text field)
    'hearing' (yes/no)
    When a new item is added, I enter text for student name and the date. Then I set 'hearing' to yes or no. 
    If yes, I would like a workflow to copy the student name for to the second list.
    In the second list, I have 2 columns (so far):
    'student name' (text field)
    'student number' (text field)
    I just have no idea where to start to do this. Could someone please help?
    Thanks.
    Mel

    Hi ,
    If you mean that you don't want to create duplicate items in list2 when you edit the item in list1 mutiple time, you can try adding another "if" condition contained within your above "if" block to determin if the current
    item "student name" equals to "student name" from list2, if yes then update the that item in list2, if no, then crate a new item in list2.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Help with Master frame placeholders

    Hi.
    I'm using IDCS3 v5.0.2 on windows vista SP 1
    Im using facing pages with facing masters, which only differ on the left and right header title. I placed graphic frame placeholders in both left and right pages of a master, that I used to place content (images) in the document pages. All works fine and I can move things on that master with exact results in the pages assign by it. The problem comes when I move or add another page, then the page graphics (images) get detached from the master frame placeholders, and Im no longer able to control them from the masters.
    Any help would be much appreciated
    Regards

    Yes you're right, it works ok when i add pages in pairs.
    Maybe I can also disable the "allow pages to shuffle" command and add pages one by one? This way it works too.

  • Help with copying contents of file to link list please

    Hi,
    Below is a snippet of code I am playing with. As you can see I have created a LinkList, I now need to copy the contents of a csv file in to that list. The file is several lines long and I need each line in the list.
    I know how to add to the list manually i.e.,
    list.add("First entry in list");
    Could someone help me out with this please.
    Many thanks.
    (***CODE***)
    private LinkedList list = new LinkedList();
         public LinkTest()
              // ** List content START **
              // Open the file today.csv
              File inFile = new File("C:\\today.csv");
         // Create a file stream, wrapping the file
         FileReader fileReader = new FileReader(inFile);
         // Create a second wrapper,
    BufferedReader bufReader = new BufferedReader(fileReader);
         // Read in the first line...
         String s;
         s = bufReader.readLine();
         list.add(s);
         StringTokenizer st = new StringTokenizer(s);
         while (st.hasMoreTokens())
    System.out.println(st.nextToken());
         // ** List content END **
         

    I looked at your code and I thought, what's the question for, it's already adding lines to the list. And then I looked again and had the same thought. The third time I looked I noticed you didn't code the loop that read all the lines from the file. Silly me, I thought your question had something to do with linked lists.
    Anyway, to answer your real question, which is how do you read all the lines from a text file:while ((s = bufReader.readLine()) != null) {
      // do something with the String s here
      // such as adding it to a linked list
    }

  • Help with repeating frame delay

    I have this movie in which basically a screen is supposed to come on, hold for 15 seconds, move to the next one, (a little bit of tween in between) hold for 15 seconds, move to the next one, etc. But the whole time there is also a button which enables the viewer to go to the next screen before the 15 seconds have elapsed.
    My initial solution for this was to just put in a lot of frames to make them last 15 seconds, but with many such instances repeating it becomes really hard for me to navigate the flash timeline.
    So I've found several scripts that would allow me to pause a frame, but they all have the same bug. For example, a frame action like this:
    stop();
    function wait() {
    play();
    clearInterval(myInterval);
    myInterval = setInterval(wait, 15000);
    It works fine the first time, and works fine if you don't touch the "play" button, but if you click it a few times, after a few times the screens no longer wait 15 seconds to move on, but start moving at random intervals.
    I found that script (and several similar ones which behave the same way) in some forum somewhere, but I noticed the posts were all very old. I haven't been able to find if newer action scripts and flash players support some better tricks to do this?
    Anyone know a workaround, some way to get all those frames to pause in their own time without their intervals piling up and messing each other up? Maybe some action to put into the "play" button? Or into the frame?
    Anything other than inserting endless amounts of identical frames into the timeline.
    Here's my flash file if you'd like to take a look. It's very basic, I admit I'm not very avid in flash. It's Flash8:
    https://www.yousendit.com/download/WTNMeEVRTXYzeUkwTVE9PQ
    and the swf:
    https://www.yousendit.com/download/WTNMeEVTTk04aU0wTVE9PQ
    I'll really appreciate every help. Even if i need newer flash, all advice welcome.

    I don't know if I did something wrong but I get this error when I do that:
    **Error** Scene=Scene 1, layer=navigation, frame=1:Line 1: Statement must appear within on handler
         autoAdvanceF();
    Total ActionScript Errors: 1      Reported Errors: 1
    I mean I only put
    autoAdvanceF();
    into the button action, nothing else...
    is something else supposed to go with it?
    I don't know action script, I just sort of paste stuff and sometimes it works.
    EDIT
    sorry I'm an idiot.
    on (release) {
        autoAdvanceF();
    ok got that now.
    but when I do that what you said, put that first code into the first frame action, and that second code into the button action, the movie doesn't play at all
    Message was edited by: tinathpot

  • Help with using frames for animation

    I am using frames to animate webpage using fireworks 4 (I
    know, hopelessly outdated). I seem to have two different
    collections of frames that interact- one for the main image, and
    one for the slice I'm trying to animate as a GIF. I can't seem to
    change the time delay for each frame when I'm editing the slice.
    What can I do to make this work?

    Yep you have answered your own question.
    Choose export, file export and click the scale images option, and original options (assuming they are already jpegs).
    (As you say exporting as webpage creates the page for you but can create images in two sizes (thumnails and main) which can be helpful. The downside the that the filenames for the images as numeric. 1.jpg, 2.jpg etc.)
    While a longer process and with no direct control over file size and quality I prefer the file export option as above. It preserves filenames and quality is fine.
    and do choose 'original' as you should avoid re-saving a jpeg as a jpeg (that causes a quality reduction)
    You will need to manually bring the images into your web pages (save the exported images into your site folder and bring each one into your page individually) unless you are very clever with filenaming!
    Hope this helps.
    M.

  • Help with copying files into the the Start Menu

    I am trying to copy my application which tracks system usage, such as reboots, temps, etc, I want it when it first runs, to copy it self into the the programs folder and the start up folder. However I get the error ""FileCopy: destination file is unwriteable: ""......Anyone have an idea why I get this error? Is there away around it? Thanks for any and all help
    *Copying on a Mac works fine
    *I am currently Testing it on a copy of Windows Xp
    *I havenot Tested Vista or 7 Yet.
    Hers the class which I call to copy my program
    class FileCopy {
         String OS="";
         String username;
         String dir;
         String name="Test.jar";
         String MAC="Mac OS X";
         String WinXp="Windows XP";
         String WinVista="Windows Vista";
         String Win7="Windows 7";
         JFrame errorWin;
         FileCopy(){
              System.out.println("Enter Copy");
              OS= ManagementFactory.getOperatingSystemMXBean().getName();
              username = System.getProperty("user.name"); 
              if(MAC.compareTo(OS)==0){
                   copyMac();
              else if(WinXp.compareTo(OS)==0){
                   copyWinXp();
              else if(WinVista.compareTo(OS)==0){
                   copyWinVista();
              else if(Win7.compareTo(OS)==0){
                   copyWin7();
              else
                   return;
         private void copyMac(){          
              System.out.println("Enter Mac Copy");
              System.out.println("OS:"+OS);
              String s="/Applications/Solitaire.Jar";
              try {
                   copy(name, s);
              } catch (IOException e) {
                   System.out.println("Failed at Mac Copy new");
                   errorWin=new JFrame("Error: Failed at Mac Copy new ");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder
         private void copyWin7(){
              String dir1="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\SolitaireWin7.Jar";
              String dir2="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\SolitaireWin7.Jar";
              try {
                   copy(name, dir1);
              } catch (IOException e) {
                   System.out.println("Failed at Win7 Copy 1");
                   errorWin=new JFrame("Failed at Win7 Copy 1");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder
              try {
                   copy(name, dir2);
              } catch (IOException e) {
                   System.out.println("Failed at Win7 Copy 2");
                   errorWin=new JFrame("Failed at Win7 Copy 2");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder     
         private void copyWinVista(){
              String dir1="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\SolitaireVista.Jar";
              String dir2="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\SolitaireVista.Jar";
              try {
                   copy(name, dir1);
              } catch (IOException e) {
                   errorWin=new JFrame("Failed at Winista Copy 1");
                   System.out.println("Failed at WinVista Copy 1");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder
              try {
                   copy(name, dir2);
              } catch (IOException e) {
                   errorWin=new JFrame("Failed at WinVista Copy 2");
                   System.out.println("Failed at WinVista Copy 2");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder     
         private void copyWinXp(){
              String dir1="C:\\Documents and Settings\\"+username+"\\Start Menu\\Programs\\Solitaire.Jar";
              String dir2="C:\\Documents and Settings\\"+username+"\\Start Menu\\Programs\\Startup\\Solitaire.Jar";
              try {
                   copy(name, dir1);
              } catch (IOException e) {
                   errorWin=new JFrame("Failed at WinXp Copy 1");
                   errorWin.setVisible(true);
                   errorWin.repaint();
                   System.out.println("Failed at WinXP Copy 1");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder
              try {
                   copy(name, dir2);
              } catch (IOException e) {
                   errorWin=new JFrame("Failed at WinXp Copy 2");
                   errorWin.setVisible(true);
                   errorWin.repaint();
                   System.out.println("Failed at WinXP Copy 2");
                   e.printStackTrace();
              } //Moves Jar File to Application Folder     
         public void copy(String fromFileName, String toFileName) throws IOException {
           File fromFile = new File(fromFileName);
           File toFile = new File(toFileName);
           if (!fromFile.exists()){
                errorWin=new JFrame("FileCopy: " + "no such source file: "  + fromFileName);
                   errorWin.setVisible(true);
                   errorWin.repaint();
             throw new IOException("FileCopy: " + "no such source file: "  + fromFileName);
           if (!fromFile.isFile()){
                errorWin=new JFrame("FileCopy: " + "can't copy directory: "
                           + fromFileName);
                   errorWin.setVisible(true);
                   errorWin.repaint();
             throw new IOException("FileCopy: " + "can't copy directory: "
                 + fromFileName);
           if (!fromFile.canRead()){
                errorWin=new JFrame("FileCopy: " + "source file is unreadable: "
                           + fromFileName);
                   errorWin.setVisible(true);
                   errorWin.repaint();
             throw new IOException("FileCopy: " + "source file is unreadable: "
                 + fromFileName);
           if (toFile.isDirectory())
             toFile = new File(toFile, fromFile.getName());
           if (toFile.exists()) {
             if (!toFile.canWrite()){
                  errorWin=new JFrame("FileCopy: destination file is unwriteable: " + toFileName);
                   errorWin.setVisible(true);
                   errorWin.repaint();
               throw new IOException("FileCopy: destination file is unwriteable: " + toFileName);
             System.out.print("Overwrite existing file " + toFile.getName()
                 + "? (Y/N): ");
             System.out.flush();
             BufferedReader in = new BufferedReader(new InputStreamReader(
                 System.in));
             String response = in.readLine();
             if (!response.equals("Y") && !response.equals("y")){
                  errorWin=new JFrame("FileCopy: existing file was not overwritten.");
                   errorWin.setVisible(true);
                   errorWin.repaint();
                  throw new IOException("FileCopy: existing file was not overwritten.");
           } else {
             String parent = toFile.getParent();
             if (parent == null)
               parent = System.getProperty("user.dir");
             File dir = new File(parent);
             if (!dir.exists()){
                  errorWin=new JFrame("FileCopy: destination directory doesn't exist: " + parent);
                   errorWin.setVisible(true);
                   errorWin.repaint();
               throw new IOException("FileCopy: destination directory doesn't exist: " + parent);
             if (dir.isFile()){
                  errorWin=new JFrame("FileCopy: destination is not a directory: " + parent);
                   errorWin.setVisible(true);
                   errorWin.repaint();
               throw new IOException("FileCopy: destination is not a directory: " + parent);
             if (!dir.canWrite()){
                  errorWin=new JFrame("FileCopy: destination directory is unwriteable: " + parent);
                   errorWin.setVisible(true);
                   errorWin.repaint();
               throw new IOException("FileCopy: destination directory is unwriteable: " + parent);
           FileInputStream from = null;
           FileOutputStream to = null;
           try {
             from = new FileInputStream(fromFile);
             to = new FileOutputStream(toFile);
             byte[] buffer = new byte[4096];
             int bytesRead;
             while ((bytesRead = from.read(buffer)) != -1)
               to.write(buffer, 0, bytesRead); // write
           } finally {
             if (from != null)
               try {
                 from.close();
               } catch (IOException e) {
             if (to != null)
               try {
                 to.close();
               } catch (IOException e) {
    }

    That's clearly a security restriction then. You need to assign the JVM's user account enough rights to do so, or to configure any firewall/virusscanner which has possibly blocked it.
    Apart from this, are you aware of the fact that the OS root disk is not per se labeled "C:", that the location of documents is not per se "Documents and Settings", that there exist System#getenv() and System#getProperty() methods to find default system and environment variables and that there is the java.util.prefs API to access the registry? Your application is likely not going to run on any environment.

  • Help With Copying DVD's onto Hard drive PLEASE

    I just need someone to point me in the direction of an easy, fast, dvd decrypter. I already know how to convert files easily but i dont know how to do this. I downloaded one called DVDFab or something but it just copies all the info on the disc. I want one where u can select the specific chapters(or in my case episodes, im copying the twilight zone) that you want copied.
    Your help is greatly appreciated, Thanks

    You can still get it off of doom9.org, you just have to do more than just click the link. They have blocked external referrers from linking right to the downloads.
    Go here:
    http://www.doom9.org/index.html?/software.htm
    The DVD Decrypter link on that page is active and will allow you to get the last version.

  • Need help with copy/paste in CSS

    Hey,
    I am 3 lessons into a Dreamweaver class so that is the extent of my knowledge. For some reason when I copy/paste code from one CSS sheet to another the code is present etc. but when I go back into the HTML file to view the changes, nothing happened. I verified the coding and they are all correct etc. When I cut and paste new code into an HTML file, it works no problem so why is it not accepting the changes in the CSS? It is not even happening when I copy and paste an image. The image has text with it and rules set up but when I copy/paste , the rules don't apply and it has to be reformatted etc. I have even taken the code and manually typed it into the CSS and still nothing. I am beyond stumped with this.
    Can anyone please shed some light on this? Thanks!!

    copy/paste code from one CSS sheet to another the code is present
    So, you confirm that the code you copied is now present in the alternate CSS file, right?
    but when I go back into the HTML file to view the changes, nothing happened.
    To understand this we would need to see a) the code that you pasted into the original CSS file, and b) the HTML on the page.  Can you paste those two snippets into a reply here?
    The remainder of your post suggests to me that you are pasting HTML into a CSS file.  You do know that is not going to work, right?

Maybe you are looking for

  • IMP DB

    i export the full database as a dump file in one location after that i tried to import to another database. my doubt is if i import the database ....the existing database is having datadictionary ,v$views etc.. so wont it clash with the existing syst

  • I cannot find "Acceptance At Origin" in PO

    I have searched previous post as well , but there is no clear answer about this. Some said you could find this in Line Item Delivery tab, but actually I cannot find it.

  • Removing the ibooks harddrive to make it an external harddrive

    Hi there, recently my ibook died (the motherbaord went on it and its too expensive to fix) and I was thinking of removing the ibooks harddrive to make it into an external harddrive, as the hardrive in question has somethings that I need and also it w

  • HD partition questions...

    Hi all, i have questions about the partitioning of the HD. Why one shoud partition the HD? it's really important? and (if yes) how and what is the best option to do that? thanks!

  • Al iniciar premiere me sale esta nota y se cierra.

    Al iniciar premiere me sale este cartel y se cierra. Solamente me abre si inhabilito mi tarjeta grafica. Lo raro es que estaba funcionando, mi tarjeta amd ati hd 7750m es compatible con el premiere, alguien me puede ayudar?