How does the icon get created for a saved file

In my program I allow saving files using JFileChooser and ActionListener.
In the constructor of the main class which extends JFrame I also set an icon by saying:
this.setIconImage(new ImageIcon("image.jpg").getImage());
This does not only set an icon on the title bar and the minimized window, it also creates an icon on my saved files. However, the image quality for the icon on my saved files is bad, even though the image quality for the other icons is ok. The size of the icon image I am providing is close to the size of the icon image on my saved files.
How did the icon get created for my saved files? Is it possible to improve the image quality?
Thanks for looking at this!

I just realized that
this.setIconImage(new ImageIcon("image.jpg").getImage())
did not create the icon for my saved files.
So what did create it? I did not program it!
However, I happen to have an icon file Ananya.ico where I have my java project. I use if for my installation file. Did Java use this icon?
Please help! Thanks!

Similar Messages

  • How does the field ABGRU-Reason for Rejection get populated in routines

    Hi All,
    How does the field ABGRU-Reason for Rejection get populated in routines(VOFM)?
    BELNR,KPOSN,etc...fields are populated through KOMK and KOMP structures, similar way what structure is used for ABGRU?
    by the time the control from VA01 comes to routine the values of VBAK and VBAP are cleared, so these structures like KOMP and KOMK are used.
    Thanks in advance.

    You need to add rejection reason field ABGRU as a new field to pricing field catalog (KOMG structure) through APPEND structure KOMPAZ. KOMG inherits new fields from KOMKAZ (for header level fields) or KOMPAZ (for item level fields) structures and it is not directly modified but through KOMKAZ and KOMPAZ structures
    Since VBAP-ABGRU can vary from item to item, add it to item pricing communication structure KOMPAZ in SE11. Once KOMPAZ is added with new ABGRU field and activated it will automatically appear in pricing field catalog (KOMG)
    Afterwards the ABGRU field will then start to appear in the field catalog where you can create condition table (V/03) including the ABGRU as a field. Once done the rest is assigning the condition table to access sequence which is in turn assigned to the relevant condition type that you want to price based on partner function (all under IMG -> SD -> Basic functions -> Pricing -> Pricing control)
    In the pricing user exit userexit_pricing_prepare_tkomp in include MV45AFZZ, you will need a few lines of coding to fetch VBAP-ABGRU for the item and pass it to tkomp-abrug field. This will then be used by system to read the new condition table that you created.
    tkomp-abgru= xvbap-abgru
    So if you populate special pricing based on ABGRU (with possibly other conditions) in the condition table then that condition record will be read for the corresponding condition type.
    You would of course need a developer to modify KOMPAZ structure and code the user exit for moving the rejection reason to tkomp
    That is in short how you can achieve this

  • Purchased ExportPDF for one of our end using depts.  It is under my account I manage for our institution.  How does the dept get the application to download.

    Purchased ExportPDF for one of our end using depts.  It is under my account I manage for our institution.  How does the dept get the application to download.

    Hi Cassi,
    If you are ordering subscriptions for various people in your office, it would be best to sign up under their Adobe IDs, so they can log in and use the subscription with their own credentials. As for moving the current subscription, the easiest route is to cancel the current subscription (see Cancel your membership or subscription | Acrobat, Acrobat.com online services--or I can help), and then reorder as necessary.
    Best,
    Sara

  • When does the horizontalScrollBar get created on a List?

    When does the horizontalScrollBar get created on a List?
    The scroller is created, but the scrollbar isn't created yet and I get an error:
    I have a spark List:
    <s:List id="list" creationComplete="creationCompleteHandler(event)">
            <s:layout>
                <s:HorizontalLayout  />
            </s:layout>
    </s:List>
    private function creationCompleteHandler(event:FlexEvent):void {
         (event.currentTarget as List).scroller.addEventListener( FlexEvent.UPDATE_COMPLETE, onScrollerComplete );
    // these don't trigger anything!
    //    (event.currentTarget as List).scroller.addEventListener(FlexEvent.CREATION_COMPLETE , onScrollerComplete );
    //    (event.currentTarget as List).scroller.addEventListener(Event.ADDED_TO_STAGE , onScrollerComplete );
    private function onScrollerComplete(event:Event):void {
         // horizontalScrollBar still null at this point - how can I use it?   
         // I want to set the style, but it's not created yet!
         // event.currentTarget.scroller.horizontalScrollBar.setStyle("repeatInterval", 600);

    I just realized that
    this.setIconImage(new ImageIcon("image.jpg").getImage())
    did not create the icon for my saved files.
    So what did create it? I did not program it!
    However, I happen to have an icon file Ananya.ico where I have my java project. I use if for my installation file. Did Java use this icon?
    Please help! Thanks!

  • How does the GR get into SUS---MM-SUS Sceanario

    Hi all,
    How does the GR get into SUS---MM-SUS Sceanario. Can anyone explain??
    Thanks in Advance..
    Regards,
    Jagan

    Hi,
    In SUS - MM scenario
    The supplier ships the goods and sends an ASN based on PO or an Scheduling Agreement to the purchaser. If ASN is based on PO then PO Response has to be accepted  by the purchaser. When the ASN is sent from the SUS system, an inbound delivery is created automatically in SAP MM.
    Now Create GR with reference to ASN or PO based on your requirement in R/3 - MM. The GR notification is then sent to the SUS system, where the supplier can display it.
    Please reward points for helpful answers

  • How does the attribute gets the data from R/3 field?

    Hi Experts,
    It could be silly Q.  IO has attributes x, y, z.......  When we map r/3 field to IO, and it is added to the cube and when we create a report, how does the attribute gets data?  I've been working in BW and suddenly I got confused.  Someone please provide me some info
    Thanks,
    Radha

    X,Y,Z being attributes of an info object A.
    When A gets loaded it will be loaded with X,Y,Z.
    If A is a cube and if you wish you can bring X,Y,Z also in the cube in one or more dimensions.
    If you keep X,Y,Z as vag attributes rather than in te cube as dimensions, then , the system will generate SIDs for them.
    Ravi Thothadri

  • HT201210 How does the Ipad get back to Nigerian Store from American Store to enable it carry out Update aand Downloading?

    Dear All, please, How does the Ipad get back to Nigerian Store from American Store to enable it carry out Update and Downloading?

    Try this.
    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

  • How does the system get the page format in reports

    Hi to all experts,
    where does the report gets the page format while print how do default the page format to the report while printing...
    please help

    Hi Mohamad,
    For printing reports by default it ill take the page format assigned to the printing device like (locl), in print preview,
    u can check the same in Transaction : SPAD.
    there click on output devices ->click on devices which u r using-->
    click on last tab->field(TRAY1)--->there u can find the page format for tht printer.
    U can change that as per ur requirement.
    i hope it ill sovle ur prob.
    Regards,
    Niranjan.G

  • HT4914 How does the payment method work for iTunes Match?

    How does the payment method work with iTunes Match. For example, if you have a gift card, does it take it out of that. Or is there tax? What if you cancel your subscription in the middle of the year, does it take the money for that year or not? If someone could answer those questions it would be greatly apreciated. And if anyone has their own questions, feel free to ask. Thank you.

    Hi HLFrank,
    Welcome to Adobe Forum,
    You can opt for monthly payment in a yearly contract or pay at one go for an year.
    Please check the option at http://www.adobe.com/in/products/creativecloud/buying-guide.html
    Regards,
    Rajshree

  • How does the TableCellRenderer gets the value to render?

    Hello.
    I use my own AbstractTableModel together with a table, and I keep the data to be displayed in my table model.
    I would like to render the table headers.
    My question is, where does the TableCellRenderer get the value to render from?

    I'm not sure I understand your question. Do you want to render a cell or the header ?
    Here's an example :
    DefaultTableCellRenderer lRenderer = new DefaultTableCellRenderer()
    //This is the method you want to overide
    public Component getTableCellRendererComponent( JTable aTable,
    Object aValue, //This is the value coming from the TableModel
    boolean aIsSelected, //Is your cell selected
    boolean aHasFocus, //Does it have the focus
    int aRow, //the row of the cell renderer
    int aColumn //the column of the cell renderer
    //Get the component from the ancestor
    Component lComp = super.getTableCellRendererComponent( aTable, aValue, aIsSelected, aHasFocus, aRow, aColumn );
    //Cast the component to whatever you want, a JLabel
    //forinstance
    JLabel lLabel = (JLabel)lComp;
    //Let's say the value is an integer
    //Change the icon according to the value of the
    //object retrieved in the TableModel
    if ( ((Integer)value).intValue() == -1)
    //You might want to put these icons in member variables
    lLabel.setIcon(new ImageIcon("MyGif1.gif"));
    else
    lLabel.setIcon(new ImageIcon("MyGif2.gif"));
         return lComp;
    Of course you have to set the tablecellrenderer to the JTable.
    I hope this helps !
    Jean-Francois Gilbert

  • How does the system decide where to put a file on the desktop?

    So you've just created some sort of file, and you choose to save it to the desktop.   A second later--presto!--the file icon appears on the screen.
    How does the computer decide where on the desktop to put that icon?

    I'm not 100% on this, but I think the system will save files to the last destination you nominated unless you designate another destination at the point of saving. I guess you previously saved something to the Desktop.
    Just tested it on my two Macs and that's how it behaves here.

  • Does the online function cater for a PDF file created in version 9 to be converted to version 6

    I am running Win98SE on one computer (A) and WindowsXP on another computer (B).
    On Computer A I am running Adobe Reader 6.06.
    On Computer B I am running Adobe Reader 9
    Is there a methodology (presumably outside of Adobe Reader) to convert a version 9 file to a version 6 file so that it can be opened in Computer A?
    Microsoft Office Word/Excel for example allows files created in current versions of Office to be opened in the current version and saved as an earlier version.
    Does one have to buy the full Adobe Acrobat package to get a similar function?

    No. Reader is just that a reader of pdf files. You would need Acrobat Standard or Pro to change a file to be read by an earlier version.

  • How does the security model work for external USB disks attached to an AEBS

    I've attached a USB disk to my AEBS after partitioning it first on my MBP using Disk Utility. I created a single partition with a GUID partition table covering the entire disk. Next I deselected the "Ignore ownership on this volume" checkmark and assigned myself and my wife read/write access, my group read access, and the rest no access. Next, I hooked it up to the AEBS and created some test files. I noticed in Terminal that the files I created all had rwx access for user, group and others. Trying to chmod that into something less open, like rwx for me, rx for the group and nothing for others didn't work. Also I noticed that when I was logged in the files I had created had my name as the owner, but when my wife logged in, those same files were owned by my wife.
    What is happening here ? Who is the actual owner of the files on the external USB disk on my AEBS, and what are the real access rights (as they seem to depend on the actual user). On my AEBS I've setup "File sharing", "With accounts" and created accounts for both me and my wife, as well as disabled guest account access.
    I get the impression that the owner and access rights seem to depend on the actual user connected to the AEBS, but I'm not sure.
    Can anybody please enlighten me on the subject of AEBS access rights/ownership for USB disks ?
    With kind regards,
    Aloy

    All that I can provide is what has worked for me for years.
    The Time Capsule is setup as the router for the network, connected to a simple Zoom 5431J cable modem.
    Static Internet IP connection from the cable provider is 12.34.567.89
    By default, the Time Capsule is at 10.0.1.1 on the local network
    Port Mapping setup for the Time Capsule is......
    Public UDP Port 8884
    Public TCP Ports 8884
    Private IP 10.0.1.1
    Private UDP 548
    Private TCP 548
    The hard drive on the Time Capsule is accessed from a remote location at afp://12.34.567.89:8884
    The AirPort Extreme is connected by Ethernet to the Time Capsule and is it setup to operate in Bridge Mode
    The AirPort Extreme always receives a reserved local IP address of 10.0.1.2 from the Time Capsule
    The Port Mapping setup (on the Time Capsule) looks like this for the AirPort Extreme.......
    Public UDP Port 8888
    Public TCP Port 8888
    Private IP  10.0.1.2
    Private UDP 548
    Private TCP 548
    The USB hard drive connected to the AirPort Extreme is accessed from a remote location at afp://12.34.567.89:8888
    If you are still having difficulty, I would delete all of Port Mapping settings on the Time Capsule and Update the Time Capsule. Then, go back and setup the Port Mapping for the Time Capsule, check that to make sure that it is working, then setup the Port Mapping settings on the Time Capsule for the AirPort Extreme.

  • Why does the text gets created in tomcat base directory?

    Hi friends,
    can anybody tell me when i create a text file abc.txt from my servlet from the application base
    c:\tomcat6\webapps\filterApplication\ ,
    the text file gets created in c:\tomcat6\abc.txt
    I want the text be created relative to the application i.e. c:\tomcat6\webapps\filterApplication\abc.txt , so that my
    code will be portable.
    In summary :
    file being created => c:\tomcat6\abc.txt
    expected location=> c:\tomcat6\webapps\filterApplication\abc.txt
    my file write code within my servlet:
    FileWriter fw = new FileWriter("abc.txt");
    fw.write("Some entry text here---");
    fw.close();
    thx.
    --Sujoy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    one query: if file is created relative to Java and Tomcat starts from bin directory, them
    file should have been created in c:\tomcat6\bin\abc.txt,
    NOT at c:\tomcat6\abc.txt
    Am I write?
    --Sujoy                                                                                                                                                                                                                                                                                                                                                                                                               

  • When does the configuration get locked for changes in sales order?

    Hi Experts,
    I will really appreciate your help me in resolving this issue.
    Our client had sales order having BOM item with several sub items.
    Here we found that the user was not able to make changes to the Characterstic Value of one of the variant.
    The issue was the place where we change the characterstic  in sales order was greyed out, it was probably locked. Now even if they were unfrezing and trying to change the characteristic value the system did not allowed means greyed out.
    Can you please help me in understanding when do system locks the variants for a material in sales order, in what stage?
    Like maybe after the delivery document is created or PGI or some things else.
    since i see that the user here did delivered one of the item in the BOM subitem.
    Thanks
    Kaushik
    <Text removed by Moderator, please don't share your personal details on SCN post>
    Message was edited by: Jyoti Prakash

    Yes the characterstics were maintained for the main item.
    and the delivered item was a subitem for this main item.
    So characterstic were maintained for Item 10(Main item) but delivery was done for some of its sub item was item 100 / 120
    Also can i know where is this setting or configuration where we configure this to block the configuration if any of the subitem is delivered.
    Thanks
    Kaushik.

Maybe you are looking for

  • Add a field to the last page of a document file only

    Hello, I currently have a script which will add signature and text fields to the first page of a document. The script is required to specify the "last page" of the document and not the page number, as each file will vary with the number of pages. The

  • Error message: This application cannot be installed because...

    I am getting an error message when I try to install the trial version of Muse on a Mac OS X 10.8.2. What do I do? I have downloaded it several times over different days and I still get the same problem.

  • Problems on Linux

    I am running redhat 8. When I start the domain I have an interesting problem. Issue #1 I run asadmin start-domain --domain domain1 and I get the following error but both admin-server and server instance are actually running. Could not start the insta

  • Cannot uninstall Adobe Air & Adobe Media Player won't work...

    When I try to uninstall Adobe Air (version 1.0), I get an error which tells me to contact my Administrator... well, I am the Admin and there is no other user on this computer (Windows XP). Does anyone have any idea as to how I can effectively and com

  • FTP on a local Virtual host?

    Hello I have set up a virtual host on my powerbook. What I would like to do however is to connect with this virtual host via ftp. How do I go about doing this. Do I need to add any additional parameters in the vhosts conf files. Any help or assistanc