How can i use a string name as an onject name.please help!
hi it seems like an easy one but i can not find it anywhere.how can i use the name of a string as a name of an object such as the code(my problem is the code)...
public void oda(String name1){
String name2=name1+"s";
String name3=name1+"ss";
TextArea name1=new TextArea();
TextArea name2=new TextArea();
TextArea name3=new TextArea();
i think my problem is clear but to be sure..
how can i give a name to an object in my textarea which is already using as a string.
thank u .
it get very compilcated to change the name of the object you created. identity is something you don't want to mess with..you can do it by usin reflection, but it will slow down your application and (again) is quite complicated...
a simple solution (and more object-oriennted) is to create a Wrapper, Decorator, or Extends the class.
example
public class MyTextBox{
private String name = null;
private boolean value = false;
private JTextArea txtArea = null;
public MyTextBox(String name, boolean value){
txtArea = new JTextArea();
this.value = value;
this.isOn = isOn;
public String getComponentName(){ return name; }
pubic boolean getComponentValue(){ return value; }
public JTextArea getTextArea(){ return area; }
}
Similar Messages
-
hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me
You will have to configure that with your router. Type your router's IP address in the search/domain bar and allow port forwarding.
What is requiring you to have an open NAT? That issue is usually for gaming consoles, etc. -
I seem to have lost carrier settings on my iPad1,I've tried a restore and update but get a message about the original sim card,which I still have but is inactive,really inconvenient as I can only use in wifi spots and off line mode,please help,sibear.
You might want to download something called an undelete utility. These can find files and recover them even after they appear to have been lost. There are some undelete utility programs that are free. Look at tucows.com
Also, it appears that you have POSSIBLY overwritten the actual files, which you moved manually, with I don't know what, which you moved in PSE's folder location view.
Next, in the future ... NEVER (that's: don't even think about it) move your photos in Windows. NEVER. NEVER. Not ever. Not once. This always (that's ALWAYS, as in 100% of the time) causes problems and usually makes things difficult to fix.
Lastly ... make regular backups! I must say this in the forums about seventy bazillion times a month. Make regular backups! Regular depends on how often you take photographs and edit them. Since my photographic activity usually happens on the weekends, I make backups every Sunday night. You may need a different schedule, depending on your activity level. MAKE REGULAR BACKUPS! -
How can I open March 2013 in my iPad-calendar? please help me! Thanks
How can I Open March 2013 in my iPad-calendar?
Please help me!
Thanks
Susanne SchabelI get same Issue.
is iCloud make this issue.
Try Disable iCloud calender on you iPad and then go to March 2013 on you calender and then it not crash. after that go back and enable iCloud calender again.
And then it work for me :-)
best regards
Lars Rasmussen -
Why are songs/albums deleted off of the iTunes store? How can I get them back on the iTunes store? PLEASE help. Thank you.
Perhaps the copyright holders chose to remove them. What album were you after?
tt2 -
I am living in Pakistan, Lahore. I have purchased an Apple Iphone 5S online from apple store. I am facing water damage problem and there is no apple store here in Pakistan, How can I repair my phone from apple service center? Please help me
Take it to an authorized service center or Apple Store in the country where the phone originated. Apple does not sell iPhones in Pakistan, nor will they ship them to Pakistan.
-
I forgot my password and could not open until it is said "connect to iTunes". I connected to iTunes. for three hours, I restored it. But it is still not restarted. what can I do? I can not use my iPad 3 for three days. Please help me!
Try and force your iPad into Recovery Mode
1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device. -
How can i send email for suport to rest my questions' please helpe'
how can i send email for suport to rest my questions' please helpe'
You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(109789) -
Hi, I already installed photoshop trial version and three weeks later I paid on-line for 300 Baht for buy it but it still ask me to join and pay for it. How can I update it in my log in account. Please help.?
You do not buy Photoshop for 300 baht, you are renting it for that much a month. You set up an account with a valid credit card and to see if it is active, you go here. https://www.adobe.com/account/my-products-services.html Look under my Subscriptions.
If all is good, then with the same Adobe ID/password, select "License this Product" and sign in, or Help > Sign in.
That will license it.
Gene -
My ios is upgrade to 7.0.2, but I forget my power-on password, so the iphone is disabled and I can't use it now except for emergrncy call. Please help me...
I tried this way , but I forgot my e-mail address too !
and I dont have any idea to re-active my iPhone5 ..
sombody help me . -
My Imovie continues to shut down every time i File-Import- then it pops up with everything i can import and right before im about to click on something it quits. I can't use my imovie until i figure this out, please help!
Thanks so much Meg. Unfortunately, iTunes is the program I use to perform syncing. I don't really have other outside options. It is also the location of the backup I would use to restore my phone, and my only way to reclaim important data. I am concerned that, since the last backup occurred when the "other" bar was only moderately huge (around 29G I think), that a backup would replicate the problem back onto my phone.
My contacts, etc. are all in address book and the calendar app on my Mac. As far as I know, iTunes is the way to get them back, but iTunes is where the problem is.
Any thoughts on this? -
How can i use a string as a control for case structure?
my vi is reading data. the output is a string,how can a string can control the case structure? because the there's a constructed vi in that case structure that wll perform a tast after the main vi read.
Thank You
(Can you please give me a simple example how can do this)Try this vi. You shouldn't have any problems just connecting a string to the case selector.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor
Attachments:
string_to_control_case_structure.vi 10 KB -
hi can anyone please help me??
Are you using the Oracle ODBC driver? If so, which version?
Are you writing your own VB application? What API are you using-- ADO? Can you post the code that's making a connection and the exact text of the error message?
Justin -
I have ipad2 it using wifi 3g how can i use my iphone4 network to browse on it please some one help
i have ipad2 that have wifi+3g , and i want to use my iphone 4 net work to use the ipad wifi please how can i download it so that i can use the iphone 4 network on the ipad
You don't download anything at all. The feature is built into the iPhone 4 already. Your carrier has to support the feature and there might be an extra charge to use it.
You can read about how it works here.
iOS: Understanding Personal Hotspot - Support - Apple -
How can I call a ABAP proxy class from BADI? PLease help
hi Experts,
I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
Please help.
Thanks
GopalHi,
You can call a method of a class from BADI. Here are the steps.
1) In the BADI implementation create a object for the proxy class.
2) Call the Execute_Synchronous method.
You can define a BADI by using SE18 and you can implement it by using SE19.
Sample code...
================================================
METHOD ZIF_EX_VBADI~CONVERTUPPER.
DATA: OBJ TYPE REF TO ZTESTCLASS.
DATA: IT_DATA TYPE ZIN_MT,
IT_RES TYPE ZOUT_MT,
SEXCEPTION TYPE REF TO CX_AI_SYSTEM_FAULT.
TRY.
CREATE OBJECT OBJ
EXPORTING
LOGICAL_PORT_NAME = 'TESTPORT'.
CATCH CX_AI_SYSTEM_FAULT INTO SEXCEPTION.
ENDTRY.
ENDMETHOD.
================================================
Thanks,
Vivek LR
Maybe you are looking for
-
Asset Scrapping - Calculating Depreciation for entire year
Hi guys We want to scrap an asset without revenue using ABAVN. Asset Details: The asset will be completely depreciated by the end of this year (December) We have smoothing indicator on. We wish to post the retirement and close out the asset balances
-
I am trying to set up my iCloud on my iPod
I am trying to set up my iCloud account on my iPod using my current Apple ID but it says that my Apple ID is valid but I have used all the free accounts on the device. Can anyone help me to set it up? I way to use my current Apple ID plus I have no i
-
Does java has problem storing floating point numbers?
Hi just a quick question. I have been programming in java at least 4, 5 year by now and I feel rather comfortable with programming in java. However, just other day I hit problem with java which I was hoping someone on this forum can fill in for me. N
-
BI-Content Install Help Required Please....I am Stumped
I've just installed NW 2004 SP1, successfully with ABAP+JAVA on one machine. Am presently applying support package stack 14. When I try to install the BI 3.53 Content add on I am having problems...:( The system does not seem to have BI-Cont installed
-
Is there a command on Windows to install the latest version of software?
yum can install the latest version of software on Linux system, I am wondering whether there is a similar command on Windows platform?