Help with vector

I am creating a scrabble game application for a project.
I have a method, adding letters in a vector as i drop them on the game board, but when i get the toString output of the vector it is not in the proper form.
e.g if i form the word "Education", it prints as [e,d,u,c,a,t,i,o,n] please any suggestions on how to print them as a whole word?
Codes:
private void getwordsRight() {
try {
for (int i = newPos; i < cell.length; i++) {
Component b = cell.getComponent(0);
if (b instanceof JLabel) {
kl = (letterTile) b;
words.add(kl.getLetter());
} catch (Exception e) {
public String getWord() {
String word = "";
return
word = (String)words.toString();

Hi,
I don't know if I understand you right.But I assume by proper form you mean Education.
This is just a demo - HIH
import java.util.*;
public class WordTest
     Vector<Character> v= new Vector<Character>();
     public WordTest()
          v.add('E');
          v.add('d');     
          v.add('u');
          v.add('c');
          v.add('a');
          v.add('t');
          v.add('i');
          v.add('o');
          v.add('n');
     public void displayWord()
          for(int i=0;i<v.size();i++)
             String s= v.get(i).toString();
             System.out.print(s);
               System.out.println();
     public static void main(String[] args)
        WordTest  wt=new WordTest();      
          wt.displayWord();
}Output:
Education
Regards,
Swapnaja

Similar Messages

  • Need help with vectors

    I'm creating Drink objects into my vector (I'm required to use a vector in my program). However everytime a new Drink object is created and added into the vector, the other Drink objects in the previous indexes are somehow made into aliases of the new Drink object. Can anyone help me with this? Here's the case statement in which the program creates a Drink object, parses it with a DrinkParser class, and adds it to the vector:
    case 'A': //Add Drink
                                  drinkInfoPrompt();
                                  drinkList.addElement(DrinkParser.drinkParser(br.readLine()));
                                  break;

    Thank you very much for helping me. Here's my DrinkParser:
    import Drink;
    import java.util.StringTokenizer;
    //=============================//
    //Utility class for creating a //
    //customer from an input string//
    //=============================//
    public class DrinkParser
         static String input, temp;
         static String nameOfDrink; //Drink's Name
         static String typeOfDrink; //Drink's Type
         static double costOfDrink; //Drink's Cost
         static Drink drink = new Drink();
         //Main static method for creating a new customer
         public static Drink drinkParser (String lineToParse)
              input = lineToParse;
              input.trim();
              StringTokenizer tokenizer = new StringTokenizer(input, ":", true);
              //If the first character of the String is not a colon,
              //then program will proceed to tokenizing the first and
              //last name.
              nameOfDrink = tokenizer.nextToken();
              nameOfDrink.trim();
              drink.setDrinkName(nameOfDrink);
              tokenizer.nextToken();//Skips first colon
              typeOfDrink = tokenizer.nextToken();
              typeOfDrink.trim();
              drink.setDrinkType(typeOfDrink);
              tokenizer.nextToken();//Skips second colon
              temp = tokenizer.nextToken();
              temp.trim();
              costOfDrink = Double.parseDouble(temp);
              drink.setDrinkCost(costOfDrink);
              return drink;
         }//end drinkParser method
    }//end class

  • I need help with Vector assignment

    So I am not asking you to do the work unless you really feel giving :)
    This is my task for class..."Redo the programing example Election results so that the names of the candidates and the total votes are stored in Vector objects"
    How do I store them in a vector object. An example would be nice but if you can't help then please keep comments to yourself unless they are constructive.

    public static int binSearch(String[] cNames, String name)
             int first, last;
             int mid = 0;
             boolean found;
             first = 0;
             last = cNames.length - 1;
             found = false;
             while (first <= last && !found)
                mid = (first + last) / 2;
                if (cNames[mid].equals(name))
                   found = true;
                else if (cNames[mid].compareTo(name) > 0)
                   last = mid - 1;
                else
                   first = mid + 1;
             if (found)
                return mid;
             else
                return -1;
           public static void processVotes(Scanner inp,
                                        String[] cNames,
                                        int[][] vbRegion)
             String candName;
             int region;
             int noOfVotes;
             int loc;
             while (inp.hasNext())
                candName = inp.next();
                region = inp.nextInt();
                noOfVotes = inp.nextInt();
                loc =  binSearch(cNames, candName);
                if (loc != -1)
                   vbRegion[loc][region - 1] =
                          vbRegion[loc][region - 1] + noOfVotes;
           public static void addRegionsVote(int[][] vbRegion,
                                          int[] tVotes)
             int i, j;
             for (i = 0; i < tVotes.length; i++)
                for (j = 0; j < vbRegion[0].length; j++)
                   tVotes[i] = tVotes[i] + vbRegion[i][j];
           public static void printHeading()
             System.out.println("  ---------------Election Results"
                             + "--------------\n");
             System.out.println("Candidate           "
                             + "       Votes");
             System.out.println("Name       Region1 Region2 "
                             + "Region3 Region4  Total");
             System.out.println("----       ------- ------- "
                             + "------- -------  -----");
           public static void printResults(String[] cNames,
                                        int[][] vbRegion,
                                        int[] tVotes)
             int i, j;
             int largestVotes = 0;
             int winLoc = 0;
             int sumVotes = 0;
             for (i = 0; i < tVotes.length; i++)
                if (largestVotes < tVotes)
    largestVotes = tVotes[i];
    winLoc = i;
    sumVotes = sumVotes + tVotes[i];
    System.out.printf("%-11s ", cNames[i]);
    for (j = 0; j < vbRegion[0].length; j++)
    System.out.printf("%6d ", vbRegion[i][j]);
    System.out.printf("%5d%n", tVotes[i]);
    System.out.println("\n\nWinner: " + cNames[winLoc]
    + ", Votes Received: "
    + tVotes[winLoc]);
    System.out.println("Total votes polled: " + sumVotes);

  • I need help with vector shapes

    I have created a shape with the pen tool in CS6, I have multiple shapes that I have built into what should be a single shape. Although when the path tool is not on I can see the single shape I can't seem to set a stroke to it which is an important part of the image design. Can anyone help please

    bolo121 wrote:
    I Don't want to path showing in the final visual but I do want the shape to appear as one hole shape and not look like its made up do different parts.
    If you can upload your PSD file and post a link to it so we can get what you have now. We can download it a show you what can be done.  You see a path that has multiple closed sub paths is like a layer stack. Each segment is like a layer in a stack of layers and each layer has a mixing mode. Changing modes and order can radically change shapes the path will produce. Herr you see 5 paths all have the same sub paths but not not all have the same order and modes. The paths look different in the Path palette and the shape made with the are quite different.
    How Photoshop stroke a shape often baffles me Sometime I feel the segment are missing or are extra and should not be there. Its most likely the stacking order and modes. I just can not seem to get a good mind's eye on the stack an modes. I know my brain must be defective in the perfect world how can that be????
    Where is my stroke in this one I sure can not see it. All modes are subtract so Adobe subtracted the stroke I would guess...
    Message was edited by: JJMack

  • Need help with Vector problem

    I'm creating a vector from a recordset, which i will use for paging purposes. I searched the posts for this but didn't find any good answers. Anyway, here's what I have. It's all in the JSP page (at least for now):
         Vector dataVector = new Vector();
         Vector rowVector;
         ResultSetMetaData rsmd = rset.getMetaData();
              int count = rsmd.getColumnCount();
                   while (rset.next() ) {
                        rowVector = new Vector();
                        for (int i = 1; i <= count ; i++) {
                             rowVector.addElement(rset.getObject(i));
                   dataVector.addElement(rowVector);
    %>
    // HTML STUFF
    <%
    for(int a = 0; a <= dataVector.size(); a++) { %>
    <p> <%= dataVector.elementAt(a) %> </p>
    <% } %>
    And I get the following error:
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
         at java.util.Vector.elementAt(Vector.java:417)
         at org.apache.jsp.untitled$jsp._jspService(untitled$jsp.java:116)
         at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107........
    I'm selecing 3 columns from the DB table, for a total of 2 records pulled (It's a test platform). So, any ideas?
    Thanks
    Mike Gernhardt

    size will return the total number of objects within the vector and not the max index of the vector.
    a <= dataVector.size(); a++) { %>
    will obviously throw a runtime exception(
    java.lang.ArrayIndexOutOfBoundsException)
    making it a<dataVector.size(); a++) { %> will take care of the problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • Please Help With A Loop Using Vectors?

    I am developing a swing application and this loop has me completly stumped I have not worked with vectors alot, nut I have never seen this happen in a loop before:
    I am just going to post the loop because that is where this problem is happening.
    What I want to do is loop through CAT X amount of times and
    have an inner loop for SUBCAT X amount of times.
    fs is a formattedString class I have and eventually this text is appended to a JTextArea.
    Here is the Loop:
    Vector CAT = new Vector();
    Vector SUBCAT = new Vector();
    CAT = getCategories(Department);
    for (int i=0; i<CAT.size(); i++){
    String Category = CAT.elementAt(i).toString();
    fs.append("\nCategory: ",11);
    fs.append(Category,65);
    SUBCAT = getSubCategories(Category);
    }//End CATEGORY
    The part where I am completely stumped is, if I comment out the SUBCAT= part then the Text displays fine. If I dont it will just display the first string in the CAT Vector I have done a try and catch to see if there is an exception being thrown but there is none. The getSubCategories() method works fine b/c it is working at other parts of my program. (It Returns a Vector BTW). So commenting it out should really make no difference.
    Can anyone help me with this????
    Thanks in advance

    I will post what my output is in each scenario and maybe you can better understand what I am explaining:
    SCENARIO 1::::::::::::::::::::::::::::
    for (int i=0; i<CAT.size(); i++){
    fs.append("\nCategory: ",11);
    fs.append(CAT.elementAt(i).toString(),65);
    }//End CATEGORY
    Category: A Collars
    Category: Access Door
    Category: Aluminum
    Category: Anchors Drop In
    Category: Bits
    Category: Blades
    Category: Bolts, Nuts, Pins and Rivets
    Category: Bolts, Nuts, Pins, and Rivets
    Category: Canvas Connection
    Category: Caps
    Category: Caulking
    Category: Copper
    Category: Duct Mate
    Category: Ells
    Category: Flat Bar
    Category: Flex Duct
    Category: Galvanized
    Category: Grills
    Category: Insulation
    Category: Iron
    Category: Miscellaneous
    Category: Pipe
    Category: Reducers
    Category: Return Air Panels
    Category: Rings
    Category: Rod
    Category: Slide Gates
    Category: Spin Ins
    Category: Stainless Steel
    Category: Stick On With Damper
    Category: Tape
    Category: TDC
    Category: Tees
    Scenario 2:::::::::::::::::::::::::::::::::
    Category: A Collars
    for (int i=0; i<CAT.size(); i++){
    fs.append("\nCategory: ",11);
    fs.append(CAT.elementAt(i).toString(),65);
    SUBCAT = getSubCategories(CAT.elementAt(i).toString());
    }//End CATEGORY
    Now do you see:
    The SUBCAT = getSubCategories(CAT.elementAt(i).toString()); should not be affecting the loop. It should just be assigning a new Vector to SUBCAT. I know that it is missing the inner loop in this example, but this is how I found out the loops where not working right.

  • Help with encapsulation and a specific case of design

    Hello all. I have been playing with Java (my first real language and first OOP language) for a couple months now. Right now I am trying to write my first real application, but I want to design it right and I am smashing my head against the wall with my data structure, specifically with encapsulation.
    I go into detail about my app below, but it gets long so for those who don't want to read that far, let me just put these two questions up front:
    1) How do principles of encapsulation change when members are complex objects rather than primitives? If the member objects themselves have only primitive members and show good encapsulation, does it make sense to pass a reference to them? Or does good encapsulation demand that I deep-clone all the way to the bottom of my data structure and pass only cloned objects through my top level accessors? Does the analysis change when the structure gets three or four levels deep? Don't DOM structures built of walkable nodes violate basic principles of encapsulation?
    2) "Encapsulation" is sometimes used to mean no public members, othertimes to mean no public members AND no setter methods. The reasons for the first are obvious, but why go to the extreme of the latter? More importantly HOW do you go to the extreme of the latter? Would an "updatePrices" method that updates encapsulated member prices based on calculations, taking a single argument of say the time of year be considered a "setter" method that violates the stricter vision of encapsulation?
    Even help with just those two questions would be great. For the masochistic, on to my app... The present code is at
    http://www.immortalcoil.org/drake/Code.zip
    The most basic form of the application is statistics driven flash card software for Japanese Kanji (Chinese characters). For those who do not know, these are ideographic characters that represent concepts rather than sounds. There are a few thousand. In abstract terms, my data structure needs to represent the following.
    -  There are a bunch of kanji.
       Each kanji is defined by:
       -  a single character (the kanji itself); and
       -  multiple readings which fall into two categories of "on" and "kun".
          Each reading is defined by:
          -  A string of hiragana or katakana (Japanese phoenetic characters); and
          -  Statistics that I keep to represent knowledge of that reading/kanji pair.Ideally the structure should be extensible. Later I might want to add statistics associated with the character itself rather than individual readings, for example. Right now I am thinking of building a data structure like so:
    -  A Vector that holds:
       -  custom KanjiEntry objects that each hold
          -  a kanji in a primitive char value; and
          -  two (on, kun) arrays or Vectors of custom Reading objects that hold
             -  the reading in a String; and
             -  statistics of some sort, probably in primitive valuesFirst of all, is this approach sensible in the rough outlines?
    Now, I need to be able to do the obvious things... save to and load from file, generate tables and views, and edit values. The quesiton of editting values raises the questions I identified above as (1) and (2). Say I want to pull up a reading, quiz the user on it, and update its statistics based on whether the user got it right or wrong. I could do all this through the KanjiEntry object with a setter method that takes a zillion arguments like:
    theKanjiEntry.setStatistic(
    "on",   // which set of readings
    2,      // which element in that array or Vector
    "score", // which statistic
    98);      // the valueOr I could pass a clone of the Reading object out, work with that, then tell the KanjiEntry to replace the original with my modified clone.
    My instincts balk at the first approach, and a little at the second. Doesn't it make more sense to work with a reference to the Reading object? Or is that bad encapsulation?
    A second point. When running flash cards, I do not care about the subtlties of the structure, like whether a reading is an on or a kun (although this is important when browsing a table representing the entire structure). All I really care about is kanij/reading pairings. And I should be able to quickly poll the Reading objects to see which ones need quizzing the most, based on their statistics. I was thinking of making a nice neat Hashtable with the keys being the kanji characters in Strings (not the KanjiEntry objects) and the values being the Reading objects. The result would be two indeces to the Reading objects... the basic structure and my ad hoc hashtable for runninq quizzes. Then I would just make sure that they stay in sync in terms of the higher level structure (like if a whole new KanjiEntry got added). Is this bad form, or even downright dangerous?
    Apart from good form, the other consideration bouncing around in my head is that if I get all crazy with deep cloning and filling the bottom level guys with instance methods then this puppy is going to get bloated or lag when there are several thousand kanji in memory at once.
    Any help would be appreciated.
    Drake

    Usually by better design. Move methods that use the
    getters inside the class that actually has the data....
    As a basic rule of thumb:
    The one who has the data is the one using it. If
    another class needs that data, wonder what for and
    consider moving that operation away from that class.
    Or move from pull to push: instead of A getting
    something from B, have B give it to A as a method
    call argument.Thanks for the response. I think I see what you are saying.. in my case it is something like this.
    Solution 1 (disfavored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              char theKanji = currentKanjiEntry.getKanji();
              String theReading = currentKanjiEntry.getReading();
              // build and show a flashcard based on theKanji and theReading
              // use a setter to change currentKanji's data based on whether the user answers correctly;
    }Solution 2 (favored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              currentKanji.buildAndShowFlashcard(); // method includes updating stats
    }I can definitely see the advantages to this, but two potential reasons to think hard about it occur to me right away. First, if this process is carried out to a sufficient extreme the objects that hold my data end up sucking in all the functionality of my program and my objects stop resembling natural concepts.
    In your shopping example, say you want to generate price tags for the items. The price tags can be generated with ONLY the raw price, because we do not want the VAT on them. They are simple GIF graphics that have the price printed on a an irregular polygon. Should all that graphics generating code really go into the item objects, or should we just get the price out of the object with a simple getter method and then make the tags?
    My second concern is that the more instance methods I put into my bottom level data objects the bigger they get, and I intend to have thousands of these things in memory. Is there a balance to strike at some point?
    It's not really a setter. Outsiders are not setting
    the items price - it's rather updating its own price
    given an argument. This is exactly how it should be,
    see my above point. A breach of encapsulation would
    be: another object gets the item price, re-calculates
    it using a date it knows, and sets the price again.
    You can see yourself that pushing the date into the
    item's method is much beter than breaching
    encapsulation and getting and setting the price.So the point is not "don't allow access to the members" (which after all you are still doing, albeit less directly) so much as "make sure that any functionality implicated in working with the members is handled within the object," right? Take your shopping example. Say we live in a country where there is no VAT and the app will never be used internationally. Then we would resort to a simple setter/getter scheme, right? Or is the answer that if the object really is pure data are almost so, then it should be turned into a standard java.util collection instead of a custom class?
    Thanks for the help.
    Drake

  • Is there a Java utility class to help with data management in a desktop UI?

    Is there a Java utility class to help with data management in a desktop UI?
    I am writing a UI to configure a network device that will be connected to the serial port of the computer while it is being configured. There is no web server or database for my application. The UI has a large number of fields (50+) spread across 16 tabs. I will write the UI in Java FX. It should run inside the browser when launched, and issue commands to the network device through the serial port. A UI has several input fields spread across tabs and one single Submit button. If a field is edited, and the submit button clicked, it issues a command and sends the new datum to the device, retrieves current value and any errors. so if input field has bad data, it is indicated for example, the field has a red border.
    Is there a standard design pattern or Java utility class to accomplish the frequently encountered, 'generic' parts of this scenario? lazy loading, submitting only what fields changed, displaying what fields have errors etc. (I dont want to reinvent the wheel if it is already there). Otherwise I can write such a class and share it back here if it is useful.
    someone recommended JGoodies Bindings for Swing - will this work well and in FX?

    Many thanks for the reply.
    In the servlet create an Arraylist and in th efor
    loop put the insances of the csqabean in this
    ArrayList. Exit the for loop and then add the
    ArrayList as an attribute to the session.I am making the use of Vector and did the same thing as u mentioned.I am using scriplets...
    >
    In the jsp retrieve the array list from the session
    and in a for loop step through the ArrayList
    retrieving each CourseSectionQABean and displaying.
    You can do this in a scriptlet but should also check
    out the jstl tags.I am able to remove this problem.Thanks again for the suggestion.
    AS

  • Need help with a customized interactive web application for  apparel

    Help!!!!
    Hi I am a web designer at beginners stage with web
    devlopment. I am seeking guidance on how to develop a customized
    interactive web application so that the end user can change color
    and patterns of apparel on vector images such as teamsports
    uniforms and tshirts. Once the design is customized to their liking
    they can save it with all of the spec information in a file to
    there desktop or to a database to send to the manufacturer.
    Also looking for a possible way to use a CMS so I can upload
    templates of the garment easily for the end user to customize
    online. Can this be done and if so how? This is an example the kind
    of application I am looking for:
    http://www.dynamicteamsports.com/elite/placeorder.jsp
    I am in desperate need of some brilliant developer to help
    with this.
    Thanks in advance for anyone who is willing to assist or give
    me guidance,
    Danka
    "Reap what you sew"

    some parts of that are doable using non-advanced skills, but
    will be difficult and unwieldly if there are more than a few
    colors/patterns.
    saving the image to the server is a bit more advanced and
    you're going to need some server-side scripting like php, perl, asp
    etc. in addition to some flash programming ability.

  • Need help with something...

    Hey guys, need some help with this, try to keep up with me here...
    I opened up illustrator cs4 and drew individual items (three items) and drew all three on one artboard and saved it as a standard .AI file.
    On each of the three items, one at a time I used the selection tool and selected each one and went to Edit>Copy in Illustrator.
    Opened photoshop cs4 and set up a new blank document letter size, in photoshop cs4 went to Edit>Paste and I pasted each item as pixels into photoshop. Keep in mind that each of these individual items I have pasted are obviously vector images. After placing the Illustrator files (that are now pixels in photoshop) I saved everything as .TIFF format in photoshop.
    Opened up InDesign and opened the TIFF file I just saved and placed it in InDesign as a TIFF file (raster).
    My question is a format question, now that I have images that I drew from Illustrator in a Photoshop TIFF file that has been put into InDesign, if I sent this to a printer would it print properly as I see it now? I ask this because I know in the past you guys have said that vector will not print unless it is in Adobe PDF. Did I do this right or should I have saved the three Illustrator images separately as Adobe PDF files and just placed them as individual objects in InDesign?

    I remember Jongware, it's come in handy!
    Peter, I think bridging these files from one program to another just confuses me. What I guess I was thinking was I could create the single files in Illustrator and drop them as pixels into photoshop because then I could impose them in front of my backdrop (I created a backdrop with other images in photoshop) and thought it would be easier to just save it all as a TIFF file and place it in InDesign. So when I copied/pasted from Illustrator into photoshop, when I chose place as pixels it rasterized a vector image am I thinking right? Truthfully, I just don't know what I'm doing and trying to do it out of convenience. The end result I always try to do is make sure it shows up right in print with no less than 180 resolution because its' hard to find stock photos on the web without a watermark or decent resolution.
    Eugene, I knew that Jongware and a couple others mentioned the Adobe PDF format from Illustrator but I couldn't remember if .AI format would work or not. I know in the end you just end up converting everything to PDF.
    The way I was taught in school was in the simplest of terms, create custom art in Illustrator (when applicable), alter/enhance stock raster images in photoshop, and then you finish up and place/format in InDesign. My biggest problems really are understanding what format belongs where and when for print and I can't seem to find high resolution pics that work well in my documents, get them as JPEGs in google images.
    Anyways, thanks again guys! Still learning, thanks for putting up with me!

  • Need Help with an effect

    Does anyone know how to take an image of grass and make it
    look like it's blowing in the wind? I've seen images bent in
    directions before, just don't know how.
    Please help.
    Thanks.

    If your grass is a bitmap - then my FLA won't help you
    anyway. You can't manipulate bitmaps like
    that in flash - your only options are to re draw it in flash
    with vectors or use Anime Studio's
    Bones and Warp Image features (awesome!!!) - check it out at
    www.e-frontier.com. Then import it into
    flash as an image sequence.
    Chris Georgenes
    Animator
    http://www.mudbubble.com
    http://www.keyframer.com
    Adobe Community Expert
    *\^^/*
    (OO)
    <---->
    San Diego Living wrote:
    > hmmm I get an error trying to open your fla file :-(
    >
    > My grass image is not a vector image. I'm guessing it
    has to be to make this
    > type of effect? I do want it to look somewhat like what
    you have, only my
    > grass has been mowed a lot more ;-)
    >
    >
    >

  • Help with Combining Objects

    I've been thinking of submiting some of my Illustrator designs to iStock and I want clean up the files and perhaps combine some of the objects so there isn't this bigg mess of layers. The problem I'm having is that some objects need to be on top of other objects - for example a shadow on a foot needs to be above the layer with the foot's primary color. So if I wanted to combine objects that are in this kind of order would anyone have any tips or suggestions? I also want to combine layers that have just lines I've drawn on them, like movement lines which are just open paths with strokes. If I could get these types of objects all merged into one object then I could cut down not only on the size of the file but also the number of layers involved. This way when someone buys it from iStock they're not faced with this huge file with hundreds of layers.
    Any help would be appreciated.
    Thank you.

    Fully familiarize yourself with these topics:
    Combining paths. These are functions common in vector programs which union, punch, and intersect multiple paths. In Illustrator, they are called Pathfinders.
    Outlining Srokes. Creates unstroked filled paths around the edges of stroked paths. Understanding this is integral to using path combination functions in Illustrator especially, because Illustrator is so poor at cutting and dealing with open unfilled paths.
    Transparency and other Raster Effects. You need to understand which effects and transparency settings result in rasterization, and what that portends regarding the scaleability of your artwork.
    Color Model. Are you going to deliver CMYK or RGB files? Do you know why?
    What format do you intend to provide to the clipart reseller? Native AI files? If so, what version?
    Merely having Layers in your AI file does not significantly affect file size. An AI file is a stack of objects. That's true whether the whole stack of objects resides on a single Layer or a hundred Layers. Layers are nothing but another way of "grouping" subsets of the object stack for organization purposes. You seem to be thinking of Layers in AI as similar to Layers in Photoshop. That is a very common and very basic misunderstanding of the nature of vector artwork.
    It's the object constructs that you need to concern yourself with when creating clean, efficient, reliable, versatile, and easy-to-work-with vector artwork. "Normalize" things to their simplest constructs. Avoid unnecessary anchorpoints, clipping paths, masking, so-called "transparency" and "live effects."
    I very much applaud your desire to build clean files. (There is far too much sloppy, convoluted crap floating around out there nowadays.) Not meaning to discourage, but the fact of your concern about Layers frankly suggests that you may not really be ready to be delivering ready-made and problem-free artwork for widespread use as clipart. You need to fully understand the items mentioned above, and alot more. Asking questions in a user forum will be a very slow method of learning that stuff--there are too many variables and specific situations.
    JET

  • Opening MDF files in Diadem generated with Vector CANape v7.0?

    Hi all,
    I have a Vector CANape v7.0 data aquisition system that generates files in MDF format.  I found the Diadem data plugin for MDF files and installed it.  I can open the files, see the parameter names, but all the data is 0 (and it should not be).
    The plugin looks up to date and the description mentions MDF version 3.0 & 3.2.  We have CANape version 7.0.  How do those numbers correspond?  How can I open this file correctly?
    Plugin Description: 
    This DataPlugin supports reading / importing of Bosch MDF data files, ETAS INCA® MDF data and Vector CANape® and other products from Vector. The DataPlugin supports MDF files up to version 3.2. The MDF DataPlugin also supports writing of MDF 3.0 and 3.2 files. Writing behavior is controlled by the root property 'version'; set version to "MDF 3.2" to write MDF 3.2 files.
    The Measure Data Format (MDF) is well established in the automotive industry for recording, exchanging, and post-measurement analysis. MDF files are produced by eg. INCA® from ETAS, and by CANape® and other products from Vector.
    Thanks- Dshow
    P.S.  I have tried this on Diadem v10.1 and 11 with the same results.  Thx
    Message Edited by Dshow on 07-13-2009 02:12 PM
    Solved!
    Go to Solution.

    Hello Dshow,
    Since I don' have any MDF files to test this with, I can't help with your immediate question. I can offer up an alternative though:
    With version 11.1, DIAdem has gained the ability to load CAN files directly through the "CAN Converter" that can be found in the NAVIGATOR "File" menu. You can test this with the free evaluation version that can be found at http://www.ni.com/diadem/ - this might take care of the issue you are having. It also offers a number of additional features you might be interested in ...
    Best regards,
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Help with After Effects CS6 error please?

    I'm working on a kinetic typography project in CS6 as my final assignment for my Motion Graphics class. It's nothing too complex, just some text to some song lyrics and I decided I wanted to do some camera movements around the text but when I checked the 3D box next to the layers, I get an error message,
    88:3, "error: TDL:outline contains triangles that are too small to be rendered. Check for very thin triangles in original artwork."
    I literally only have one background picture and then quite a few text layers but that's it.
    Any help on how to fix this would be greatly appreciated!

    I'm still kind of new to After Effects and working with vector so I apologize if I'm not too savvy with all of this. Here's a screenshot of my composition if that's of any help.
    *Edit: Oh and my text doesn't need any extrusions, the only 3D transformations I've made to the text layers is "pulling" their positions a little closer on the Z axis.

  • Need help with JTabbedPane

    hi please i need some help with JTabbedPane i've commented the line giving me the problem i'm trying to initialize Tabs but there's an error on it
    import java.awt.BorderLayout;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import model.ContactModel;
    import view.ContactAddView;
    import controller.ContactController;
    public class PersonalContact extends JFrame
         private ContactModel          contactModel;
         private ContactAddView     contactAddView;
         private ContactController     contactController;
         public PersonalContact()
              super ("Personal Contact Manager Demo");
              setSize(580,300);
              getContentPane().setLayout(new BorderLayout());
              contactModel          = new ContactModel();
              contactModel.generateTestData(10);
              Vector searchTest = contactModel.searchMultipleContacts("Surname7");
              contactModel.printAllFoundContactSet(searchTest);
              contactAddView     = new ContactAddView();
              contactController     =     new ContactController(contactModel, contactAddView);
              //JTabbedPane Tabs = JTabbedPane(JTabbedPane.TOP);
              JTabbedPane Tabs = JTabbedPane();
              Tabs.addTab("Add", contactAddView);
              Tabs.addTab("Update", new JPanel());
              Tabs.addTab("View", new JPanel());
              Tabs.addTab("Search", new JPanel());
              Tabs.addTab("Delete", new JPanel());
              getContentPane().add(Tabs);
              getContentPane().add(contactController, BorderLayout.SOUTH);
              setResizable(false);
              show();
         public static void main (String [] argv)
              PersonalContact     Application = new PersonalContact();
    }

    You're missing the new keyword in a couple of places.

Maybe you are looking for

  • HT1338 pages not working on mountain lion why?

    I've updated to OS X mountain lion, but when I reinsalled I works 09 it won't open my documents, does any one know a sollution?.

  • Fixed Table Height for PO Report

    Hi, We have a problem in adjusting the height of the table for Purchase order Report.We are displaying lines and shipment information in the table. But the shipments data is varying for each line due to which the table height is also varying on each

  • Problem with jFreeChart

    Hi I am trying to bring up jFreeChart and have unsuccesfully trying to run the following "hello world" chart example: // ChartTest.java - 05/10/04 // Test jFreeChart package mypackage; import org.jfree.data.*; import org.jfree.chart.*; public class C

  • HT1430 how to reset my ipad 2

    how to reset my ipad to start all over

  • Commit=y

    Hi What does commit=y mean when use it with import syntax? bye.