Access Problem for images

Sir
i make a jar file which contain all the images and properties files.befor jar i a pass the path
like that
JButton button=new JButton(new ImageIcon("images\abc.gif"));
now how can i access the abc.gif from the jar file.
plz give me a line of example
thanks and regard

Oops!... sorry too quick on keyboard!
Try this way (supposing your .JAR file contains a folder called 'images' containing the file 'abc.gif':
   URL url = new Object().getClass().getResource("/images/abc.gif");
   ImageIcon icon = new ImageIcon(url);Hope this helped,
Regards.

Similar Messages

  • UDF access problem for only 1 User

    Hi @ll,
    i got the problem, that one user is not longer able to search bp records by using UDF. Also the user is not able to change the UDF values. This problem only happen on bp data. In every other form the access to udf is possible. Every other using could access UDF in the bp data.
    Any idea ?
    Regards Steffen
    Ps. I grant admin rights for the user. The problem still exists.

    Hi Steffen.
    I'm not sure this could be helpful for you, but have try to check the ENABLE FLAG for this udf in UDF PARAMETRIZATION?
    Open the document whit UDF logging in with the user that have not permission in UDF. Then press CtrlshiftB and check the ENABLE flag for this UDF...
    Sorry for my english....
    Regards
    Gianluca

  • Transparency problem for images

    I have created a table for the main body of my site. In this
    main body table I would like to have images that stick out slightly
    over the sides of the table into the border areas on each side.
    These images I’ve made in photoshop all have pink as the
    background color because the main table body has the same color
    background. The problem is that the borders either side of the main
    body table are white and those images are going to look funny
    because of the pink background I have applied to them. I know gif
    transparency is an option but the image quality is poor and the
    shadow effect I applied in photoshop is lost when I convert them to
    gif. Is there any way around this ?

    here is a wonderful tutorial explaining the use of CSS for
    transparent
    overlays
    http://www.mandarindesign.com/opacity.html
    Good Luck
    Jeff
    "bobsmith1" <[email protected]> wrote in
    message
    news:f2shcp$6fu$[email protected]..
    >I have created a table for the main body of my site. In
    this main body
    >table I
    > would like to have images that stick out slightly over
    the sides of the
    > table
    > into the border areas on each side. These images I?ve
    made in photoshop
    > all
    > have pink as the background color because the main table
    body has the same
    > color background. The problem is that the borders either
    side of the main
    > body
    > table are white and those images are going to look funny
    because of the
    > pink
    > background I have applied to them. I know gif
    transparency is an option
    > but the
    > image quality is poor and the shadow effect I applied in
    photoshop is lost
    > when
    > I convert them to gif. Is there any way around this ?
    >

  • USB remote access problem for E3000?

    Hi,
    I recently got the E3000 router because it has USB and is dual band simultaneous router.
    It's connected to ATT modem+router. I've disabled wireless on ATT 2wire modem and connected the linksys router to it.
    Now after a lot of messing with it i have configured the USB drive to work and be visible on the network, also media server seems to be working fine.
    Now i need help with the following:
    Now what i am trying to do is have remote access to my USB connected hard drive over the internet.
    Also I want to set the USB HDD as media download drive. E.g. if i am downloading a big files or torrent download i want it to be directly in the USB connected HDD.
    Also in My Computers/network i have the drive visible as a computer and when i double click on it, it ask me for admin user id and password and i have files access available, i dont understand why is that? Because the same can be achieved through "map network drive" so what is the difference between the two?
    Awaiting reply
    Thanks for the help guys
    Solved!
    Go to Solution.

    Remote Management allows you to manage the router from a remote location, via the Internet. Managing a Linksys router from a remote location is similar to accessing it locally. The main difference is, instead of typing the router’s LAN IP Address in the web browser’s Address bar, you have to type the router’s Internet IP Address.
    Remote Management Port
    Enter the port number that will be open to outside access. The default setting is 8080. This port must be used when you establish a remote connection.
    To enable remote management on a Linksys router, you need to perform three steps:
    1] Enabling Remote Management on a Linksys Router
    2] Checking the Internet IP Address of a Linksys Router
    3] Managing a Linksys Router from a Remote Location
    Here is the link: http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=98e570a093ae4ccda0d7cfb7fda97df7_4023.xml&pid=80&r...
    Second, there are three things you need to do to be able to share the contents of your USB storage device:
    i. Accessing the Storage Setup Menu
    ii. Creating Share
    iii. Mapping a Network Drive
    Here is the link which can help you in the HDD installation: http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=0868d4e24a6a468280c3cf270c1d6a31_21517.xml&pid=80&...

  • Looping problems for images

    Hi to all,
    I have a range of pictures (30 pic). I want to do something like, after 5 images in a first row, the nxt 5 images will appear second row. However, I keep on having all the images in the first row, and yet no images in the second row. Codes are provided below!
    Could anyone please advise me on this?
    Any help will be appreciated! Thank You!
    Codes provided
    Graphics2D g2 = (Graphics2D)g;
         int w = getWidth();
         int h = getHeight();
         int imageWidth, imageHeight;
         int totalHeight = 84;
         int totalWidth = 600;
         int x = 0;
         int y = 0;
         float alphaVal;
         AlphaComposite ac;
              for(int j = 0; j < images.length; j++)
                   imageWidth = images[j].getWidth();
                   imageHeight = images[j].getHeight();
                   //x and y axis
                /*To be able to display all the small images accordingly, need translate (x,y).
                        *Use for loop.*/
                        AffineTransform aTran = new AffineTransform();
                        aTran.translate(0.5f, 0.5f);
                        g2.transform(aTran);
                   x = x + 122;
                   if(j == 0)
                        alphaVal = alpha;
                   else
                        alphaVal = 1.0f - alpha;
                   ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alphaVal);
                   g2.setComposite(ac);
                   g2.drawImage(images[j], x, y, this);
              }

    Hi
    I have try putting it on the for loop, as well as
    while loop. However, it's not working the way as I
    desired. The result is either 5 in a rows, and no
    second row. Another is 5 row, but no 5 columns of
    images.
    DId i put the wrong place? Could you kindly advise
    me?
    Thank YouBasically it needs to be like this (untested, of course - you fiddle with it):
    int x = 0, y = (some initial value, I don't know what it would be);
    for(int j = 0; j < images.length; j++)
      if ((j % 5) == 0)
        // reset x for next row (indeed, even for first row) to be at the
        // first column of this row
        x = 0;
        // increment y to go to the next row
        y += (I don't know how much you need to increment y for your row);
      x += 122; // same as x = x + 122
      g2.drawImage(images[j], x, y, this);
    }

  • Fact sheet access problem in EP7.0

    Hi,
    We have moved our content from EP6.0 System to EP7.0 System.  We are on CRM 4.0 AND BW3.5.  After we installed the Business package on EP7.0 System we moved the content.  Every thing is working fine except Fact Sheet.  We are facing access problem for Fact sheet.  I have checked all the items which are given for Default services even then we are getting authorization problem.  Kindly guide me in this regard.
    Thanks
    Naveen

    Resolved

  • Problems Managing User Access Rights for Web Gallery

    Has anyone else had issues changing the user access rights for a web gallery? It seems like the access is everyone or no one. Are the user rights handled per event in the gallery? I had issues adding events to the user's view/download rights in the publish settings.
    Also, can these settings only be set when an event is first published? Attempting to change the user access rights after the event is published seems to require a re-upload of the images.
    Any thoughts?

    Problem solved.
    I had to put the following lines in the specified "0000_any_80.my.website.conf" file:
            <Directory "/Library/WebServer/subdomain.domain">
                    Options All +MultiViews -ExecCGI -Indexes -Includes
                    AllowOverride None
                    # For Password protection
                    AuthType Digest
                    AuthName "Password Protection"
                    require valid-user
                    <IfModule mod_dav.c>
                            DAV Off
                    </IfModule>
            </Directory>

  • Acrobat X Pro:  Accessibility Report says No Alt Text for image but there is

    I have added the alternate text for images on my pdf but the accessibility report is still giving me errors stating that there is no alternate text.  Does anyone have any idea why?  I have checked and the alt text is there.  I don't understand this.
    Thank you.

    I assume when you click on the error it is taking you to the location where the error is.  Not seeing the document it is hard to tell... do you have a multi-page document and when you click on the error does it take you to the location where that problem is? 
    There are several things that could cause this problem.  The Figure or other tag that contains the alt text must have content. It cannot be an empty tag. 
    It also cannot have another Tag inside of it containing the content.  There must be some actual content directly within the Tag with the alt text, not nested inside another Tag, if that makes any sense.
    Or, there may be another Figure Tag that has no content. That, too, will generate an error.
    If neither of those suggestions work, if you post the file I can probably find the problem. 

  • Does anyone have a good link for images I can access for my web development work. I have Adobe Creative SUite 5.5

    Does anyone have a good link for images I can access for my web development work. I have Adobe Creative Suite 5.5

    In short, NO.
    I was hoping that the 7.4.1 update would allow it to work, but it has caused more problems than it is worth.If you do actually get it to work you will see the TC in finder (under Shared) when connected to the internet outside of your home network. What I have found though is that the 7.4.1 firmware update has made using the internet at home almost impossible.
    I have tried Hamachi but it is not reliable.
    I have settled with Dropbox so my files are synced between my home machine and laptop.

  • Search for images using Keywords Problem.

    1) In LR4, Search for images using Keywords (click on arrow next to Keyword).
    2) Select image, export to PS6, save as Tif.
    3) Tif retains all Keywords when it appears in LR
    4) Despite that, image does not show up in the same 'Search for images using Keywords'.
    Can anyone help with this, it is frustrating me!

    V. 4.1
    Thanks, I will try, but it seems to be an inconsistent problem.
    Simon Fletcher
    Simon Fletcher Photography
    Woody's Nest
    Newton of Kinkell
    by Conon Bridge
    Ross-shire
    Scotland
    UK  IV7 8AS
    Tel: 01 349 864 830
    Web: www.simonfletcherphotography.co.uk
    Work:
    The Glass Scribe
    Tel: 01 349 867 088
    Email: [email protected]
    Web: www.glassscribe.com

  • Photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin acc

    photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin access?

    Danny,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • I have a HP workforce 610 and cannot scan.  I just spoke with HP and they told me it is a software problem with my MAC for image capture.  Anyone else having difficulty?

    I have a HP workforce 610 and cannot scan.  I just spoke with HP and they told me it is a software problem with my MAC for image capture.  Anyone else having difficulty?

    If Image Capture doesn't work you could try the paid for app VueScan ( www.hamrick.com ). You can try it for free in demo mode to see if it works before purchase.

  • Problems for retrieving image attributes

    Hi,
    I am a new user for Oracle interMedia and i have following problem.
    I have wroten ein java programm to retrieve the image properties. At First, the images (jpg, tif) are stored as BLOB in the table, then i use the function setProperties() to set the image attributes.
    PreparedStatement pstmt = con.prepareStatement("INSERT INTO btable VALUES(?, ORDSYS.ORDImage.init())");
    for (int ef=1; ef<=anzahl_summe; ef++){
    pstmt.setInt(1, ef);
    pstmt.execute();
    OracleResultSet rs = (OracleResultSet)stmt.executeQuery("SELECT * FROM btable WHERE bid = " + ef + " FOR UPDATE");
    while(rs.next()) {
    OrdImage imgObj = (OrdImage)rs.getCustomDatum(2, OrdImage.getFactory());
    imgObj.loadDataFromFile(f_location[ef]);
    imgObj.setProperties();
    OraclePreparedStatement orpstmt = (OraclePreparedStatement)con.prepareStatement("UPDATE btable SET bild = ? WHERE bid =" + ef);
    orpstmt.setCustomDatum(1,imgObj);
    orpstmt.execute();
    orpstmt.close();
    Now if i use the functions getHeight(), getFormat(), ... for querying the properties, i will get just only the values for the image height, width and size. The other attribute values i get either null or ???. I don't understand why. The Bildforamte(jpg, tif)are supported by Oracle.
    Can you tell me what shall i do?
    thank you very much and greeting from germany
    rabbit

    Hi larry,
    thank you for your help. I have set autocommit off and commit in the end of the programm. I think, that is not a problem.
    I use the following table:
    CREATE TABLE bildtable_intern(bild_id int PRIMARY KEY not null, bild ORDSYS.ORDImage)
    My java programm:
    public class OracleBild_intern {
    public Connection connect() throws Exception{
    //thin driver is used
    conn.setAutoCommit(false);
    public void bildmessung(Connection con) throws Exception{
    PreparedStatement pstmt = con.prepareStatement("INSERT INTO bildtable_intern VALUES(?, ORDSYS.ORDImage.init())");
    for (int ef=1; ef<=10; ef++){
    pstmt.setInt(1, ef);
    pstmt.execute();
    OracleResultSet rs = (OracleResultSet)stmt.executeQuery("SELECT * FROM bildtable_intern WHERE bild_id = " + ef + " FOR UPDATE");
    while(rs.next()) {
    OrdImage imgObj = (OrdImage)rs.getCustomDatum(2, OrdImage.getFactory());
    //I have also tried to use loadDataFromInputStream() and loadDataFromByteArray()
    imgObj.loadDataFromFile(f_location[ef]);
    imgObj.setProperties();
    OraclePreparedStatement orpstmt = (OraclePreparedStatement)con.prepareStatement("UPDATE bildtable_intern SET bild = ? WHERE bild_id =" + ef);
    orpstmt.setCustomDatum(1,imgObj);
    orpstmt.execute();
    orpstmt.close();
    pstmt.close();
    retrieveattr(con);
    public long retrieveattr(Connection con) throws Exception{
    OracleResultSet rs = (OracleResultSet)stmt.executeQuery("SELECT * FROM bildtable_intern");
    while (rs.next()){
    OrdImage imgObj = (OrdImage)rs.getCustomDatum(2, OrdImage.getFactory());
    System.out.println("bild_id = " + rs.getInt(1));     
    System.out.println("bild_height = " + imgObj.getHeight());
    System.out.println("bild_width = " + imgObj.getWidth());
    System.out.println("bild_size = " + imgObj.getContentLength());
    System.out.println("bild_format = " + imgObj.getFormat());
    System.out.println("contentformat = " + imgObj.getContentFormat());
    System.out.println("compressionformat = " + imgObj.getCompressionFormat());
    System.out.println("mimetyp = " + imgObj.getMimeType());
    public static void main(String[] args) throws Exception{
    //call the methode connect()
    con.commit();
    con.close();
    I try again, but i get always only the values for image height, width and contentlength. Can you tell me, what ist wrong with this programm?
    Thank you very much and greeting aus germany!
    rabbit

  • Problem with "Insufficient data for image" and embedded JPEG 2000 Images

    I frequently download pdf from the http://www.glorecords.blm.gov web site.  They are reporting a problem with Reader Reader 10.1.4 and the pdf files they have.
    "("Insufficient data for image" and embedded JPEG 2000 Images)"
    I am experiencing the same "Insufficient data for image" error when opening their downloaded pdf and viewing in ACROBAT X 10.1.4.
    Can someone address this please?
    Win 7 sp1

    Read this:
    http://blogs.adobe.com/dmcmahon/2012/08/21/acrobat-insufficient-data-for-an-image-error-af ter-updating-to-10-1-4-or-9-5-2/

Maybe you are looking for

  • Address Book keeps crashing when I try to add new card.

    Hi All, Hope someone can help me.... This problem started a couple of weeks ago: When I try to add a new card in Address Book, after entering the info. and then clicking the 'edit' button on the bottom of the window, the program stalls briefly, and t

  • FCE Won't open - crashes everytime

    I am having a dilemma with FCE and FCP. I was having issues with Quicktime 7.4.1 so I used Pacifist to overide it with quicktime 7.2. After I did that, I was unable to open FCE or FCP they crash before they open. I went back in and re-loaded Quicktim

  • Java to crystal reports

    hi all how to connect java to crystal reports i want to sample code please help me thanks

  • Iteratively inserting values based on the condition

    PUB_USER_TABLE COMM_ID|PUB_USER_ID| 123 |1234577 | 345 |3456777 | 678 |6789077 | USS_XREF_TABLE COMM_ID | XREF_ID| 123 | 1234 | 345 | 3456 | 678 | 7890 | UI_SERVICE_TABLE XREF_ID 1234 3456 7890 SD_ENTITY XREF_ID | ED_DESC 1234 | PASSPORT 3456 | PASSP

  • Document is being distributed

    Hello All, We have a scenario in CRM & R/3 where when a "Complaints" document is created in CRM a corresponding order is created in R/3. We have done the required configuration. The generated Bdoc is successful and shows a green light, however the qu