Is any expert here?Please help!
Hi, I want to retrieve data from vector to Jlist and TextFileds. Here is the situation: The vector likes this: {[string1,string2,string3], [string11,string12,string13],...}.So,how can I put string1 to Jlist, string2 to JTextField1, and string3 to JTextField2?
Thanks!
Is this what you're after ? If not, you really need to give more information about exactly what you're trying to achieve. Example code would be best.
import java.util.*;
public class ArrayExample
* Demonstrate how to access references within
* vectors of vectors
* @param argv Ignored.
public static void main(String[] argv)
// contentToAdd will be formatted to contain the data as you described it.
Vector contentToAdd = new Vector();
Vector v1 = new Vector(Arrays.asList( new String[] { "string1", "string2", "string3" } ));
Vector v2 = new Vector(Arrays.asList( new String[] { "string11", "string12", "string13" } ));
contentToAdd.add(v1);
contentToAdd.add(v2);
// contentToAdd now contanis the appropriate data.
// Iterate through the vector (of vectors)
Iterator i = contentToAdd.iterator();
while(i.hasNext())
// Grab the nth vector
Vector currentEntry = (Vector)i.next();
// Now we've got a reference to the "internal" vectors, we can display their
// contents, add them to components, or whatever we want.
System.out.println("Add me to JList: " + currentEntry.elementAt(0));
System.out.println("Add me to JTextField1: " + currentEntry.elementAt(1));
System.out.println("Add me to JTextField2: " + currentEntry.elementAt(2));
}
Similar Messages
-
IPOD not appearing on any computers..please help!
Hello. I've had a 30gb Ipod Video for a few months and have taken great care of it. All of a sudden, however I tried connecting it to my sisters laptop for some of her songs last night and it did not connect, However the "do not disconnect" was on the screen...well since it was doing nothing I disconnected it and it still said "do not disconnect after a long time. then I pressed on the "menu" button at the same time as pressing the middle button and it stopped. Then, i tried connecting it to my own laptop and on my itunes the ipod still did not show up and was not recognized. I have tried all of the computers in the house and my ipod will not show up. Its frusturating because it says "do not disconnect" whilst on the usb cable but still no luck with showing up anywhere. I have the latest version of itunes on all of the computers so that is not it. And i have considered trying to reset it, but the directions actually require for the ipod to show up on itunes for that, and since that is not happening are there any suggestions? PLEASE HELP! thanks so much
Also, try putting your iPod into Disk Mode then connect it to your computer again: Putting your iPod into disk mode
Then, take a look at this article here (presuming that your iPod isn't being recognized by Windows, either): iPod isn't being recognized by Windows or in iTunes
-Kylene -
hi, i need ur help. i got my ipad from my school and they formatted it so that many things would not work, one of those things was iCloud, could any of you please help me undo that?
Check the settings on your iPad:
1. "Settings > General > Restrictions"
and also
2. "Settings > General > Accessibility" here Learning/Guided Access -
I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )
There is nothing that anyone here on a user forum can do to help you. If it is a local issue in Syria, then you need to take it up with your phone company or authorities there who have prevented you from using VPN.
Nobody here can help you. -
"This message cannot be sent at this time." I have been getting this pop-up for 3 days when trying to send out mail. I don't know what to do! I cannot send mail from this account on any ISP. Please help!
lots of people seem to be havgin a problem sending email from iCloud webmail.
does your email address have uppercase characters in it?
if so, try creating an alias in lowercase (go to preferences in iCloud webmail and select 'accounts') and see if email sends okay from that -
In my macbook pro 5,2 snow leopard (10.6.8), Finder taking long time to load contents of any directory. Please help?
I have already tried to spotlight re-indexing but it did not help. I am hardly able to work on it, almost for each directory I browse its keeps on spinning for 1min.Download iTunes from Apple's web site and install it. Don't use Software Update.
-
my ipod 7th generation is not recognised by itunes and my computer. I am not able to transfer any songs. Please help me on this regard. I tried all the steps from apple website
This article should give you the options
https://discussions.apple.com/docs/DOC-3991 -
My photoshop element 10 stop working, I am not able to open ti anymore. ? I posted this question a few days ago and I did not get any anwer yer, please help
I have photoshop premiere element 10 editor and organizer and I have a Macbook pro 10,9,9
When I try to open a picture with element editor or if I try to open PS editor directly I see this
file:///Users/main/Desktop/Screen%20Shot%202014-11-26%20at%201.17.35%20PM.png
when I click on Modify it doesn't open and I have this window
file:///Users/main/Desktop/Screen%20Shot%202014-11-26%20at%201.21.07%20PM.png
and if I click REOPEN , I still have the same message
Lucie -
Have problems with Mail on MacBook running OS X Mavericks. It suddenly became stuck: won't quit and won't display any messages. Please help.
Select Force Quit from under the Apple menu and select Mail (it may say that it isn't responding).
Clinton -
Hi everybody,
I have Imac 5 processor and I guess installed Lion I am having difficulty with Wifi connection. Sometimes after shut down number of times still does not access wifi or if it does I can see wifi bar on iMac but can't open any webpage. Please help
ThanksHello:
There was an OS X 10.7 update released a month or so ago that fixed this problem. Run software update.
Barry -
Hello, i just downloaded the itunes 11.0 with the completely new widow format. Mow do I drag songs and playlists onto my ipod? I see where my ipod is on the upper right side of screen but it will not accept any drops. Please help. thanks
Not only this but I can't drag from Itunes and place anywhere on my desktop or onto an external drive. Apple, why are you screwing around with basic functions!? I'm a dj and I need to be able to manage my music files without you ruining my life! FIX THIS!
Message was edited by: wheelo007 -
hi, i bought an iphone 5 through ebay, when i am trying to activate, its asking for a icloud user name and password, but i am unable to contact the owner, but its not black listed. is there any solution? please help me.
Hello there, Ark.
It sounds like the iPhone has Activation Lock still activated. The following Knowledge Base article provides the methods available for removing the previous owner's account:
Find My iPhone Activation Lock: Removing a device from a previous owner’s account
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
I can not attach any files to email or Facebook. When I go to "browse" the window comes up and disappears immediately. I updated browser and Adobe Flash. Restarted computer and zapped pram. any ideas? Please help!
Please read this whole message before doing anything.
This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
Step 1
The purpose of this step is to determine whether the problem is localized to your user account.
Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only Guest login created by Find My Mac.
While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
Test while logged in as Guest. Same problem(s)?
After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
*Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
Step 2
The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
Be sure your Mac is shut down.
Press the power button.
Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
*Note: If FileVault is enabled under Mac OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
Test while in safe mode. Same problem(s)?
After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2. -
When I import a video I recorded to my laptop from my Iphone 5c it won't play on window media centre or vec or any medium. Please help??? It plays perfect on the phone.
The format from the phone is :
h.264 encoded video, AAC audio. Both standards of MPEG 4.
You need Windows Media Player version 12 or above to play MP4 (or add the codecs to your current version). -
I got speaker problem once I upgraded my iPad into iOS 7.0.3. Any idea? Please help.
Go into the settings and reset all settings. See if that helps.
-
my ipad is jammed.... the screen is about icloud back up. "this ipad hasn't been back up for two weeks.bla2... but the problem is my screen is locked . i couldnt do any thing ! please help me .....
if you can not unlock your ipad, you need to plug it into itunes and do a restore.
If it will not ben able to restore you need to put it in dfu mode (holding down power and home for 10 seconds untill the screen goes completly blank) and then itunes will say it is in 'recovery'. Try that
Maybe you are looking for
-
Creating a PDF attachment and send it via Email
Hi, I have following problem. I want to send a Purchase Order via Mail to email inbox. I already read in the forum that I should use the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'. Could anyone please provide me with some information about that. So how can I
-
Everytime I connect to messages and FaceTime I'm faced with these two errors "There was a problem with Messages. You need to quit and open Messages again." and There was a problem with FaceTime. You need to quit and open FaceTime again. It was fine w
-
Dear SAP Friends, My client has planned to develop a program to convert SAP payment run data (F110 for Checks only) to EDI 820 format. I have some points to know the information about EDI 820 format for the following segments to map them to SAP table
-
People can't hear when whe i / receiving a call on my Z10
Hi, im desperatly in need of help. When i make or receive a call, the other person can't hear me, i must either put it on speaker or put earphones for them to hear me. Can anyone help me please!!!!!!
-
Buying creative cloud products in South Africa
I'm trying to buy Adobe InDesign (cloud option) online. I live in South Africa and if you go to adobe.com/africa/purchase, it gives you the option to go to the South African Adobe store. When I click on the link, everything goes well until I get to