Color names in Java code format.  Looking for the 216 safe colors.

Color names and associated values are available in HTML format; I am looking for such a list in Java code.
thanks for any help.

// Since I could not find it, I pasted it up myself.
// Since I think it is useful and cool, I am sharing it.
import java.awt.Color;
Java class of the standard non-standard "safe" browser colors.
View and choose colors grouped by color at
<http://halflife.ukrpack.net/csfiles/help/colors.shtml>
or others.
Colors in this alpha ordered list are presumed to correspond.
public class Colors {
public static final Color AliceBlue = rgb("F0F8FF");
public static final Color AntiqueWhite = rgb("FAEBD7");
public static final Color Aqua = rgb("00FFFF");
public static final Color Aquamarine = rgb("7FFFD4");
public static final Color Azure = rgb("F0FFFF");
public static final Color Beige = rgb("F5F5DC");
public static final Color Bisque = rgb("FFE4C4");
public static final Color Black = rgb("000000");
public static final Color BlanchedAlmond = rgb("FFEBCD");
public static final Color Blue = rgb("0000FF");
public static final Color BlueViolet = rgb("8A2BE2");
public static final Color Brown = rgb("A52A2A");
public static final Color BurlyWood = rgb("DEB887");
public static final Color CadetBlue = rgb("5F9EA0");
public static final Color Chartreuse = rgb("7FFF00");
public static final Color Chocolate = rgb("D2691E");
public static final Color Coral = rgb("FF7F50");
public static final Color CornflowerBlue = rgb("6495ED");
public static final Color Cornsilk = rgb("FFF8DC");
public static final Color Crimson = rgb("DC143C");
public static final Color Cyan = rgb("00FFFF");
public static final Color DarkBlue = rgb("00008B");
public static final Color DarkCyan = rgb("008B8B");
public static final Color DarkGoldenRod = rgb("B8860B");
public static final Color DarkGray = rgb("A9A9A9");
public static final Color DarkGreen = rgb("006400");
public static final Color DarkKhaki = rgb("BDB76B");
public static final Color DarkMagenta = rgb("8B008B");
public static final Color DarkOliveGreen = rgb("556B2F");
public static final Color Darkorange = rgb("FF8C00");
public static final Color DarkOrchid = rgb("9932CC");
public static final Color DarkRed = rgb("8B0000");
public static final Color DarkSalmon = rgb("E9967A");
public static final Color DarkSeaGreen = rgb("8FBC8F");
public static final Color DarkSlateBlue = rgb("483D8B");
public static final Color DarkSlateGray = rgb("2F4F4F");
public static final Color DarkTurquoise = rgb("00CED1");
public static final Color DarkViolet = rgb("9400D3");
public static final Color DeepPink = rgb("FF1493");
public static final Color DeepSkyBlue = rgb("00BFFF");
public static final Color DimGray = rgb("696969");
public static final Color DodgerBlue = rgb("1E90FF");
public static final Color Feldspar = rgb("D19275");
public static final Color FireBrick = rgb("B22222");
public static final Color FloralWhite = rgb("FFFAF0");
public static final Color ForestGreen = rgb("228B22");
public static final Color Fuchsia = rgb("FF00FF");
public static final Color Gainsboro = rgb("DCDCDC");
public static final Color GhostWhite = rgb("F8F8FF");
public static final Color Gold = rgb("FFD700");
public static final Color GoldenRod = rgb("DAA520");
public static final Color Gray = rgb("808080");
public static final Color Green = rgb("008000");
public static final Color GreenYellow = rgb("ADFF2F");
public static final Color HoneyDew = rgb("F0FFF0");
public static final Color HotPink = rgb("FF69B4");
public static final Color IndianRed = rgb("CD5C5C");
public static final Color Indigo = rgb("4B0082");
public static final Color Ivory = rgb("FFFFF0");
public static final Color Khaki = rgb("F0E68C");
public static final Color Lavender = rgb("E6E6FA");
public static final Color LavenderBlush = rgb("FFF0F5");
public static final Color LawnGreen = rgb("7CFC00");
public static final Color LemonChiffon = rgb("FFFACD");
public static final Color LightBlue = rgb("ADD8E6");
public static final Color LightCoral = rgb("F08080");
public static final Color LightCyan = rgb("E0FFFF");
public static final Color LightGoldenRodYellow = rgb("FAFAD2");
public static final Color LightGrey = rgb("D3D3D3");
public static final Color LightGreen = rgb("90EE90");
public static final Color LightPink = rgb("FFB6C1");
public static final Color LightSalmon = rgb("FFA07A");
public static final Color LightSeaGreen = rgb("20B2AA");
public static final Color LightSkyBlue = rgb("87CEFA");
public static final Color LightSlateBlue = rgb("8470FF");
public static final Color LightSlateGray = rgb("778899");
public static final Color LightSteelBlue = rgb("B0C4DE");
public static final Color LightYellow = rgb("FFFFE0");
public static final Color Lime = rgb("00FF00");
public static final Color LimeGreen = rgb("32CD32");
public static final Color Linen = rgb("FAF0E6");
public static final Color Magenta = rgb("FF00FF");
public static final Color Maroon = rgb("800000");
public static final Color MediumAquaMarine = rgb("66CDAA");
public static final Color MediumBlue = rgb("0000CD");
public static final Color MediumOrchid = rgb("BA55D3");
public static final Color MediumPurple = rgb("9370D8");
public static final Color MediumSeaGree = rgb("3CB371");
public static final Color MediumSlateBlue = rgb("7B68EE");
public static final Color MediumSpringGreen = rgb("00FA9A");
public static final Color MediumTurquoise = rgb("48D1CC");
public static final Color MediumVioletRed = rgb("C71585");
public static final Color MidnightBlue = rgb("191970");
public static final Color MintCream = rgb("F5FFFA");
public static final Color MistyRose = rgb("FFE4E1");
public static final Color Moccasin = rgb("FFE4B5");
public static final Color NavajoWhite = rgb("FFDEAD");
public static final Color Navy = rgb("000080");
public static final Color OldLace = rgb("FDF5E6");
public static final Color Olive = rgb("808000");
public static final Color OliveDrab = rgb("6B8E23");
public static final Color Orange = rgb("FFA500");
public static final Color OrangeRed = rgb("FF4500");
public static final Color Orchid = rgb("DA70D6");
public static final Color PaleGoldenRod = rgb("EEE8AA");
public static final Color PaleGreen = rgb("98FB98");
public static final Color PaleTurquoise = rgb("AFEEEE");
public static final Color PaleVioletRed = rgb("D87093");
public static final Color PapayaWhip = rgb("FFEFD5");
public static final Color PeachPuff = rgb("FFDAB9");
public static final Color Peru = rgb("CD853F");
public static final Color Pink = rgb("FFC0CB");
public static final Color Plum = rgb("DDA0DD");
public static final Color PowderBlue = rgb("B0E0E6");
public static final Color Purple = rgb("800080");
public static final Color Red = rgb("FF0000");
public static final Color RosyBrown = rgb("BC8F8F");
public static final Color RoyalBlue = rgb("4169E1");
public static final Color SaddleBrown = rgb("8B4513");
public static final Color Salmon = rgb("FA8072");
public static final Color SandyBrown = rgb("F4A460");
public static final Color SeaGreen = rgb("2E8B57");
public static final Color SeaShell = rgb("FFF5EE");
public static final Color Sienna = rgb("A0522D");
public static final Color Silver = rgb("C0C0C0");
public static final Color SkyBlue = rgb("87CEEB");
public static final Color SlateBlue = rgb("6A5ACD");
public static final Color SlateGray = rgb("708090");
public static final Color Snow = rgb("FFFAFA");
public static final Color SpringGreen = rgb("00FF7F");
public static final Color SteelBlue = rgb("4682B4");
public static final Color Tan = rgb("D2B48C");
public static final Color Teal = rgb("008080");
public static final Color Thistle = rgb("D8BFD8");
public static final Color Tomato = rgb("FF6347");
public static final Color Turquoise = rgb("40E0D0");
public static final Color Violet = rgb("EE82EE");
public static final Color VioletRed = rgb("D02090");
public static final Color Wheat = rgb("F5DEB3");
public static final Color White = rgb("FFFFFF");
public static final Color WhiteSmoke = rgb("F5F5F5");
public static final Color Yellow = rgb("FFFF00");
public static final Color YellowGreen = rgb("9ACD32");
public Colors() {  }
private static Color rgb(String hexValue){
return(new Color(
Integer.parseInt(hexValue.substring(0, 2), 16),
Integer.parseInt(hexValue.substring(2, 4), 16),
Integer.parseInt(hexValue.substring(4), 16)));

Similar Messages

  • Looking for Pre-Rendered Editing / Color Grading Workflow suggestions.

    Looking for Pre-Rendered Editing / Color Grading Workflow suggestions.
    All my material is rendered via RenderMan, our resolution is 1280x544, and our format is generally .exr in 32 bit space.
    Our editor has been converting over to 32-bit tiffs, and using Apple Intermediate Codec for editing, mostly for speed concerns.
    We need to re-vamp our workflow so that we can edit our footage, and then do color grading of the edit head to tail to smooth the look between scenes. We want to do this in Color, being fed by Final Cut Pro's timeline.
    We want to keep our bit depth as high as possible when coming into Color.
    My question is, does anyone here have any workflow suggestions for doing what I am talking about.
    I wasn't sure if we should just export and EDL from FCP and try to get Color to load our single frames from that. Or if there is a special Quicktime wrapper we should be using, or converting our 32-bit .exr files into some other format more readily available for using in Color?
    Any thoughts would be great, thanks in advance!

    You're not going to get anywhere beyond 10-bit. That's it.
    Try encoding to 10-bit LOG dpx if you need upscale RGB.
    jPo

  • How to look for the Table Name

    Hi Friends,
    Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
    Thanks for the assistance.
    Regards

    Hi Friend,
    If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
    Abap Dictionary > Fields > Table Fields.
    Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
    Regards,
    Jigar

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Code Formatting Instructions for Developer Forums

    Although this topic only applies to the two Developer forums, the need for some upfront code formatting instructions in those forums is desperate. There may be hundreds of threads which include one or more messages on this subject. In my case alone, I've posted at least a dozen messages each containing these three lines:
    Paste your code here.
    Of course a quick search of either Dev forum on the keys +code formatting+ will find the above right away, but those who need help the most don't know code requires special formatting so won't be making that search. For the same reason, neither the excellent instructions in the User Tips Library nor the pertinent threads in this forum are likely to be discovered before they're needed. The +Help & Terms of Use+ FAQ might seem to be a good place for the instructions, but this has been proposed so many times before I'm sure it will never happen. The need is confined to the Dev forums afterall.
    I think the solution would be a permanent post (similar to +How to Post a new Topic+ in this forum) at the top of both Dev forums. I don't think most developers want to see instructions on any other topic at the top of the forums, but a brief note titled +How to Post Code+ might make everyone's life easier.
    Assuming most of the other developers agree, how could we make this happen?

    Thanks so much for helping with this, Nubz!
    Joerg's instructions are excellent. I refer to them often and I've had them bookmarked since I found Apple Discussions last year. The new Code section is great!! Very clear!
    Now we just need to find a way to get users to that page. Our problem has never been with users who are interested enough in Apple Discussions to visit the Tips Library. The unformatted code is coming from first-time users--not necessarily novice coders, but programmers of all skill levels who aren't coming here to learn about the forums or relate to the community. These folks are focused on their current project, may have found no answers anywhere else, and arrive here with tunnel vision. Often there's a language problem as well.
    The newly arrived OP will often start the thread with a page of unformatted code. Those of us with eyes used to filling in the missing brackets, indentation etc. can sometimes decypher the mess, but usually we need to give formatting instructions and ask the OP to repost. The frequency of this scenario has been increasing. Lately I've been posting those instructions almost once every day.
    Of course that's a good sign! We've been giving good service down there and the number of newcomers seems to be reflecting that. A big percentage have turned into regulars, so I think we have a very healthy forum. It's just the formatting cycle gets old, and the time and bytes add up too.
    My suggestion is this:
    One yellow moderator announcement that stays in the first position on the topic page for both dev forums. The subject line is:
    To format code: Paste your code here
    The user doesn't even need to open the message. Only developers will see this. No change to the page header is needed. If the user does open the message, a link will be provided to Joerg's tips.
    - Ray

  • TS1398 I just reset my new router name and password and my iPad keeps picking up the old name using the old password. How do I purge the old info and get it to look for the new name?

    I installed a new wireless router and connected with my iPad. I then changed the ID and password with ethernet but now my iPad keeps picking up the old router name and password and doesn't see the new name. How can I get it to stop looking for the old name and find the new one?

    Hello Stevo39,
    If your iPhone continues to prompt for your old account and password then check out the following article.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    This article may help too.
    Apple ID: What to do after you change your Apple ID - Apple Support
    Regards,
    Nubz

  • I cannot transfer movies on my iphone 4s eventhought its mp4 format. it say 1 item could not be sync see itunes for more information. Tried to look for the reset warning on itunes 11.0 but cannot locate it. Help please

    i cannot transfer movies on my iphone 4s eventhought its mp4 format. it say 1 item could not be sync see itunes for more information. Tried to look for the reset warning on itunes 11.0 but cannot locate it. Help please

    Hello eLZhi,
    Thanks for the question, and welcome to Apple Support Communities.
    The following article provides the most relevant information to your question:
    iOS: 'Not enough free space' alert when trying to sync
    http://support.apple.com/kb/TS1503
    Thanks,
    Matt M.

  • Hi, I am looking for the registration code to register on the Sony Essantials site.

    Hi, I am looking for the registration code to register on the Sony Essentials site. The TV is not connected to the internet, so I cannot get it from the TV. Model: KDL-52XBR9Ethernet MAC address: 00:24:BE4:CF:50 Please help! Thanks,Bob

    Hello bobm1234, thank you for your message. Welcome to SONY Community!
    Follow the steps below to register your Internet video device: 
    Hopefully this post helps you! Mark it "accept as solution" Mark it "accep as solution"

  • Complaint regarding service  I'm looking for the name of a complaint department manager  Apple Customer Care

    complaint regarding service
    I'm looking for the name of a complaint department manager
    Apple Customer Care

    Welcome to the Apple Community.
    This is a user to user community, Apple are unlikely to read your comments, if you need support then you will need to contact them through Express Lane (select your country, navigate to iiTunes help and enter the serial number of one of your devices)

  • I have a Windows Server 2008 R2 system. I am using Adobe Acrobat XI Pro. I am looking for the place where I can change the default font from Minion Pro to Calibri? Tools, Content Editing, Formatting

    I have a Windows Server 2008 R2 system. I am using Adobe Acrobat XI Pro. I am looking for the place where I can Change the Default font from Miinion Pro to Calibri?
    Tools, Content Editing, Formatting

    You can't change it.
    On Tue, Jan 13, 2015 at 11:22 AM, tonywaidmann <[email protected]>

  • When I try to reset my iPad mini it keeps asking for  a passcode! have tried restoring, connecting to iTunes and looked for the 'set up as new iPad' notification, but nothing is working? can anyone help please?

    I know my passcode is correct but when I try to reset my iPad mini it keeps asking for  a passcode! have tried restoring, connecting to iTunes and looked for the 'set up as new iPad' notification, but nothing is working? can anyone help please?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Equivalent code in JCE for the given C# AES code

    Can somebody give me the equivalent code in JCE for the given C# AES code below?
    (Ofcourse, I checked this topic
    http://forum.java.sun.com/thread.jspa?threadID=603209
    as well, but couldn't figure out much; I have
    little knowledge in this area; I've a job to figure out an equivalent code for
    this and use it in JSP.)
    Thanks,
    RK.
    byte[] bytesToEncrypt = ASCIIEncoding.ASCII.GetBytes(stringToEncrypt);
    //RijndaelManaged uses AES and defaults to CBC mode
    RijndaelManaged rij = new RijndaelManaged();
    rij.KeySize = 128;
    ICryptoTransform encryptor = rij.CreateEncryptor(
                     Convert.FromBase64String("7inEMafSQqaSANhMe92Gdw=="), initializationVectorBytes );
    byte[] encryptedBytes = encryptor.TransformFinalBlock(bytesToEncrypt, 0, bytesToEncrypt.Length);

    Hello...
    I've come up with this source, based on the examples given out there
    but, the ultimate output is will be an URL that'll be submitted as request.
    Looks like the data length is very high (as I get some error from the
    server, when I send the request url).
    Just wondering how do I make this code to do the same thing as given
    in the C# code above.
    Any help appreciated.
    Thanks,
    RK.
    private static String getEncryptedLogonData() throws Exception {
              String userDataToEncrypt = "Text";          
              return encrypt(userDataToEncrypt, getIV());;
         public static String encrypt(String text, byte[] iv) throws Exception {
              //Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
              Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");
              //setup key
              byte[] keyBytes = new byte[16];
              int len = iv.length;
              if (len > keyBytes.length)
                   len = keyBytes.length;
              System.arraycopy(iv, 0, keyBytes, 0, len);
              SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES");
              //the below may make this less secure, hard code byte array the IV in
              // both java and .net clients
              IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);
              cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);
              byte[] results = cipher.doFinal(text.getBytes("UTF-8"));
              BASE64Encoder encoder = new BASE64Encoder();
              return encoder.encode(results);
         private static byte[] getIV() {
              byte[] iv = new byte[16];
              Random r = new Random();
              r.nextBytes(iv);
              return iv;
         }

  • I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer

    I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer.  Any ideas?

    Hi Cynthia,
    Are you planning to have this table do any of the calculation, or is is to be used as the electronic equivalent of a sheet of paper with a grid printed on it—a place to record the data.
    For your seven column table:
    Are you using one or more rows at the top of the table to label the data below? If so, you might want this row (or these rows) to be set as Header Rows.
    Are you using the leftmost column to label the rows? If so, you may want this column to be a Header column.
    The default table supplied on the "Blank" templates contains one header row and one header column. If you need more (or fewer) Header rows or columns, select the table, then go Table (menu) > Header Rows > (choose the number you need). Repeat to set the number of Header Columns.
    To make a seven column table from the table supplied by default, click on any cell in column H (The eighth column), and drag right to add more cells to the selection, until you get to the last column of the table. With these cells selected, Go Table > Delete Columns.
    To make the remaining seven columns fit across a single page:
    Go View > Show Print View to show the table as it would appear when printed to paper.
    Select the table by clicking its icon in the Sheets List to the left (easy method), OR by carefully clicking on the outside boundary of the table itself (fiddley method).
    With the table selected, you will see square white handles at each corner and at the middle of each side (including the top and bottom).
    With the mouse, grab the handle in the middle of the right side of the table and drag right (or left) until the table just fits onto the width of the defined page.
    With the table still selected, set the thickness and colour of the cell boundaries using the Gaphics Inspector (as described by Jerry), or using the Stroke, Thickness and Color Well controls in the Format bar above the working portion of the Window.
    Regards,
    Barry

  • Problem with my program looking for the settings file in the wrong folder

    I have been writing a simple FTP file uploader, what I want to do is be able to select the files I want to upload in windows explorer and then right click and click the menu item and it launches the program and passes the files paths that I have selected to it.
    So I use this in the windows registry "C:\Program Files\Java\jre1.6.0_03\bin\java.exe -jar D:\BenFTP\BenFTP.jar %1"
    It launches fine and has no problem finding the files I want to upload. The problem is that it tries to look for the settings file in the same folder that the file I am try to upload is in. Which it's not suppose to do since the settings file is in the same folder that the .jar is in.
    Edited by: ColNewman on Feb 5, 2008 6:55 PM

    So, you're looking for your settings file in your current working directory. There's no way to set the CWD in your registry entry (is there?) so that isn't a practical thing to do. Presumably you're using a File object or a FileReader or something? Can't do that.
    One alternative is to look for the settings file in the classpath. You can get a URL to a file in the classpath like this:URL settings = this.getClass().getResource("/settings.xml");Or you can get an InputStream to read the file by using the getResourceAsStream method. You would have to make sure that your executable jar file contained a Class-Path entry that specified the right directory, because the directory the jar is contained in isn't automatically in an executable jar's classpath.
    Another alternative is to ask the user where the settings file is supposed to be, and put an entry in the Preferences (java.util.prefs) to remember that location.

  • TS2776 I cannot get my IPhone to recognize my new computer; it's still looking for the old one.

    My IPhone won't sync with a new windows 8 computer.  It's still looking for the old one.  How in the he11 do you change the name of the PC the IPhone looks for?

    This user tip should be useful
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

Maybe you are looking for

  • Keeping my iTunes library in a Airport connect Hardrive

    I want to keep my iTunes library on a hard drive that I have connected to my Airport wireless network. When I do this in the default configuration iTunes cannot access the library until I go out to the shared drive, connect to it, and browse into it

  • A question of 9ias webcache

    I have installed 9ias core,i can start http and publish the website .But i can't start webcache.the information ia underside: # ./webcachectl status Oracle Web Cache admin server is NOT running. Oracle Web Cache watchdog is NOT running. Oracle Web Ca

  • How do I see the Kernel patch level in Java ONLY instance?

    Could someone please tell me How do I see the Kernel patch level in a Java ONLY instance? In Abap, it is simple! In Java I see in the System Info: Kernel Version:  7.00 PatchLevel 108458.44  BUT that doesn't correspond to the real patch level which I

  • Synchronous RFC-XI-Web Service with no request method

    Hello guys, I'm trying to set up an RFC-XI-Web Service scneario.  But with the particularitity that the WSDL does not have a request method. It only has a very simple response method. How can I make this? How can XI call the Web Service, if I dont ha

  • Enhance KM document iView

    Is it possible to add custom JavaScript to HTML rendered by the KM document iView ? I would like to execute a custom function when the user clicks on a document.