How to make file associations in my java apps

I am making a Graph maker in Java. Just give x = 1,2,3,4,5 and corresponding y = f(x) and get the discreate graph.
The graph can then be saved as a file of extention .grf (say) on the hard disk, and can be opened in my graph maker software for editing, viewing e.t.c.
Now my problem is that I want that when I dubble click on a file xyz.grf my graph maker should open automatically with this file opened in it, like other applications on windows say Notepad - dubble click on xyz.txt it will automatically launch Notepade with this file.
In other way I want that any .grf file gets associated to my graf maker.
Please help me and tell me the way, how should I proceed and how can I do this.

aashishjava wrote:
Yes Yes Yes It is 99% what I wanted to have. Thanks a lot ....You're welcome.
But now I want some thing more,(hand to forehead) They always want more. ;)
(a) There is a splash screen in my app. but JNLP always show its own splash screen, ...Webstart splash screens work differently to those of plain Jar files (which is unfortunate). A webstart splash screen has to be not included in the Jar, but available as a separate resource. The splash is defined in the JNLP launch file. For further details see the [JNLP File Syntax|http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html].
<quote>
The optional kind="splash" attribute may be used in an icon element to indicate that the image is to be used as a "splash" screen during the launch of an application. If the JNLP file does not contain an icon element with a kind="splash" attribute, but does contain another icon tag, Java Web Start will display a splash screen consisting of the image specified by the icon element on the left and the application's title and vendor on the right.
The first time an application is launched following the addition or modification of the icon element in the JNLP file, the old splash image will still be displayed. The new splash image will appear on the second and subsequent launches of the application.
</quote>
The 'ignored first time' is because the webstart client is more focused on getting the app. downloaded, cached and launched, than showing splashes. Once the app. is on-screen, it will download the splash in the background.
One other 'gotcha' of splash screens is that the JNLP file must define a href in the JNLP element for the splash to be used. The webstart client assumes that a JNLP with no href is dynamically generated, and will not be the same twice. Because of that it ignores the splash!
Edit 1:
Unfortunately, I do not have any direct examples of using splash screens A splash is usually on my 'To Do' list for projects, but it is a very low priority.
Edited by: AndrewThompson64 on Dec 10, 2009 11:35 AM

Similar Messages

  • How To Make File Association Changes Permenant

    I'm having a problem with file associations reverting back every time I turn of my computer.
    I'm using Finder "change all" function to change the file association.  It works until I turn off my computer.  Once rebooted file associations return.
    It's a real hassle.  For some reason MP4 files keep getting associated with Windows media player. Everytime I try to open one, parallalels loads up windows. 
    Any advise?

    ekohanowich wrote:
    how to make file able to open on pc
    I assume you mean Windows Computer.
    in Keynote:   file > export > PowerPoint
    Each Windows machine will need  Powerpoint or PowerPoint Viewer installed.

  • How to make file associations in XFCE permanent

    Hi,
    I have a problem with file associations in XFCE (Thunar, actually), because I can't make it permanent. After setting up, they work fine, but they change to default values after some time.
    Anyone with same problem?:|

    is it all file associations? maybe updating certain programs would do it or thunar itself but i seriously doubt it because config should still be the same

  • How make file association with a sgd application

    hi!
    I need to know, how i make file association from a sgd client.
    I need open file .doc with a sgd application just make doble click in the file .doc
    in the client
    SO: rhel5u1
    i have word.desktop file
    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=word2003
    Icon=/home/ssa01/.tarantella/icon-cache/srsgd.sunssa.com/windows.gif
    Categories=Application;SGD;
    Type=Application
    Exec="/home/ssa01/.tarantella/tcc/4.50.907/ttatcc" -profile "srsgd.sunssa.com::Default" -application ".../_ens/o=applications/cn=word2003"
    Terminal=false
    please help me!!

    guinn8181
    it showed up as a ProTools (an audio editing application I have installed) plug-in … How can a firmware update meant for a specific hardware but tied to a third party softwareThen this is a bug in ProTools. The "Open with" should show "<None>".
    You need not concern yourself too much with this, since the system will run this updater as and when necessary—you don't need to run it yourself.

  • How to make File Dialog in different color

    Hi to all,
    How to make File Dialog to appear in orange color.
    Regards
    khiz_eng

    I would like to know this also.....but it appears that there is not much you can do with an AWT FileDialog (not even moving it to the center of the screen).
    sigh....
    V.V.

  • How to make file able to open on pc

    how to make file able to open on pc

    ekohanowich wrote:
    how to make file able to open on pc
    I assume you mean Windows Computer.
    in Keynote:   file > export > PowerPoint
    Each Windows machine will need  Powerpoint or PowerPoint Viewer installed.

  • How to transfer files from MacBook Pro pages app to iPad mini pages app?

    How to transfer files from MacBook Pro pages app to iPad mini pages app?

    The above assumes you are running current software.
    Mac - OX X 10.9.2, Pages 5.1.
    iPad - iOS 7.0.6, Pages 2.1.

  • How to restore file associations in Bridge CS5?

    Hi
    Some time ago I somehow lost file associations in Adobe Bridge CS5. Now when I doubleclick a RAW file (Canon .CR2 file) I get Firefox, when I doubleclick a JPG I get FastStone and when I doubleclick a PSD file nothing happens at all. Also Photoshop is not in the options I get by right-clicking photos and choosing "Open with...".
    I have tried [ Edit -> Preferences... -> File Type Associations -> Reset to Default Associations ] , but that didn't help.
    Also when I look in the File Type Association dialog, my file types are set to "Explorer Settings", and Photoshop is not among the other options. I don't know how this uses to be (if associations are defined in Bridge or it uses Explorer/Windows settings?), but how do I easily recreate original setup from when I installed Photoshop?
    Regards
    Stig Nygaard
    http://www.rockland.dk/
    http://www.flickr.com/photos/stignygaard/

    Hi Neil
    Thanks for the answer. I'm aware I can manually setup associations one-by-one for all file types I need, but just hoped there was some easier way. I mean there's a lot of file types associated in either windows/explorer or directly in Bridge. Some that I might not know I need tomorrow.  Two things I have found out since I asked the question:
    1) The problem is probably caused by uninstalling my old CS4 after I had installed CS5. It looks like somebody experienced a similar problem by uninstalling CS3 after the installation of CS4: http://forums.adobe.com/message/1899159#1899159. So apparently a bug Adobe hasn't fixed even though it was in previous version too!? :-( I think it is only natural to keep your old version installed for some time when installing an upgrade. Just to make sure the new version works well before you uninstall the previous (And I have previous had the problem that a new version of Photoshop had a habit of freezing on my PC - or some other error I don't remember -  until Adobe released an update. So there's a reason for my behavior).
    2) I have installed a second copy of CS5 now on my secondary portable PC, and are using this to make a similar setup regarding file associations in windows/explorer and Bridge. All associations for Photoshop was lost on my primary PC, and God... there's a lot of file associations to setup again... May I recommend Adobe (if reading this) to fix this bug and/or make a script to automatically recover all associations in case of loss!
    /Stig

  • How to make a oval shape in java

    how to make an oval shape in java

    here's a simple example:
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.Color;
    /* <applet code="OvalTest" width=83 height=43></applet> */
    public class OvalTest extends Applet {
         public void init() {
              setBackground(Color.white);
         public void paint(Graphics g) {
              g.setColor(Color.blue);
              g.fillOval(1,1,80,40);
    }

  • How to revert file associations in Win8 back to CS6?

    I have tried out CC. I am not convinced of its merits and worth the money, so I let the subscription end.No problem. I have CS6.
    But how can I revert file associations for example for .PNG or .JPG files back to PS CS6, instead of PS CC? Everytime I change it in the Control Panel, it seemingly accepts it, but then PS comes up with the message that I need to renew my subscription. When I start PS CS6 and open the intended file, there is no problem at all, no subscription renewal message and it all works.
    Can I only change that behaviour by uninstalling CC completely? That sucks, because if I ever change my mind and go for CC, I need to redownload all the software, which takes a lot of hours.

    How?
    You can change them to Paint for instance, then change to PS CS6, but it still reverts to PS CC.
    Now change that to:
    and the result is:

  • How do i make UNIX system calls in Java app?

    Is it possible to make UNIX system calls in a java app? I.E. perform a file copy/move to another machine within a program.
    Thanks,
    Erik

    If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
    If you want to access shared libraries you might want to look at www.swig.org

  • How to make a net browser using java

    We want to make an MultiLingual Explorer in JAVA .So please help me in the case thatfirst i want to do the coding of the basic interface as the menu option like open,save,save As etc.So how can i start it in java.Is their any builtin support or what is the best possible ways.I sahll appreciate the cooperation....
    Kindly help me out....
    (As i am a student and new in java so plz guide me thoroughly)
    Thanx

    There have been java browsers that have been developed + this is well-documented (at least in one or two texts i've read, i assume on-line too), but they're quite complex + i doubt if someone new to java would be able to customise it without a brain haemorrhage. Tough call!

  • How to identify files associated with apps?

    Hello all -
       I am considering buying a new Mac mini which would come with Yosemite.  My existing mini (mid 2011, Lion 10.7.5) has a lot of apps I do not wish to migrate, so I think I am stuck with manually reinstalling each of the apps I want on the new computer.  How do I identify the necessary files associated with these apps (preferenes, app support, etc.) so I can copy them over after reinstalling on the new computer?  Is there any way to track what files were installed along with the app when it was first installed?  Anyone familiar with the claim of CleanApp to log all associated files with an installation (at time of install), or any other software that does this?
       Thanks - Randy

    Thanks again Arthur for your response.  I looked at RoaringApps but was not sure if I should enable the real time or just use basic.  Real time seems to require a lot of downloading (and modification?)   What do you recommend - Real TIme or Basic?
    As far as SunnyMenu, it is old but has worked flawlessly through and including Lion 10.7.5.  The only alteration of the system is that it is added as a startup item in my User in System Preferences.  It does not change the GUI, but adds menus (that you can customize) in addition to, rather than changing what System X does.  The Dock will not accomodate nearly as many items and SunnyMenu allows for nested subfolders of menu items.  I find it extremely useful and use it every day. I realize one day it will no longer work, but hope that, as it's pretty simple, that may be a bit further off.  As a rule I don't dabble in System modifiying stuff like maintenance, clean-up, speed-up, "optimization" etc. and just rely on System X.  I do have iStat Menus, but I don't believe that's modifying the System, but only displays information.  RoaringApps seems to indicate it's compatible with everything through Yosemite.  Would you recommend against that as well?  It saved me once when my fan failed but I noticed the iStat temp & rpm display and got it repaired at my Apple Store before I completely toasted my mini.
    Thanks again for your replies, they have been extrmely helpful in understanding how to start planning my move to a new Mac mini with Yosemite!

  • How to make files read only

    I want to make files read only.  Any workaround is welcomed.

    t quinn wrote:
    ElMagoElGato,
    I am glad to give some help but I am still confused because we are having different experiences. I have been able to lock Tables on my mac and have that lock respected in iOS for a long while now. Easy to unlock, impossible to relock.  With the most recent upgrade I can lock tables after tapping the upper left dot to select the whole table and going to "arrange" in the paintbrush.
    When you say worksheet are you meaning the entire file? When you say file lock are you meaning password protection? You can see I am confused.
    quinn
    Based on what ElMagoElGato has described, password protecting would be of no value to him. Once the file is accessed, it is in edit mode. Unless I'm really missing something.
    Files I have imported from Mac iworks apps with elements locked stay locked for me in iOS. Not sure what the problem is.

  • Anyone know how to set file associations for QT in Inno Setup?

    I am working on an app that requires QT to play .smi files and can't seem to get it to work. I was using this code in the Inno Setup file:
    Root: HKCR; Subkey: ".smi"; ValueType: string; ValueName: ""; ValueData: "QuickTime.smi"; Flags: uninsdeletevalue
    Root: HKCR; Subkey: "QuickTimePlayerFile"; ValueType: string; ValueName: ""; ValueData: "QuickTimePlayer File"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "QuickTimePlayerFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\QuickTimePlayer.exe,0"
    Root: HKCR; Subkey: "QuickTimePlayer\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\QuickTimePlayer.exe"" ""%1"""
    but apparently it isn't right as it still gets launched by RealPlayer. Anyone done this before? How do I get the path to the app right? Is that what's wrong?

    I too want to figure out that feature. Let me know if you figure it out!!!
    With the Treo, you had the option of setting one ring tone for known callers and an alternate for unknowns. You could also add individual tones to specific callers. Given how 'clever' the iphone seems to be, I keep thinking there is a better option (that I'm missing) other than adding the ringtone individually for each of my several hundred contacts.
    Any suggestions?

Maybe you are looking for

  • IPhone 2g wont activate

    hello i was wondering how to activate my iphone 2g because it doesnt have a sim card tray and also whenever i try to put a si in it with a piece of tape on it to get it back out it says that att cannot activate at this time try again later and it say

  • Does "exe" or "app" require an FL installed player?

    Hi - I have a Flash project (CS3/AS2) burned onto a DVD (as data).  I published an EXE for Windows and APP for Mac (formerly called Projector). The questions are - In order to play the EXE - does a version of Flash player need to be installed on the

  • SLiM: .xinitrc changes and logouts?

    If anyone uses SLiM then maybe you can help me. I have installed the version in AUR and it seems to work well. I only have fluxbox as my session of choice but would like to add others (e.g. icewm). I would like to know what sorts of changes are neces

  • Problems!:  calculated fields in Adobe Forms using the ISR/PCR framework.

    Hi there, I have made an Adobe form in the ISR framework. Everybody who is familiar with these forms in the framework knows that the adobe form is embedded in a standard webdynpro which consist of a roadmap with three steps. Step 1: Fill out the form

  • Purge tables

    Hi, How can we purge/reset tables (data) like v$sql, v$sqlarea and all others apart from restarting the instance? Thanks!