Vectors - editing objects

If i have an object and 2 vectors like below:
obj O = new obj;
vector V1 = new Vector();
vector V2 = new Vector();
if i then add the obj to both vectors
V1.add(O);
V2.add(O);
then later on if i return O from V1 and edit it, eg.
obj temp = (obj) V1.get(i);
if i edit temp, does this affect ) which has been added to V2 also?

yepHow?
// Author:           Annie the Looney
import java.util.*;
class Test3
     public static void main(String[] a){
          Test3 x = new Test3();
          x.test();
     public void test(){
          ArrayList one = new ArrayList();
          ArrayList two = new ArrayList();
          Person p = new Person("Annie");
          one.add(p);
          two.add(p);
          p = new Person("walker");
          one.add(p);
          two.add(p);
          System.out.println("Collection one");
          for(int i=0;i<one.size();i++){
               System.out.println(one.get(i));
          System.out.println("Collection two");
          for(int i=0;i<two.size();i++){
               System.out.println(one.get(i));
          for(int i=0;i<one.size();i++){
               p = (Person)one.get(i);
               p.setName("nobody");
          System.out.println("Collection one");
          for(int i=0;i<one.size();i++){
               System.out.println(one.get(i));
          System.out.println("Collection two");
          for(int i=0;i<two.size();i++){
               System.out.println(one.get(i));
          System.out.println("what happened to annie");
     private class Person{
          private String name;
          public Person(String name){
               this.name = name;
          public void setName(String name){
               this.name = name;
          public String toString(){
               return "I am a person named "+name;

Similar Messages

  • Program error when attempting to edit a vector smart object. Help?

    I'm running Photoshop CS6 (13.0.1) 64bit on a MacBook Pro running OS X Lion. About 60% of the time when I try to double click a vector smart object instead of opening it up in Illustrator I get an error that says, "Could not edit original smart object because of program error." This most recent time it was a smart object from vector data I copied and pasted from Illustrator into Photoshop.
    Any idea why this is happening and how I can fix it?
    Thanks.

    Hi there, 
    I got this problem when I installed Adob master collection Over CS 5.
    I had children book story storis which created in Adobe illustrator CS 5 and I created art boards in Adobe photoshop cs 5.
    After installting CS 6 i tried to edit the smart objects and it was not opeinging the smart object file in Illustrator.
    I did some tests.
    1) Right click on smart object layer and click export contents. Save on desktopp or anywhere you want. (I saved on desktop)
    2) I had this file on my desktop (Vector Smart Object10.ai) but it didn't show any icon, which program should open this type of file.
    3) Double click on the file and it pop up a extension window 'Click on change and select adobe illustrator' and press OK.
    4) Go back to your photoshop file and right click on smart object layer and click dit content. now this time it opens up assets in illustrator.
    ENJOY!
    www.4d-studios.co.uk

  • Flv player is opening vector smart objects instead of illustrator.

    How do I re-associate vector smart objects in Photoshop to open in Illustrator as they did before the update?

    Editing smart objectrs uses the system wide associations, not the ones from Bridge, so you need to adjust that for the *.ai file type.
    Mylenium

  • Vector smart object? Big deal.

    My primary use for Photoshop is for producing illustrations rather than manipulating photographs. With that in mind, I don't understand the revolutionary nature of "Vector" Smart Objects, since once they land in Photoshop they cease to have any "vector" qualities. They can be resized, distorted, and made more or less transparent, which is fine, but all those things can be done to any raster Photoshop layer.  So my feature request is: since Photoshop's Path tool  can deal in vector art within Photoshop, why can't that facility be extended to the Smart Objects? I realize that what I am asking amounts to asking for Illustrator to be installed inside Photoshop, but why not? I think there was an app that worked that way-Deneba Canvas? I don't know, maybe only illustrators who work in both Photoshop and Illustrator would care about this, but I do a lot of it-produce an item in Adobe Illustrator for use in a picture, then copy and paste it into a scanned figure opened in Photoshop, then add shadows and tones. It would be helpful to be able to manipulate the vector art as vector art in Photoshop.

    ya, you  have to open it up in ai like the above post said if you want to edit it. but also one of the advantages to smart objects is that when you resize it, the quality remains unchanged as long as it is equal to or smaller than the original size. for example, if you design a button in illustrator, then you put it on a web page in photoshop and scale it down and hit enter, you can always make it bigger (up to original size) without losing quality. if you did this with a regular raster image you cannot size it up without losing quality.
      the reason you cannot edit the vectors in photoshop is that vector and raster are different types of files. it's kindof like trying to edit videos in photoshop. just wont work. it'd be cool if you could though because i am in your shoes too.

  • Illustrator CC crashing during Vector Smart Object save

    I have a user who is running Adobe CC under Yosemite  on a new 5K iMac.
    After a few weeks of no issues she is suddenly unable to open Vector Smart Objects from Photoshop into Illustrator and save them after editing.
    Illustrator crashes as soon as she tries to save.

    Do you mean that you are double clicking on placed smart object and you get the error. Is the smart object originally from Illustrator and does Illustrator open open?
    Would help to know more detail about EXACTLY when your error happens and far you get. This way we can determine if you have a file association problem, memory problem, corrupt font/image problem.

  • Vector smart object from PS to AI

    Hi...
    System: Win XP, CS4
    Is it possible to copy a vector smart pbject from PS to AI? Note from PS to AI? HAve tried dragging and dropping... it doesn't seem to work.

    If I'm understanding your original question, this answer is not correct. I had the same question as your original. "copying a vector smart object from PS to AI?"
    This is the problem I was having and I only found one way to solve it. Would love it if someone could give me a quicker workflow. My solution seem tedious.
    RECAP:
    Problem: Vector object was originally created in photoshop and I want to bring it into AI as vector art.
    Answer:
    1. Convert the "vector object" in Photoshop to a "Smart Object" by selecting the layer, then go to Layer > Smart Objects > Convert to Smart Object
    2. Double-click on the smart object's icon in the layers palette. This opens the object in a new Photoshop window
    3. Choose File > Export > Paths to Illustrator... (Note: With the smart object layer selected, you can switch over to the "Paths" tab and see your object's editable path and name)
    Again, I may have misunderstood your original question, but what I've listed here is the only way I've been able to bring a vector object originated in Photoshop over to Illustrator. Pain in the ***.

  • Understanding Vector Smart Objects in PSD

    I'm trying to learn to use Smart Objects in PS to edit files created in AI. I watched the Adobe TV video as well as a few others. It seems easy as pie. But one thing confuses me. What is the file that gets created called  Vector Smart Object.ai? Do I need to do anything with it? Does it et saved anywhere? I don't see it in the folder in which I've stored my psd and ai file. It just seems to go away when I close everything down. BTW- I'm in cs 6 and am using Place command. Many thanks for helping me to understand this.

    If I am in CS 6, then are you saying I can currently delete the ai file and still be ok - that that is how CS6 & Embedding works?
    Yes. You can easily verify this. Move the used AI file to another location via Explorer/Finder so Photoshop won't find it. Open your PSD file and you will see that Photoshop opens the file just fine because there is no connection any more with the original file.
    And if so - what are the benefits of the Linking compared to the current Embedding - now available in CC? - again - many thanks!
    Say you use the same logo made in Illustrator on many different projects e.g. a letter head, a poster, a business card, whatever. Now your client says: I like all the different layouts but I think I would prefer green text instead of blue text... No problem at all for you, you change it once in the AI file and it will update automatically in all the linked objects.
    Obviously in that case, the AI file can not be deleted or moved or Photoshop (and you) will have a heart attack...

  • Vector Smart Object does not STAY vector.

    When I save my photoshop file as an .eps, I can have all the text from the Photoshop file remain vector, but a Vector Smart Object does not remain vector. Is there a way to have it remain vector?

    While that is true, there are great limitations to the current scenario. I came up using quark for layout and while it is a great typesetting program and has tried really hard to improve its functionality in terms of color management, type effects, pdf export, alpha transparency, etc., it certainly cannot do what what photoshop can in these areas. I made the switch to InDesign several years ago but hated the learning curve with it. I already knew quark and found myself struggling to use InDesign like quark. Now I am back to the old Quark, Photoshop, Illustrator paradigm. Illustrator is another great program that i am fluent in and use daily, but it is easier to do a lot of things in photoshop in terms of image manipulation, etc. So then you are back to the Photoshop plus 1 scenario, only now using Illustrator as your layout program. (quark is still better than this)
    The thing that I hate the most is always having to decide which program best suits each design and also trying to explain my reasoning with others that work with me. For example, If i were doing an image-heavy design with some type that required drop shadows or any other raster effect, i would save a layered tif as my working file (the compression saves space) and an eps for placement in the layout program (to retain the vector type) but heaven forbid i also want to use a vector logo in that design. Now i have my editable tif, my vector/raster eps and my logo. Oh wait, the client wants to move everything around 10 times? OK now i am opening, saving, nudging, opening, saving etc.
    so in essence, show me a layout program that is image saavy as photoshop or an image manippulator that is as vector and type saavy as quark or indesign. Is that really so much to ask? We have paid over and over again for minor versions of all of these programs. I think i photoshop is the front-runner in terms of meeting my needs, at least for single page documents. i love smart objects (vector and raster) double clicking to edit and never having to worry about where one is saved or what color format its in is sweet!! i would just like photoshop to parse reasonably complex vectors and output them.
    It parses complex type just fine, even with drop shadows! OK rant over. Nap time.

  • Vector  smart object

    HI
    been sent a psd file whic h contains a background layer plus a layer with a vector mart object on it ( made in illustrator)
    I want of use that vector smart  object in another psd  but the drag toa tabbed documetn option does not work.Neither do I see an option to  copy the VSO
    is there a way to do it?
    I though abut opening the PSD in illustrator and going forward that way is that possible
    thanks
    Ian

    Have you tried untabbing the windows?
    Edit:
    I though abut opening the PSD in illustrator and going forward that way is that possible
    That would hardly seem to make sense, Layer > Smart Object > Export Contens and then placing the resulting file would be an option.

  • Embedded Vector smart object fails to update after saving swatch library in Illustrator

    I am using Photoshop CC 2014 and Illustrator CC 2014 on MacOS 10.9.5
    I originally posted this in the Photoshop forum, but it was suggested that I try posting it here since Illustrator is likely to be the culprit.
    To cause this issue;
    1 - Paste an Illustrator into Photoshop as a Vector Smart Object
    2 - Edit content with that object selected
    3 - in Illustrator, save a swatch library in AI format
    4 - Make a change to the object so that you can save changes, then save
    5 - Switch back to Photoshop and let the vector smart object update
    You will see the following image:

    V:
    I'm calling troll on your behind, mister.
    Neil's the moderator and here you are wide-eyed (wha??). If you didn't know that how can you comment on the culture here. The culture I see is people coming here with their problems and then copping an attitude. Always the same. And "the usual suspects" always rise to the same bait. But plonk them all you want. Many here have tried and failed to clean up things. I have found the "attitude" here quite justified much of the time.
    - i have 20 years experience so adobe's an idiot
    - why can't the software work the way I want
    - i don't have problems in any other software so it must be adobe
    - those who question me on these forums are derisive idiots
    - etc etc
    After a while you will also be familiar with this attitude. MO's right, hopefully soon Adobe will have a sandbox forum for (lame) folks to speak with a few quiet ones responding in their second (or third) written language the scripts they've been supplied. And half the time they'll lick em good. But you and I will still be here getting shat on for our moxy. For our overwhelming intelligence.

  • Duplicate, but unique Vector Smart Object?

    If I duplicate a Vector Smart Object and "Edit Contents", the changes show up in both layers.
    How can I create a unique duplicate of a Vector Smart Object so if I "Edit Contents" of one layer, it won't affect the other?
    CS6 here.

    Use command New Smart Object Via Copy. It's in Layer > Smart Objects submenu and in right-click menu of a SO's name in Layers panel.

  • Is there an "Edit Object Tool" in Acrobat 11?

    Is there an "Edit Object Tool" in Acrobat 11 that is comparable to the Edit Object Tool in Acrobat 10 and earlier versions?  Has it been discontinued, or split into 2 loosely connected tools, the new Edit Text and Images Tool?
    I love the new Edit Text Tool in Acrobat 11, but the old Edit Object Tool in Acrobat 10 and earlier versions was great when I wanted to resize a block of objects.  The old Edit Object Tool would resize both text and graphic objects, but not everything like form fields, although there are limited workarounds like printing the file to pdf to flatten it and then resizing, but doing so will discard the form fields.
    When using the old Edit Object Tool to resize a group of objects that contain text, it will scale the text in proportion to everything else in the selection.  The new Edit Text and Images Tool in Acrobat 11 does not resize or scale the text.  It does change the size of the text containers, but the text does not resize.
    There are situations where it is valuable to resize a group of objects that contain both text and images, but I can't get the new tool to do it, or I'm not operating the tool correctly.  Is this functionality gone in version 11, or am I doing something wrong or using the wrong tool?
    I initially upgraded both of my laptop workstations from Acrobat 10 to 11, but have now gone back to running Acrobat 10 on one machine and Acrobat 11 on the other so I can realize the great new functionality of the new Acrobat 11 Text Tools without losing the valuable functionality of the Edit Object Tool in earlier versions.
    I posted a 5 star positive review on Amazon at:
    http://www.amazon.com/review/R3GAQNISK3WR4S/ref=cm_cr_pr_viewpnt#R3GAQNISK3WR4S
    but I might have to drop it to 4 stars if the old functionality has been discarded
    Clarification or guidance would be appreciated.

    Dave, Thank you for the accurate and effective information.  I added the icon to my toolbar.

  • Is it possible to export Vector Smart Objects as vector SVG files from Photoshop CC 2014?

    I have Vector Smart Objects copied from Illustrator and pasted into Photoshop. I would like to export them as vector SVG files (using Generator or Extract Assets). I can add the .svg extension to the layer and actually export an SVG just fine. The problem is any SVG I have exported have all been raster images. It defeats the purpose of having that as an option as far as I'm concerned.
    I remember watching and listening to keynotes and other speakers at Adobe MAX 2014 who said it was so powerful and amazing to create SVG files from Photoshop. If we're still exporting raster SVG files from Photoshop...that's not very impressive or exciting--especially since this era of modern web development benefits greatly from using vector SVG files.
    I understand that Shape Layers can be exported as vector SVG files but that seems very limiting. I also realize that users can create some impressive vectors in Photoshop, but that is not optimal. Illustrator is a better tool for creating vectors and I normally use Photoshop and Illustrator side-by-side. I know that vector SVG files can be exported from Illustrator but that isn't as user friendly and convenient as utilizing Photoshop > Generator > Reflow.
    My idea was to create my assets in Illustrator, paste them into Photoshop as Vector Smart Objects, set up my layout, and then use the Generator/Reflow method or Extract Assets to get a new web design started.
    Maybe I misunderstood what the speakers at Adobe MAX had said. Perhaps it's just user error and I'm just missing something simple (it happens).
    Photoshop CC 2014 notes the following under Help > System Info:
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Any help or suggestions would be greatly appreciated! Thank you in advance for your time.

    Not quite the same, but have a look at the new Libraries feature that came with 2014.2.2  I just tried it, and dragging a vector object into a library I created in Photoshop, was there in Illustrator.  This happens without having to close and reopen Illustrator.  Just use the drop down at the top of the Libraries panel (in Illustrator) to find your custom, or job specific library.

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • Error in editing Object Form

    Hi,
    After submitting the request for an application when i click on edit to make some changes in web console the form for editing pops out. When i change the field values and again submit am getting an error like 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. This happens only for applications which are having a child form. Please let me know the solution for this issue. Thanks in advance.
    Regards,
    Durgaprasad

    I have given permission to all users in the object from. This problem is not happening for all applications. Only for applications which are having child form the problem is there. When i debugged the custom UI code the error displayed in console is 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. Thanks.

Maybe you are looking for

  • Crystal Reports 2008 and Sharepoint Services in 64bit

    Hi, I have searched and post questions about the problems with the fact that thera are no great support for 64 bit. And still no solution. Why? Why? Why? Now to my question. I have Crystal Reports 2008 in a Windows 2008 64 bit. Yes, I have got it run

  • Flags in mail

    I'm having trouble in Mail with the flagging feature.  I had a bunch of emails flagged.  I have since removed the flags, but they still show up in the "flagged" smart mailbox.  When I looked at them in there they are no longer flagged though.  In the

  • The file "iTunes Library.itl" cannotn be read

    Issue: The file "iTunes Library.itl" cannotn be read because it was created by a newer version of iTunes. Tried the following: 1) Moved iTunes Library.itl out of iTunes folder and restarted iTunes. 2) Plugged in ipod, canceled sync and 2a) Transferre

  • How can i add an oper group

    i want to add an oper group after i installed. i know it is set during installation. but can i do this after i have installed oracle database that is i define two groups dba group (as sysdba) and oper group (as sysoper) as i want to different users f

  • Using DML in PLsql

    Hi, Can DML queries like insert into be executed in PLSQL? I have below code, it is a part of a procedure BEGIN -- Start entering LOG messages from here xxmck.mck_write_log_msg.get_log_params('GLTD',gv_prog_src); IF gv_prog_src = 'NOTASKSUB' THEN --