Asking about icon and mouselistener

i think i post this thread before but it was gone. so i post it again.
anybody knows how to insert icon in JFrame? so far, it can only implemented in JPanel. and somebody help me how to make icon larger than before and show some tooltip when mouse select it? in my mind, we just add listener when mouse over image, then setTooltips. is it right?

i think i post this thread before but it was gone. so i post it again. Quit cluttering the forum with multiple postings and learn how to use the forum properly.
You can find you postings by:
a) displaying your "Watch List" which can be found on the left of the forum when you are logged in
b) searching the forum for any posting that contains your userid
Also, Swing related questions should be posted in the Swing forum, but there is no need to create a third posting because you already got an answer in your first posting so all you need to do is find it.

Similar Messages

  • HT5312 my ipad suddenly ask about backup and not responding i try to connect to net or to unlock it nothing work what can i do

    my ipad mini hasnt been backed up since i bought it now sudenly it ask about back up icant even unlock it ifeel te please help merrible

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • A question about ActionListener and MouseListener

    Hi,
    my question here is when we should implement a MouseListener and when we should use ActionListener instead.
    I know ActionEvent is fired when a action performed, for instance, a button was pressed down, but I think by implementing a MouseListener, we can use its mouseClicked(MouseEvent e) method to do the same job as the actionPerformed method.
    So, what's the difference between a actionevent(button has been pressed down)and a mouse event(click on a button)? And when we should use them?

    Using the ActionListener actionCommand is the normal paradigm for button clicks.
    ActionEvents, ChangeEvents etc are much higher-level than MouseEvents. And you should use the highest level of abstraction that provides sufficient specificity.
    When adding MouseListener to an component you actully let the system do more work then needed.
    ( you have the mouseEntered, mousePressed, mouseClicked, mouseReleased, ..)
    Every button click will "generate" three mouse events... pressed, released and clicked.
    good luck!

  • Ask about import and instruction which i don't understand.

    Hi,
    I am very new to java. please help..
    I want to run some example in some sites i found.
    but some time i found that the sample requires or need me to download the included library in order to run the code successfully
    while i don't know what, how and where to put that library.
    i download it, and it in .jar type. , i also find the instruction like this : *"Please note that these packages must be on the classpath of your building environment."*
    what that means actually ?, how to accomplish it ?
    and what about that .jar file, i think it must be a collection of file (or class???) , because when i looked at the code, it contains some import commands. and that jar file is the required files to download.
    please give me some brief n clear knowledge about this.
    thanks,
    ganero

    Ganero wrote:
    Hi,
    I am very new to java. please help..
    I want to run some example in some sites i found.
    but some time i found that the sample requires or need me to download the included library in order to run the code successfully
    while i don't know what, how and where to put that library.
    i download it, and it in .jar type. , i also find the instruction like this : *"Please note that these packages must be on the classpath of your building environment."*
    what that means actually ?, how to accomplish it ?
    and what about that .jar file, i think it must be a collection of file (or class???) , because when i looked at the code, it contains some import commands. and that jar file is the required files to download.
    please give me some brief n clear knowledge about this.
    thanks,
    ganeroBrief and clear knowledge starts with learning te Java language. [http://download.oracle.com/javase/tutorial/index.html]
    You can also find lots of examples at these tutorials.

  • Somewhat old iPhone 5, gonna upgrade to ios 7. asking about iWork and iLife.

    i was watcing the event last night where tim cook revealed the iphone 5s and 5c and he was saying that iWork suite apps and iLife suite apps are gonna become free. this morning i check the apple website and was looking at the specs of the iPhone 5s and when i scrolled all the way to the bottom it said something about devices activated after sept. 1, 2013 will have iWork and iLife available to them...
    does that mean that i have to get a new iphone and activate it.... im really confused about this....

    Good for you. But, that's NOT what the footnote says. The footnote states Apple devices activated after 9/1 that can run IOS 7.0...nothing about when purchased. Since all iOS devices that can run iOS 7.0 will require "activation" after being updated, I think the footnote needs clarification from Apple, and apparently, I'm not the only one that feels so. This is the second post I've seen regarding this.
    Like I said, we'll find out when iOS 7.0 is released, unless Apple gives clarification before hand.

  • I have a question regarding a small blue question mark instead of photo, I asked about this and was directed to a question about text edit, which, by the way, a neighbour helped with.

    Email photographs not seen, photograph are replaced with a small blue question mark.....what do I need to do to see the pictures ?

    Hello tomfromridgetown,
    Welcome to the Apple Support Communities! 
    I understand that sometimes when you receive an email it contains a small box with a question mark for the attachment. It sounds like what you may be seeing is a windmill.dat attachment. Please review the attached article for information on what these attachments are and how to avoid them in the future. 
    Mac OS X Mail: What is a winmail.dat attachment? - Apple Support
    Have a great day,
    Joe 

  • Ask about vector and database

    i want get data from database and save to vector. how to do?
    if anyone can provide the code
    Thank you

    maskhe wrote:
    i want get data from database JDBC tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    and save to vector. how to do?Collections tutorial (a Vector is a collection):
    http://java.sun.com/docs/books/tutorial/collections/index.html
    if anyone can provide the codeIn the tutorials I posted is example code.
    Thank youYou're welcome.

  • When I open up Calendar it asks about adding and event and gives me the option to choose a calendar, or I can click on cancel.  If I choose cancel, the window pops right back up.  If I click continue thousands of imports start opening...Calendar freezes.

    I would like to get into preferences to shut off calendars, but I cannot get to preferences will these windows are up.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I run OSX10.6.8. Just dwnlded FF8.1 and everytime I go to open it I am asked about the disk image. But if I delete the dmg, the program won't run.

    I just downloaded the 8.1 version. It was a 30+mb file. Previously I ran 4.0. So I drag the new Firefox icon into the Apps folder. It does its merge thing with the old version. Problem is when I click to open FF now, it always throws up this window asking me about the disk image of what I just downloaded. I even tried restarting the computer--but the same message pops up. I checked on your website and it says that I need to "eject" the disk image (i.e. I'm guessing that means the 30+ mb file I just down loaded), so since I don't have an eject option that I can find (except for external harddrives and cd/dvd), I just drug it into the trash. I go to empty the trash and I get a message that that dmg file is "in use" even though FF is completely shut down. So again I'm guessing that means that even though I already merged that dmg file with the old 4.0 version file, if I dump the update file it seems that it's going to mess up the actual revised program file still remaining. I just want to be able to click on the icon in my dock like I've always done and have FF open. I don't want to keep being asked about disk image stuff. Somehow this feels like an easy resolution, but I just can't seem to put my finger on how to resolve it. Thanks for you help.

    Nope---didn't work. I've owned Macs for about 12 years so although I am brain dead on some things, I do have a working knowledge on most things. I only say that to say this--I did try holding down the mouse and choosing empty trash. It asks if I want to permanently delete what's in there. I say yes--and then I get the same identical message again-----'The operation can't be completed because the item "Firefox 8.0.1.dmg" is in use I can then click stop, or continue.' So apparently that complains the same way it does if I click it up on the menu :)))
    As for item owned by---that's not an issue and isn't coming up. User is not a problem either as I am the only user on this system. There is only ONE file in my trash at the moment at that is this dmg file. Nothing Mac. Nothing owned by anyone other than Firefox. The problem seems to be that the dmg file and the original 4.0 FF file are working in tandem with each other--even though I have already drug the new 8.0 globe into the Apps folder and it updated the FF app with the new stuff. If I could force the dmg file to go away, I would do so, but at every turn the system is telling me it can't be done because it seems to think that dmg file is in use---even though everything is shut down and/or ejected. Hey--I'm getting ready to head out and won't be back till evening. I'll check back in this evening. Thank you again for your help.

  • I want to ask about iphone that the facetime is not working in UAE is that a problem ? and this problem affect the front camera "hardware"?

    i want to ask about iphone that the facetime is not working in UAE is that a problem ? and this problem affect the front camera "hardware"?

    minaaemile wrote:
    there somting is like not clear so  i think that the blocking of factime is affect the front camera so i want be sure if the front camera of iphone from UAE is like any iphone from another country and have the same quality ??
    The front-facing camera is available for use even without FaceTime.  If you are having issues with your front-facing camera, I suggest troubleshooting the issue:
    Basic Troubleshooting Steps when all else fails
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6 older, hold down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
    - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • I don't know much about computers, so please be patient. I started using Airport and I recently noticed a "network" option right below "Macintosh HD". When I click on "network" it shows "b67446000000" with a computer monitor icon and "connection fail

    I don't know much about computers, so please be patient. I started using Airport and I recently noticed a "network" option right below "Macintosh HD". When I click on "network" it shows "b67446000000" with a computer monitor icon and "connection failed". When I right click on this and select "Get more info" it displays nothing, just the spinning wheel. When I select "Connect As" it asked for my password to connect to "Server b67446000000". This may have been on my computer since I got it, I never paid much attention. Is this part of the operating system or has someone hijacked my computer? Why would I need a server...it's just me and my one computer? Maybe someone has hacked in through Airport? Any help will be greatly appreciated. Thanks!

    Is your airport a Time Capsule.. if so it is able to serve files on the network.
    The number is the MAC address of the network in the router.
    Please reset the apple router whatever is and redo the setup.. this time give it a simple name.. eg TCgenX where X is the actual gen of the unit and give it a simple wireless name.. TCwifi and a simple password with 8-20 characters mix of upper and lower case and numbers.
    Perhaps even better give me a screenshot from the computer of the airport utility showing me the Airport with its MAC address.

  • Trying to select the Calendar check box in iCloud window and then it asks me If I want to merge I hit ok and the it tries to ad see spinning fan icon and then just quits and is then unchecked.  Does Anyone have a solution to fix this?

    Trying to select the Calendar check box in iCloud window and then it asks me If I want to merge I hit ok and the it tries to ad see spinning fan icon and then just quits and is then unchecked.  Does Anyone have a solution to fix this?  It works just fine on all other 5 Macs I have.  I have tried to sign out and in and even restart the computer.  I am running Yosemite on all 6 of my Macs.

    Search the web or help doco about the Captivate feature called Return to Quiz.  It will do what you are looking for here according to your description.  There's even a Youtube video from a year or two back that shows how it works.

  • Installed the ios 7.0.2 update to my iphone 4, now it is stuck on a screen with itunes icon and power plug.  is this corect? I am unable to use the phone now.  What should i do next? I plug in to itune in my computer and ask me to restore my phone?

    installed the ios 7.0.2 update to my iphone 4, now it is stuck on a screen with itunes icon and power plug. 
    I am unable to use the phone now.  What should i do next? I plug in to itune in my computer and ask me to restore my phone? I will loose all my date?

    I hooked up itune and restore.  after finished restores, it said my phone is in recovery mode and needs to be finish before using itune, my screen still show the itunes icon and power plug

  • I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.

    I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.  
    Yesterday I opened up the iMac and reinstalled the drive to make sure that it was not an alignment problem.   I still can not eject.   When I try to eject the drive makes noises like it is ejecting but the disk does not come out.
    How do I solve this problem?

    Hi again Hal
    Link to your other thread > The slot loading CD/DVD drive in my...: Apple Support Communities
    You have also tried resetting the PRAM as I suggestion in your other thread...?
    See resetting the PRAM > About NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.

  • Firefox crashes instantly on startup. i double-click on the icon and i instantly get a crash report asking to restart or quit. if i hit restart another crash report instantly comes up. im not sure what t do here

    firefox crashes instantly on startup. i double-click on the icon and i instantly get a crash report asking to restart or quit. if i hit restart another crash report instantly comes up. im not sure what t do here

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.org/kb/Firefox+crashes

Maybe you are looking for

  • ECC QAS e PRD enviando para GRC PRD, PI PRD e SEFAZ HOMOLOGAÇÂO e PRODUÇÃO

    Temos somente um ambiente de GRC NFe e PI que usamos para desenvolver, realizar o teste integrado com SEFAZ Homologação e entramos em  produção. Precisamos que os dois cenários abaixo funcionem: ECC QAS  ->  GRC NFe PRD -> PI PRD -> SEFAZ Homologação

  • Apps list not showing in snow leopard dock

    I dragged the applications icon/folder from the user to the right of the hash marks on the dock, but all I get when I click on it is a line with Options and Open in Finder,no apps list (though it's set for sort by name, display as folder and vieew as

  • XI - Jump starting

    Hi guys, Iam new to XI and while going through all the books & courses,I have some questions in my head which needs to be cleared. Its quite a few questions.Would appreciate if some one has the patience to go through it all [1] How is the plain Http

  • Why can't I just speak to somebody in Sales? Why don't Adobe have a sales number on their site?

    Why can't I just speak to somebody in Sales? Why don't Adobe have a sales number on their site?

  • Do anything in just one scheme

    Hi friends. I have a user with DBA privileges but it is so much. How do I know which schemes exists in my Oracle and then how do I give privileges for do anything but in just one specific scheme? <br> Thanks