How to create a JButton that can run other Apps?

Hi, Every1
i want to create a JButton which can let the user click it and it runs a
specified installed app in the system ( say, a JButton that fires up MS
Outlook). how can i do that?
thank you very much.
Yu.

hi, if i want to execute some kind of the following, how would i handle it?
mailto:[email protected]
i tried: Runtime.getRuntime().exec("mailto:[email protected]");
but it gave me java.io.IOException: CreateProcess: mailto:[email protected] error=2
i think this problem would be relatively easy but i just cant figure out.
thanks

Similar Messages

  • How to create a user that can login the LDAP?

    I want to create a user that can login the OID/LDAP. I know how to create a user, it is allowed to login OIDDAS, but I also want the user to grant access to ldap directly. How do i do that?
    And how can I give it read rights and or update/delete rights on a specific tree?
    Regards
    Eelco

    Eelco,
    did you see the OiD developers guide? Here you find some examples how to create users in OiD using pl/sql or java.
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95193/smplcode.htm#637294
    how to use directory access control can be found in
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95192/access.htm#1054232
    --Olaf

  • How to create a vi that can be connected to any type of array

    I would enjoy to create a vi that can perform an operation (like resizing) on any type of array (array of string, of cluster, of num,...): Which type of control or indicator could I use for this purpose? Any Idea?
    Thank's for your help

    Olivier,
    to do this you have to use a variant input. You can wire any type of data to a variant input. Inside the VI you flatten the variant to a string. The flattened string of an array contains both data and length of the array. You reshape the array manipulating the string. When done, you unflatten the data to a variant and output it from the VI. The caller has to convert the variant input to the source array type. OpenG.org provides a quite extensive toolkit to manipulate variant data. Some VIs specifically manipulates arrays. To see a description of VIs go to : http://opengtoolkit.sourceforge.net/lvdata/index.html
    LabVIEW Data Tools can be downloaded from http://sourceforge.net/projects/opengtoolkit/
    You need both packages lvdata AND error.
    LabVIEW, C'est LabVIEW

  • How to create PDF files that can't by copied by MAC

    Hi,
    I need to create pdf files that I can put on my website, that cannot be copied or edited by MAC users. I have created pdfs that can't be copied by Windows users, but they're still copyable by Mac users.
    Thank  you!
    Alicia

    Your Windows users must be exceptionally uninformed...

  • How to create a DVD that can play on a computer

    I've finally become familiar with using Premiere Pro CS3 and Encore. When I'm creating a DVD I understand that it will be played on any standard DVD player but I would also like to have it play on a computer. Is there a setting which will allow this to happen?
    I've tried playing it on my PC as well as another, but nothing happens.
    Have I overlooked something?
    Thank you.

    Persius,
    Nearly every DVD that will play on a set-top player *should* play on a computer, provided two things:
    1.) the computer has a DVD player that can handle that flavor of DVD media, DVD RW, DVD-R, DVD+R, DVD DL, etc.
    2.) the computer has a software player installed. This feature has been removed from some common media players. You may need to locate, download and install a separate software player.
    There could be another discussion on interlaced vs progressive scan media, but I'll let you ask that question.
    Hunt

  • How to create BI templates that can appear on Blackberries

    Hello,
    I am trying to create web templates that will appear on some BI users' blackberries. They use Blackberry models 8110 and 8520. Using the Blackberry simulator for testing, I have managed to get the web templates to appear on the Blackberry screen.
    Unfortunately, I cannot display output in a table or graph format. Right now all I get is a line by line text display. I also cannot get variable screens to appear. We are using BI version 3.5 to create the templates. I understand it is not possible to use BW 7 for this purpose.
    Does anyone know of any tricks or techniques to get table or graphical web template output to appear on a Blackberry screen?

    Persius,
    Nearly every DVD that will play on a set-top player *should* play on a computer, provided two things:
    1.) the computer has a DVD player that can handle that flavor of DVD media, DVD RW, DVD-R, DVD+R, DVD DL, etc.
    2.) the computer has a software player installed. This feature has been removed from some common media players. You may need to locate, download and install a separate software player.
    There could be another discussion on interlaced vs progressive scan media, but I'll let you ask that question.
    Hunt

  • How to create a latch that can latch the input data for 50ms?

    Now I have some data come from the sensor. I want to latch this data for 50 ms and then reset it to 0. Does anybody do this before? Thank you

    Now I am using the "two button dialog" to create a dialog box. After the dialog box pop up, I choose "yes" the "two button dialog" will output a "True". My problem is that this "True" disapear too fast. My while loop frequency is only 20Hz. And I want to send this "True" value to somewhere. However the two "button dialog" will clear this "True" after 10ms?. So I always got a "false" value. How to "Freeze" this dialog box output value for at least 50ms? How to create a latch to hold this value?
    Attachments:
    Two_button_Dialog.bmp ‏1132 KB

  • How to create stored procedure that can be read through Hyperion intelligen

    hello everyone out there. I need some help I create a select stored procedure and would like to run it through Hyperion intelligence with some input parameters. The procedure is not working. it is throwing an error when I execute it through Hyperion. Also how do I put multiple values like an array sort of things in a where clause like this where name in('test', 'test1). I place the stored procedure below any help will be greatly appreciated.
    CREATE OR REPLACE PROCEDURE emp_by_dept (
    p_deptno ert_dept_t.dept%TYPE
    IS
    emp_refcur SYS_REFCURSOR;
    v_dept ert_dept_t.dept%TYPE;
    v_deptname ert_dept_t.deptname%TYPE;
    BEGIN
    OPEN emp_refcur FOR SELECT dept, deptname FROM ert.ert_dept_t WHERE dept = p_deptno;
    DBMS_OUTPUT.PUT_LINE('dept deptname');
    DBMS_OUTPUT.PUT_LINE('----- -------');
    LOOP
    FETCH emp_refcur INTO v_dept, v_deptname;
    EXIT WHEN emp_refcur%NOTFOUND;
    END LOOP;
    CLOSE emp_refcur;
    END;

    Chrome has its own PDF viewer plugin that is quite buggy when it comes to PDF forms (as do Firefox and Safari, by the way).
    So yes, the best solution is to download the file and then open it locally using Adobe Reader. However, you can't enforce that. It's up to the user and their browser settings. You can only recommend it to them.

  • How to create a form that can auto-populate all fields based on a specific selection?

    We have created a template for each type of package used in our business.  The template is the same but depending on the package selected, the fields would be populated differently.  How can we create a template to load the fields based on the specific package selected?  We use Adobe Acrobat Pro in creating the templates.

    This forum is for the Adobe FormsCentral (http://formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask Acrobat/PDF related form questions in the Acrobat forums:http://forums.adobe.com/community/acrobat/acrobat_windows
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • How to create a plugin that can be installed on a webserver

    Hi,
    I want to create a program in java which can be installed as a plugin on a WebServer. Can anyone please give me some suggestions as how to go ahead with this.
    Thanks in advance
    -Raghu

    The means of writing plugins for web servers (Apache, IIS, iPlanet, etc.) vary widely and why would you want to do that anyway? Wouldn't a Servlet be a better idea?

  • How to create a SO that can be taken as account assignment object for PO?

    Dear all,
    I am trying to create a PO with ME21n and I want to assign the item to sales order item (SO). I put in account assignment group "C", but everytime I enter the SO number I get the message: "Account 612200 requires an assignment to a CO object                                                   
        Message no. KI235"
    So it seems that it does not recognize the SO as an CO object, although the help says you can assign to a sales order.
    What has to be done to get this assignment working?
    By the way "E" is also not working.
    Unfortunately I am neither in an individual purchase order scenario (because we do not always require a PR and moreover the material/service we must buy depends on many factors, so a subcontracting scenario with a BOM won't help neither) nor in a 3rd party order scenario.
    My scenario is: SO is entered. Sometimes we have to buy either a service or a material. Shipping is directly to us and we pay the supplier. When the whole SO is fulfilled we bill our customer for the material/services we bought for them and hopefully can put a little margin on top.
    Any ideas?

    Hi,
    i tried the same scenario, i was getting the same error but FICO consultant assigned the CO object to the GL acoount then it works i used the account assignment category C. but still i am testing this scenario because the cost is not going on SO.
    regards,
    Qasim

  • How to create interactive PDF that can be submitted through website?

    I have created an interactive PDF with a submit button at the bottom that will send to my email when clicked. However, when I uploaded the form to my website to test it, the form didn't do anything once I clicked the 'submit' form.
    So my question is: What do I need to do to allow the form to submit from my website? I am using Acrobat 9 Pro and Dreamweaver Cs5 if it makes a difference.
    Thanks!

    Chrome has its own PDF viewer plugin that is quite buggy when it comes to PDF forms (as do Firefox and Safari, by the way).
    So yes, the best solution is to download the file and then open it locally using Adobe Reader. However, you can't enforce that. It's up to the user and their browser settings. You can only recommend it to them.

  • How to create two UILoader that can be nested with each other and save the parent UILoader - as3

    Hi all,
    I am currently researching on the problem but I can't find any solution in the web.
    Here is my problem:
    I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a button that will save all contents on loader_outer. Unluckily, when I trigger the save function, I only got  a white image file. I was expecting that the contents of loader_outer (with loader_inner) to be saved also.
    Note: background_1.jpg and rabbit.jpg are present in the directory. loader_outer and loader_inner where manually placed in the scene using UILoader component.
    Here is a code snippet:
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");
    My expected output should be that background_1.jpg and rabbit.jpg should be saved in an image file and must be positioned like the ones placed in the scene.
    Any ideas on this?
    Thanks ahead.

    the load method is asynchronous so you don't want to apply that draw method until both loads are complete.  ie, use a complete listener:
    loader_inner.addEventListener(Event.COMPLETE.loadcompleteF);
    loader_outer.addEventListener(Event.COMPLETE,loadcompleteF);
    var loadNum:int=0;
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    // you should declare these variables outside this function so there are no gc issues.
    function loadcompleteF(e:Event):void{
    loadNum++;
    if(loadNum==2){
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");

  • How to create a characteristic that can hold decimal values.

    Hi,
    I want to create a characteristic which shoul be able to hold decimal values.
    Because from source system its coming in the format Number(1,1) and it should be a characteristics as per my
    business requirement.
    Please give me the solution if u know.
    Thanks,
    Vijaya

    Hi,
    it depends on your requirements... there are two possibilities
    1. type CHAR - displays the values as they are coming from source system, but I do not think any further calculations will be possible
    2. type NUMC - you can multiply each value from source system with 10 to derive an Integer value if you have format 1,1 for all records. The values will not be displayed as decimals but you can apply further calculations if needed (and divide all numeric values by 10 to transform back to correct decimal value)
    Please elaborate on your requirements, maybe you can meet your requirements using a decimal key figure...
    @Manfred
    I think type amount will be available only for key figures, not for characteristics?
    Best regards,
    Björn

  • Creating an app that can load other apps?

    I have a SWf application built in flex 4. One part of the application relies on accessing a public variable ("step1") set at the application root, and is accessed with
    var app:Object = FlexGlobals.topLevelApplication;
    trace("step one is "+app.step1);
    This, while not optimal, has worked fine. Now, hoever, I need to load this entire application into another application, and I can't figure out how to access my step1 variable any longer.
    I have been loading the swf into the new parent application like so:
    public var myLoader:Loader = new Loader();  
    public var pizzaContainer:UIComponent = new UIComponent();
    private var myUrl:URLRequest = new URLRequest("chickensoup.swf");
    protected function application1_creationCompleteHandler(event:FlexEvent):void {
       myLoader.load(myUrl);                                  
       pizzaContainer.addChild(myLoader);               
       addElement(pizzaContainer);
    And I have tried using FlexGlobals.topLevelApplication.pizzaContainer to no avail. What would be the method of acessing a public variable at the root of the loaded application?

    You can try to use a non-Flex swf to load the Flex SWF, but the non-Flex SWF won’t “go away”.  But Application.application should still be the Flex swf.

Maybe you are looking for