How could i fix that error?
hii everybody. i tried to write codes for save , delete , and edit, i wrote all the codes but the codes editting button gives an error.I am going to show you the
codes and i hope you tell me where is the mistake in the edit button.
The codes for save Jbutton, they work properly
protected void save() {
String s=txt.getText();
String x=txtArea.getText();
gui.CatagoryEditorInt cata=new CatagoryEditorInt(s,x);The codes for delete Jbutton and also they work without errors
protected void Delete() {
ProductDA s = new ProductDA();
s.getAll().remove(jlst.getSelectedIndex());
int j=JOptionPane.showConfirmDialog(null, "Are you sure? "+ " ",getTitle(),JOptionPane.YES_NO_OPTION);
if(j==JOptionPane.YES_OPTION);The codes for edit Jbutton, here was the problem, the codes didn't edit the text,
CatagoryDA s = new CatagoryDA();
s.getAll().add(jlst.getSelectedIndex());
String w=CatagoryEditor.txt.getText();
String z=CatagoryEditor.txtArea.getText();
CatagoryEditorInt d=new CatagoryEditorInt(w,z);
(jlst.getSelectedValue());
(jlst.getSelectedValue());Tell me why the edit code doesn't work?
Thanks in advance
Please provide details of the error.
For example, if your compilation fails the compiler will emit error messages. Paste these into the forums.
If you have a runtime error message you may still have error messages; if so paste these in.
If your program fails at runtime but without error messages you will need to provide:
1. A description of the actual behaviour of your program.
2. A description of the expected behaviour of your program.
3. An explanation of why you believe that (1) is incorrect.
Please also read the following link before posting further threads:
[http://www.catb.org/~esr/faqs/smart-questions.html|http://www.catb.org/~esr/faqs/smart-questions.html]
Similar Messages
-
i try to purchase a movie but when it started to download the movie about 10 minutes into it it stopped and gave me this message "an unknown error occurred (-50) ...what should i do help me out please
Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting -
I have Firefox 22.0 which does not read .js files. How could I fix that?
I think the problem began after I've installed also Chrome on my computer. But I'm not sure ...
Hello,
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state '''while saving your essential information.'''
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Thank you. -
When I add a title it has a nontransparent black background. How could I fix that?
I have added a few titles on separate tracks over one video footage. They all turned to be be nontransparent and have a black background, so the video is not visible. I don't understand what's going on...Could somebody help please?
OK.
Post a screen shot of your sequence. -
My start page is Google website.
The web page that Firefox open when I clck in new tab option is
http://start.facemoods.com/?a=stonicla&f=2See:
* [/questions/772061] -
Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,
I had a similar occurrence with my just activated iPhone 4.
I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed) -
i used to have itunes on this computer once before, but when my old ipod broke i unistalled it. i found my other ipod so decided to reinstall itunes and it comes up with an error saying that it can't delete former itunes files, how do i fix that?
decided to reinstall itunes and it comes up with an error saying that it can't delete former itunes files, how do i fix that?
What's the precise text of the message please, jessica? (There's a couple of different ones I can think of that you might be getting.) -
I am trying to upgrade to iTunes 11.4 on my Windows7 PC and get an error message that says " iTunes has an invalid signature. It will not be installed" How do I fix that?
Hi curliejo,
Welcome to the Apple Support Communities!
In your situation I would recommend the steps in the following article for troubleshooting iTunes. It may be necessary to completely remove and reinstall iTunes in this situation. Be sure to remove all of the components with iTunes in the correct order as outlined in the article before installing fresh.
Issues installing iTunes or QuickTime for Windows
Have a great day,
Joe -
I just downloaded the OS X Lion mountain and Mail won't open. I get an error message everytime I try to open the app.How can I fix that?
I-Photo won't open even though I have upgraded to OS X Yosemite and downloaded the I-Photo upgrader.
But have you run the the iPhoto Library upgrader? It is installed in Applications > Utilities. Launch it and direct it to your iPhoto library.
Which version of iPhoto did you upgrade from?
The upgrader is only necessary, if you have been running iPhoto7.1.2 or earlier. -
I downloaded mozilla firefox today and now I get the error 0x80070002 all the time, and I cannot use system restore because of it. How do I fix that so that my computer works right again. I was restoring because after I d/l your mozilla today, I lost all of my contacts in my msn email...just been tearing my hair out over this and it is soo darn frustrating. Tell me how to fix this. Marilyn
Hi,
The error is totally unrelated to Firefox. Please see [http://support.microsoft.com/kb/910336 this]. The [http://answers.microsoft.com/en-us Windows OS forum] will also be helpful.
Please also check the downloaded file by right-clicking > Properties > Digital Signatures, which should say '''Mozilla Corporation''' and '''This digital signature is ok''' in '''Details'''. You can download Firefox from a known site like e.g. https://www.mozilla.org/en-US/firefox/new/
You can try to Reset Firefox which would hopefully display the missing features, all (contacts, emails, settings etc.) of which are actually stored at the MSN site and are temporarily displayed by Firefox every time the site is accessed.
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
when i m trying to downgrade my iphone 4s from ios 6.0 to 5.1, i have 3194 error. How can i fix that problem.
Downgrading to an earlier iOS version is not supported by Apple. You will get no help with this direct from Apple or here.
-
when i restore my ipod at the end it says it cannot restore because "ipod software server could not be contacted" how do i fix that?
See here: iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
B-rock -
I have error in apple maps apps.. I can't get directions. then how i fix that error in my iphone 5?
Where do you live? Directions are not yet available everywhere. Read here:
http://www.apple.com/ios/feature-availability/ -
Wanted to. Update my ipad2 wirelessly,went to general,software update,then message appers:"unable to check for update an error occurred while checking for a software update." how do I fix that?
Try set DNS to 8.8.8.8 (do not change the other numbers)
http://i1224.photobucket.com/albums/ee374/Diavonex/53526605.jpg -
What is this message, and how can i fix that problem? when i want to update or restore my cell, this message is coming: (An unknown error occurred (1480))
I am getting the same error message. Have you figured it out?
Maybe you are looking for
-
How to get User Id in Web dynpro application
Hi Experts, I am running web dynpro application with authentication checkbox set. I want to display user id of the user in my application. I am using following code in Init method of component controller. IWDClientUser wdUser = WDClientUser.getCurren
-
File upload, download using ADF UIX and not JSP
I have examples for the file upload, download using JSP But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this. Users will select a file from their desktop This will be stored into the dat
-
In OWB 9i, the database links are not generated as part of the mapping anymore. My problem is that I create a new source module and then a mapping using this source module, but it does not generate the code for the database link. When I deploy the ma
-
Query problem with multiple date fields.
I need to select the greatest date from six different fields in each record and identify from which column was selected. date01 date02 date03 date04 date05 date06 010190 010107 010190 010190 010190 010190 010190 010190 010105 010190 010190 010190 010
-
OSX 8.2 new Retina Macbook Pro won't wake from sleep.
Since upgrade to OSX 8.2 new Retina Macbook Pro won't wake from sleep. Tablet lights are on in morning and fans running like crazy, but it requires hard quit and start. Tried with no apps running, no change. It was fine before this last update. Wasn'