How do you change default java logo in JOptionPane?

I want to know how do you change the icon(the java logo in the title bar) for the JOptionPane box. I am using a swing interface. I can change the icon of the main frame but not of the JOptionPane.
for the main frame i have used:
     Toolkit kit = Toolkit.getDefaultToolkit();
     Image img = kit.getImage("mypicture.gif");
     setIconImage(img);
Toolkit is part of java.awt package.
thanks

here was a discussions about that
http://forum.java.sun.com/thread.jsp?thread=120724&forum=57&message=316526

Similar Messages

  • How can you change default persmissions saving files

    Mac OS 10.5.8, intel based Mac Pro
    When I save a file it has the permissions RW RW R.  There is another 10.5.8 non-intel Mac Pro then when they save a file to the destop, it is RW R R.  How do you change the default saving permissions?  I want it always to be RW RW W.

    I found it!
    http://support.apple.com/kb/HT2202
    you need to create /etc/launchd-user.conf at noted in the URl above with umask 022 in it.
    BDAqua - Thanks for the reply.  After I created the file and logged out/ back in, I had to change the permissions on the folder also.

  • How do you change default program?

    I have photoshop on an external drive which is fine... But it is listed as the default program to open jpeg files, and I am often not connected to the external, when I'm on the go.
    How do I change the default program back to Preview?

    Yes it does list Preview as default, when the ext is not connected, but once the external is connected Photoshop takes over. I unfortunately can't do anything more about this at the moment as the External decided to stop working.
    I've already posted this error on the Western Digital website, but maybe I can get feedback her as well... My 500Gb WD My Book, worked fine for months now, yesterday I started it up and it would not access it, when i went into drive utility it is not listed as a 2 Tb WD Esternal. **** it grew!?! Same thing when connected to a PC, connection established, but you cant see the drive in Explorer. Weird...?

  • How do you change default settings for Pdf document viewing?

    Somehow the default setting for all my PDF documents and photos is now ColorSync. How do I change the main default setting, which I think should be Safari?

    The default is Preview, and you change it thus:
    Select a pdf file, rightclick and select 'Get Info', in the pane that opens scroll down to the section marked 'Open With', select Preview and check the box to 'Change All'

  • Pages. How Do You Change Default Settings?

    Is it possible to set new defaults to shapes and fonts without having to start over with a new template?
    I've got too many Pages files and would like to see the defaults changed in these.

    Here is how you change the default font in Pages '09.

  • CLICK2CALL: HOW DO YOU CHANGE DEFAULT ACCOUNT?

    There are 2 Skype accounts on this laptop - one for free messaging, while the other has credit. When I click on a phone number, I want to be taken to the account with credit - but I'm taken to the other.
    How do I change it?
    Andrew.

    On the iPhone 4s - Settings>Notes> Default account - iCloud does not show up, only On My iPhone.
    The iPhone 4s iCloud setting is the same apple id as the iPhone 5 and the mac book pro.
    Under iCloud settings on the 4s - Notes is turned on. I have turned it off and back on several times.   
    When I check Settings>General>Software Update> 
    The iPhone 4s is up to date with iOS 6.0.1(10A532) 
    The iPhone 5 is up to date with iOS 6.0.2 (10A551).
    Is there a difference between iOS 6.0.1 and iOS 6.0.2 that would affect Notes?
    Under Settings>General>About> Carrier>
    iPhone 4s is Verizon 13.0
    iPhone 5 is Verizon 13.3
    As near as I can tell, that is the only differences between the operating systems of the iPhones.
    I have turned both iPhones off and restarted them.

  • How do you change default note size font

    I accidentally posted this for iWork previous to 08, sorry. I want to change the default font size for all notes in a file. I realize you can change them one slide at a time by using Cmd-+or-, but I don't want to have to do every one separately since I'm just trying to record a narration. Likewise I still have no answer to how one sees presenter notes on the slide while recording a narration! Help!

    Thanks, Sam. Yes, I could easily change the individual slides, too, but there seems to be a rather large hole in the program, if you're promoting this for kiosk use or even just being able to send to possible interested parties without being present and therefore you want to narrate it. AARGH! Is there NO one at Apple who even occasionally looks at it's own forums! And it's not in the Knowledge database either.

  • How do you change default swatches?

    Where is the default color swatches file located for Photoshop CS6? I'm tired of constantly deleting dozens of useless swatches; I want Photoshop to start with a blank Swatches palette every time.

    Photoshop loads the last used swatches by default when it loads.
    If you want a blank swatch palette, follow instructions here http://help.adobe.com/en_US/photoshop/cs/using/WSb2031e05d0354a70-1a6fe757133ae6e6508-8000 .html and empty out your default swatches, click on Fly-out menu > Save Swatches > Give a name for your 'Blank swatch'. Close Photoshop.
    The next time you open Photoshop, you'll only see the 'Blank Swatch' that you had saved earlier unless you append/ change the swatches in your workflow and quit photoshop with the available swatch panel.

  • How do you change default gamma assigned to new displays

    Is there a way the change the default gamma assigned to a newly detected display not already in the database?
    Thank you,
    Nally

    In System Prefernces > Displays > Calibrate. Make sure that the desired display is attached then follow through the options. Be sure to click on "Expert Mode" in the bottom left of that window.

  • How do you change default greyscale colouring of graphs in illustrator CS4

    I've been trying to format graphs in illustrator CS4 and can't figure out how to change the defualt colour from Greyscale to be a swatch of my own choice without having to change it manually once the data is entered.
    Is there a way of changing the settings? This is driving me nuts!!!

    You really can't but you can recolor the chart using a color group you define.
    Describing in written words how the recolor art feature  works is not practical for me so it is by a movie
    http://mysite.verizon.net/wzphoto/recolor.mov
    BTW if you want the colors to be the value of one color just make a color group of one color and apply it or choose a one color job from the drop down.
    Like this

  • ? How do you change default for .pdf files from Reader 6 to reader 9

    I cannot change the default for .pdf files from reader 6 to reader 9. Also I cannot remove reader 6. I am running Vista

    Normally, completely removing old versions and reinstalling the latest version will reassociate all applicable extensions for the program, but it appears to have failed in your case.  There may be something else going on with your machine that is producing this behavior.  You probably need to investigate that.  But what you can do to make sure the defaults are correct is click on the start orb and select 'Default Programs.'  Then select 'Associate a file type or protocol with a program.'  From the list of file types, select each of the following in turn: acrobatsecuritysettings, fdf, pdf, pdfxml, pdx, xdp, and xfdf.  If its default program is not Adobe Reader, click on the Change Program button and select Acrobat Reader from the list (you may need to expand the lower section to display more programs than it initially provides).  If Adobe Reader does not show up in the list, you will have to browse for it.  It should be located in C:\Program Files\Adobe\Reader 10\Reader\AcroRd32.exe or C:\Program Files (x86)\Adobe\Reader 10\Reader\AcroRd32.exe.
    This method is safer than manually editing the Root\Classes in the registry.

  • How do you change default note size

    This must be an old question but search found me nothing. I just want to find a default to change the note size for all slides to something besides the very large one I'm now stuck with. Thanks!

    Thanks, Sam. Yes, I could easily change the individual slides, too, but there seems to be a rather large hole in the program, if you're promoting this for kiosk use or even just being able to send to possible interested parties without being present and therefore you want to narrate it. AARGH! Is there NO one at Apple who even occasionally looks at it's own forums! And it's not in the Knowledge database either.

  • How do you change a java program to a single file executable file?

    Hey guys I'm back with another new to java question :)
    i would like to have my java program that i made into an executable single file,
    i currently have my project compressed into a JAR file,
    and its working fine when i go click on it in the file that its in, it works fine but it has to be in that file to work... :(, i was wondering is there a way that i can have that file on its own to work, so that i can send it to someone and they just have to have that one file.
    thanks for the help

    If you want a jar file to behave the same way no matter what directory it is in (or is run from) then you have to make sure that all resources it uses are included in the jar. Such resources could include images and sounds that the application uses. Or files that it references.
    For instance thisFile foo = new File("foo.txt");is going to name a file that it is in the current directory (the directory the jarred or unjarred application was run from). If you move the jar, but don't move foo.txt then it won't be able to find the file.
    Any of your code that directly or indirectly uses files will have to change to use resources within the jar archive instead.
    If you get stuck, post some code. Something brief, compilable, runnable which shows what you mean by saying that it doesn't work.

  • How do you change default e-mail address in iPhoto 9.6?

    I've changed my e-mail address but iPhoto defaults to the old one when I try to e-mail photos directly from iPhoto

    iPhoto Menu -> Preferences -> Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • How do you change default page size in pdf?

    I purchased CREATE solely to create a pdf file from a scanned document. I created the PDF but the default page size is 30.15 x 20.83 INCHES. I cannot seem to change the page size. I called support services 4 times (talking with Sakthivel, Shashank, Medhet, and one other.) Each time they indicated that they would connect me to the correct people and they disconnected. I want some answers please. This seems to be a simple question. Is Adobe CREATE merely a scam?

    CreatePDF, perhaps?  Try the forum at http://forums.adobe.com/community/createpdf

Maybe you are looking for