How do you empty a vector

Hi,
I am a newbie to java and Iam kind of stuck.
I have created a JTable and I am trying to populate it with data from a flat file.
The Jtable has five column:
name age title grade hobby
==== === ===== ===== =====
The data in the flat file is as follow:
john
23
analyst
63
knitting
jill
30
cook
23
running
I would like the JTable to look like the following:
name age title grade hobby
==== === ===== ===== =====
john 23 analyst 63 knitting
jill 30 cook 23 running
Currently Iam using a DefaultTableModel and adding a vector which contain the data to it.
I think that I should create a vector for each row and then add it to the main vector to be add to the JTable. But then how do you empty out a vector you finished using.
All help is appreciated.
--kirk

Thanks,
I see that I need more than 1 loop.
--kirk                                                                                                                                                                                                       

Similar Messages

  • How do you empty the trash in iphoto, how do you empty the trash? in iphoto

    how do you empty the trash in iphoto?

    Right click on Trash in iPhoto and a menu will appears Empty Trash on it.
    If you clck that the Trash will be emptied.
    Allan

  • How do you apply a vector mask to a folder in Photoshop CS6?

    The ways you apply vector masks in CS6 is different than in CS5.
    I knew how to apply a vector mask to a folder of layers in CS5.
    I cannot figure out how to do it in CS6.
    So my question is:
    How do you apply a vector mask to a folder in Photoshop CS6?
    And while we're at it, what are the best methods for applying vector masks to regular layers?
    Thanks.

    thomasbricker wrote:
    Im back...
    The thing is, Im not usiing the pen tool to create the vector shape. Im using the vector box tool to create a rectangle [...]
    Yes and that's why I wrote the words "vector tool" and never mentioned a pen. (Although the instructions would be exactly the same for using the Pen Tool because the Pen Tool is a vector tool.)
    which I then want to turn into a layer group mask.
    And yes, this does not work the same way as it did in CS5.
    I wish it did. : |
    Adding a vector mask to a layer or group is exactly the same in CS5.1 and CS6 on my Mac. Maybe that's done differently in CS5 than in CS5.1, but it seems unlikely.
    You have the layer or group targeted. Now draw a rectangular path after making sure the Rectangle Tool is in Path mode, and not Shape mode and not Pixel mode. Then Cmd/Ctrl-click the Add Mask button at bottom of Layers panel.

  • How do You empty cookies?

    how do you empty cookies?

    Hi,
    I use to clear Cookies ... Cocoa Cookies.
    This is a little application to delete the Cookies you don't want an leave the ones you will hold on just by selecting them and keep them there.
    ALL other Cookies that you didn't select you can trash.
    Look for Cocoa Cookies on VersionTracker website or on Mac Update.
    Good luck ...
    Dimaxum

  • How do you empty part of the Trash?

    I do not want to get rid of all the Trash, just part of it. How do you do that? When I attempt it, it appears that ALL the trash will be emptied. Does this mean I have to move what I want to save to another location and then MT the trash, and then move the files BACK into Trash??

    KRBi wrote:
    I do not want to get rid of all the Trash, just part of it. How do you do that? When I attempt it, it appears that ALL the trash will be emptied. Does this mean I have to move what I want to save to another location and then MT the trash, and then move the files BACK into Trash??
    Yes. There is no "partial" trash empty.
    As an aside, trash is not the place to keep anything you might wish to use in the future.
    Barry

  • How do you empty mail "In" directory all at once??

    How do you delete all entries in the mail In directory all at once, rather than one-by-one?
    I can flag them all and mark them as read, but I cant determine how to delete them. Maybe it cant be done.
    Many thanks

    TThere is no feature to do this on an iPhone.
    if you use an IMAP account you can't bulk delete on a browser and it will reflect on your phone.

  • How do you empty the trash in the Classic Environment?

    There was a large file on my desktop, called ".tif" (no filename, just ".tif" and nothing else). It was apparently created by the VueScan scanning software. It was not an image I asked it to scan, it's just some sort of test image. It only appears to applications running in Classic. It does not appear to OSX applications, and the Find command in the OSX Finder can't find it.
    Using Sherlock 2, running under Classic, I was able to find this file, but the only thing I could do with it in Sherlock 2 was move it to the Trash. So now, it's sitting in the Trash of the Classic environment, but OSX doesn't see it, the Trash in OSX is empty.
    There is no "Empty Trash" command in Sherlock 2, or any other Classic program that I have. All of the third-party utility programs that I have for OS 9, such as Norton Utilities, DiskWarrior, etc., won't run under Classic. When I try to run them, I simply get a message, "That application is not supported by Classic."
    So, how can I get rid of this file? It is only visible to the Classic environment. Are there any utility programs that run under Classic that can cause the Classic environment Trash to be emptied?
    Thank you

    Hi, Bob. I have no way to replicate your problem and test this suggestion on my Mac, but I'm confident that it will work. Download File Buddy 8 and use its Find command to search for a file whose name is .tif, including both visible and invisible files in the search. (The "." at the start of the file's name makes it invisible in OS X). Once you find it, select it in File Buddy's hit list — make very sure you're selecting the right file and only that file — and use the Delete command in FB's File menu — not the Trash button in FB's toolbar. "Delete" will remove the file instantly and irrevocably, no matter where it resides, ignoring the usual rigmarole associated with the Trash.
    File Buddy is to the Finder what Photoshop is to QuickTime PictureViewer, or Word is to SimpleText. Anything FB can't do to or with your files (and much of what it can), you should be scared of doing. But when you need it, there's no substitute.

  • How do you split a vector image into several different colors

    Hi, I'm trying to make an infographic for my company and wanted to use an image of christmas tree I found. I put it into Illustrator CS6 and traced it with the 16 colors option ( which i believe makes it a vector). What I want to do is change the colors of the christmas tree on each level of needles, but I can't figure out how to split up the image to change it into different colors. Sorry if this is confusing, any help appreciated.
    Thanks
    Audrey

    Audrey, first off, you should know this:
    Working with "a vector graphic" and working with a vector graphic that is the result of Illustrator's Image Trace are very likely to be very different things.
    You would be much better off if you were starting with a tree graphic that was designed and drawn as a vector graphic in the first place. The people reading your post here can only imagine what's on your screen and how the Image Trace utility might have "seen" and traced it. I'll go so far as to say you won't be able to accomplish what you describe with an Image Trace as the basis. I'm not saying it's impossible, but I do know I wouldn't dare put myself through the anguish of attempting it. Honestly, I think you'll have a better chance of pulling it off if you keep the tree as a raster image, open it in Photoshop, and recolor sections of the tree there. But again, that could be determined with considerably more certainty if I could actually see it.
    As a side note, I'd like to add this: You refer to the christmas tree image as one that you "found." I read that to mean you found it on the Internet. If that's the case, and the infographic you're planning is only for an internal presentation, it's not really a big problem, but even then you should consider acquiring permission or license to reuse the image. However, no matter how you might adapt or alter the image, just about any other scenario involving your re-use of that image could lead to issues of legality. Please don't pirate images.

  • How do you empty mail trash with new firmware

    In 1.1.4 you could go to your email account click advanced and set the IPT to empty mail trash once a day. I upgraded to 2.0.1 and there is no longer a setting on that screen to set when trash is emptied. I get a lot of spam so I need to empty daily. Anyone know how to do this with the new firmware?
    Thanks.

    Also, you can move email to the trash folder directly from your inbox without even reading it. To do so from within your "inbox", click on "edit". You will notice there is a blue dot to the left of all new mail (shows you haven't looked at it.) When you click on edit, all the blue dots disappear.
    Tap the same area where the blue dot was and a red circle will come up with a check in the center. Tap the Delete All button at the bottom and every red circled email will go directly to "trash".
    In Trash, just do as the previous post says. Hit the edit button and then Delete All.
    That's it and to me this is worth much more than the $9.95 for 2.0 that there is so much belly aching go on about on this forum.

  • HP Prime: how would you approach this vector problem

    Given:   r1 = 2i-j+k 
                    r2 = i+3j-2k
                    r3 = -2i+j-3k
                    r4 = 3i+2j+5k
    if r4 = ar1+br2+cr3  find the values for a, b, c
    If I use the Solve App I have five equations with three unknowns and Solve App doesn't like that  "Must select as many variables as equations"   If I select five variables I get "no solution could be found"
    I tried using the 'solve'  function in the CAS mode, but it can only solve for ONE variable.   Seems like the only way I can solve this problem is by hand???   any suggestions???

    Thanks for the encouragement,  I wasn't so much stuck as I was trying to find out the power / limitations of the HP Prime.  
    I was disappointed to find out that the Prime doesn't seem to know the difference between the small letter i (alpha-Tan) and the complex i (shift-2)  so that took awhile to figure out if I was making a mistake (why have two difference key stokes if they are both the same) or this was a peculiarity of the program.  Equally frustrating was entering an equation using the small letter i,  I could not tell if I was entering a complex number or a variable or a vector as there are so many different forms the complex number takes or I just can't tell the difference.  Sometimes it is written  2+3*i;  sometimes as [2 3*i]; 
    i enter 2+3*(alpha TAN)  and i get 2+3*i     same results if i use (shift 2)
    i enter ( 2+3*(alpha TAN))  and i get 2+3*i   drops the parenthesis 
    i enter (2,3(alpha TAN)) and i get [2 3*i]     why the change from parenthesis to brankets when brankets are used for matrices???  why the dropping of the comma??? i gather the brankets without the comma is a vector - just confusing having to enter with a comma but it is displayed without the comma - not very good reenforcement.  
    I enter (2,3i)*(4,5i) displays as [2 3*i]*[4 5*i]  result is -120
    I enter [2 3i]*[4 5i] displays as [2 3*i]*[4 5*i]  result is -7,    both entries on the left side look the same but the right side is different????  I have no idea what is going on here???
    I enter(2+3i)*(4+5i) displays the same, result is -7+22*i
    I enter 2+3i*4+5i displays as 2+3*i*4+5*i, result is 2+17*i
    still confusing
    anyway  back to the problem - gave up on entering variables, just used the Linear Solver, columns x,y,z became a,b,c and rows 1,2,3  became i,j,k   the solution  (-2, 1, -3)  
    I tried your "Munk" , no function of that name in the catelog - didn't work....
    Used M1^-1 * M2 and got the same results as I got in Linear Solver... 
    can you enlight me on complex numbers versus vectors versus whatever else I was entering,   thanks

  • How do you empty emails all at once?

    Do you really have to delete each email one by one? There is no clear all? No, empty trash? One by one, that it....

    For now you cant. I suspect this will definitely be added in a software update.
    You can set it to permanantly delete the trash after 1 day I believe in settings. At least this is something for now!

  • How do you empty your iTunes account so I can change country on my iTunes ID?

    I can't change my country on my iTunes ID because I have 53cents on my account. How can I resolve this issue??

    You can't do this yourself. Click here and ask the iTunes Store staff to zero your account balance.
    (93923)

  • How do you empty safari cache?

    anyone know?

    You can use
    Safari > Reset Safari
    and unselect everything except 'Remove website data'.
    Alternatively, go to
    Safari > Preferences > Advanced
    and check the 'Show Develop menu in menubar' button at the bottom.
    In Safari's menu bar, choose Develop > Empty Caches.

  • How do you empty cache?

    There's no more "Empty Cache" button under Safari tab.

    Yep. If you only want to remove the History cache, you do that under the History menu of Safari.

  • How do you empty the trash if a file is in use

    I somehow deleted a file although it was in use.  Part of Time Machine.  Now I can't empty the trash.
    Any hlep would be appreciated
    Thanks,

    Take a look at this resource (in particular: E6):
    http://pondini.org/TM/Troubleshooting.html

Maybe you are looking for