How can i change an existing JPanel from a JFrame after an event happens?
Good day!
i'm new in java programing and im trying to build a GUI for a for a small inventory system.
here's a part of my code............
if(e.getSource()==invButton){
if(username.equals(storekeeper)){
cont.add(new Equipment(cont,deck,username),"equipment");
deck.show(cont,"equipment");
cont.remove(this);
}else{
cont.add(new EquipmentEmployee(cont,deck,username),"equipmentEmployee");
deck.show(cont,"equipmentEmployee");
cont.remove(this);
my code calls a new class called Equipment.java after a button is pressed and add it into a frame.
but the problem is nothings happened. my code didn't work.
can anyone help me fix my problem?..
thanx!!...
my code calls a new class called Equipment.java after a button is pressed and add it into a frame.
but the problem is nothings happened. my code didn't work.Did you add the action listener to your button? Like below:
invButton.addActionListener(this);
Similar Messages
-
How can I checkout an existing file from CVS without going through the wiz
How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?
You can't. AI doesn't produce .PLT files.
-
I changed my land/region to Germany, but i want my app store in English language, how can i change it to English from German?
plz help..You cannot.
-
How can I copy my existing contacts from 1 Apple ID to a new one?
How can I copy my existing contacts from 1 Apple ID to a new one?
Click here and pick the option which best fits your situation. Rented movies can only be moved through the iPod and will not play on the new computer if any other method is used.
(98456) -
How can I change the itunes store from Swiss to the Italian one on my ipad2 with new software ios6? Thanks
See More Like This to the right of this post!
-
Seen this question before but no answer, how can I change my email address from all caps into a more proper upper-lower style.
You should be able to change your e-mail address from your provider ... then edit it to meet the Apple requirements. Unfortunately you've given us no profile details so we can't tell what device you have.
-
How can i change My app store from USA To Sweden?
How can i change My app store from USA To Sweden?
If you are getting an 'account not in this country' message then try going to the bottom of the Featured tab in the App Store app on your iPad and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select Sweden.
-
How can i change my app store from us to uk?
how can i change my app store from us to uk?
Hello Emilaine
To change countries of the iTunes Store, go to Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region. From there it is a matter of picking the U.K. Store and you should be good.
iOS: Changing the signed-in iTunes Store Apple ID account
http://support.apple.com/kb/ht1311
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
How can I change my existing Creative Cloud Student and Teacher Subscription to Photoshop CC offer?
I have been on the online chat waiting for 6 hours now. and I tried calling with no luck either.
I would like the $9.99 Photoshop CC offer instead.Hi Joseph
I've cancelled your existing plan so you can sign up for the Photoshop Photography plan - offer extended until December 8th.
Thanks
Bev -
HOW CAN I CHANGE MY BACKUP FOLDER FROM THE C DRIVE TO ANOTHER????? because my c drive in the windows computer gets filled and i need to back up my ipod to a portable hard disk.. bt i dont know how to do it.. plz help
you can't change the backup folder as far as I know, but you can choose to move backups. The information you need can be found in this article: http://support.apple.com/kb/ht4946
Where iTunes backups are stored on your computer
The folder where your backup data are stored varies depending on the computer's operating system. Make sure the backup folder is included in your periodic data-backup routine.
iTunes places the backup files in the following places:
Mac: ~/Library/Application Support/MobileSync/Backup/
Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press the Return key.
Hope this helps
Regards,
Stijn -
How can I change the desktop language from english into german??
how can I change the desktop language from english into german??
See:
*http://www.mozilla.com/en-US/firefox/all-beta.html -
How can I change the photo pixal from 1000 to 500?
how can I change the photo pixal from 1000 to 500?
File -> Export
In the resulting dialogue use the Size option to set the maxium dimension to 500 pixles.
This User Tip
https://discussions.apple.com/docs/DOC-4921
has details of the options in the Export dialogue. -
How can I change the shipping time from 1-2 weeks to 2 days
How can I change the shipping time from 1-2 weeks to 2 days. Thank you in advance.
Right you are, R_Kelly. Thanks, that did the trick. Ukgaurav also pointed out some choices in the Displays and Cursors Preferences with which I fine-tuned the tool cursor appearance.
-
How can I change screen capture format from .png to .jpg in LION
how can I change screen capture format from .png to .jpg in LION. The "terminal" suggestions of the past don't work? Thanks!
This works for me:
defaults write com.apple.screencapture type XXX
where XXX is one of png, pdf, jpeg-jfif, jpeg 2000, tiff, pict, bmp, gif, psd, sci, or tga. You need to log out and back in for the change to take effect. -
How can I change my apple ID from current country to the other
How can I change my apple ID from one country to the other (HK -> Canada)? I have already amended the address and credit card information instead. But the error message still shown my appleID only can purchase in HK. Anyone can tell how to update my appleID to purchase Canada apps. Thx.
Settings>iTunes and App Stores>Apple ID
Tap your ID
Tap View Apple ID
Enter your password
Go to country/region in the popup window to change the store
Maybe you are looking for
-
could anyone help, just baffled, my i phone is literllly dead for no reason. i thought the battery had ran out, thou it had plenty left... i have tried to charge it and no life. also have plugged it in with my computer, again no life or aknowledgemen
-
Unwanted bookmarks when generating a PDF in FM 8.0
I have a issue about generating bookmarks when creating a PDF. After I have finished my book, I identify my bookmarks while in the PDF setup window. But for some reason, FM creates bookmarks for paragraph tags that I didn't choose. This is happening
-
Devestated by dissapearing Quicktime files! Help!
Hi, I've been editing a short film for a few days. Turned my computer on today and all the files have gone offline... No problem, I go straight to the files to reconnect but it tells me that the file 'does not have proper content to reconnect'. So i
-
Hi all, I created a delivery note for a material from one plant to another using transaction VL10D as I always do, but for some reason it did a 603 mvt type instead of a 641 mvt to place the material in transit, problem is that destination plant cann
-
Does MyFaces works well in Sun Application Server
I want to use its upload component, but I found that the AS was not in the compatible list of MyFaces. Is there anyone who has tried MyFaces's upload component in the Sun Application Server? Does it works well? Please tell me. Thank you for your help