Open WIth dialog in Java

I was wondering if there's a cross platform way to mimic the Windows Open With dialog from inside a Java Swing application. My application is an editor for elearning packages and one of the users wanted to be able to open the content files in the editor of their choice from within the application, resources are generally HTML files, images, css, javascript, but can be any type of content that can run in a browser. Thanks

-------------Problems Reply------------

I think that you may be able to do something with JDIC (Java Desktop Integration Components).

Take a look at the package org.jdesktop.jdic.filetypes

Provides classes for associating applications with file types and accessing a registered file type association.

Every desktop allows the user to view files with the associated applications. Usually a desktop comes with a registry that allows the user to associate applications with file types. An association includes information like a MIME type, file extensions, and actions that could be applied to the file type. By accessing the association information, the desktop could invoke the appropriate applications to handle a file, display an URL or send an email.

Category:java Views:0 Time:2009-08-06
Tags: java

Related post

  • creating an xml from the values in a Dialog in Java Swing 2010-12-13

    I have to create an xml file based on the value of attributes set by user in dialog of Java Swing.There are five attributes name,age,sex,date of birth and place. when the user clicks on OK button of the Dialog box an xml file should be created in the

  • Get data from JQuery UI dialog to Java 2011-07-26

    I am trying to get data from dialog to Java. I have: <FORM method="post" action="index.jsp" target="_self" name="myForm" id="myForm"> ... <div id="dialog"> <INPUT TYPE="text" NAME="name" VaLUE="enter name"> </div> .... </FO

  • Yes/No dialog in Java ME 2008-09-11

    I'm looking for a simple solution for a yes/no dialog to use in a Java ME midlet. I'd like to use it like this but other ways are okey. if (YesNoDialog.ask("Are you sure?") == true) { // yes was chosen } else { // no was chosen } --------------Soluti

  • Implementation of a user managment dialog in Java 2009-04-29

    I need a window for my application that allows the user to: see currently existing users create new users change permissions delete users view users details While trying to find a perfect way to create a good user experience, I stumbled upon various

  • Mathematica's "Disable Dynamic" dialog kills Java 2009-05-04

    I use Mathematica with JLink for a research project, which involves a lot of computation. Mathematica is used as a graphical frontend for entering the parameters, and later plotting the results. The actual algorithms are located in Java Classes, whic

  • reading error dialog in java 2009-12-07

    i need to read some error message in java, i tried to do this in getErrorStream and then readLine, but i got exeption. i added a link to a picture of the error message i want to read TNX --------------Solutions-----------

  • How to set Location of Message Dialog in java? 2010-03-05

    In java, message dialogs open in middle of the Frame window by default in java. I want open the message dialog in specified location. Is it possible.? --------------Solutions------------- Yes is it possible using the setLocation method: mydialog.setL

  • Call Mac OS X Get Info dialog from Java? 2010-11-02

    Is it possible to call get info dialog in mac os for a specific file in Java? Thanks --------------Solutions------------- There is no Java API that does that, but you can execute external programs so perhaps you could write some sort of AppleScript (

  • Data Connection Dialog for Java 2011-02-15

    In .NET there are Data Connection Dialog UI which allows users to build connection strings and connect to specific data sources. Is there similar thing for java? --------------Solutions------------- As far as I know, Swing and SWT UI library don't co

  • Transparent circular dialog in Java 2011-05-13

    I'm building a Poker Odds Calc app in Java. I want to select a new card by clicking the card's placeholder which is basically an extended JPanel that I "draw" the card's face and has a mouseListener. What I have imagined to do is that when I clicked

  • Can web developers stop IE popup dialog that Java is not installed? 2011-11-01

    I've developed a website (internal website behind a firewall) that uses a Java applet. If Java is not installed on the client, then it will fall back to other solutions. The issue I now have is that at least IE9 pops-up a dialog saying that my webpag

  • Trying to make a modal "Generating Report" dialog in Java 2011-12-07

    So, I have a reporting app that takes a while to generate a report and the users are complaining that there is no visual feedback that the report is running. I have written a small class that is to be a modal dialog that will block the user from doin

  • Save image file with dialog using java 2009-08-23

    does anyone know how to save a file image with previously show a dialog to choose where the location is and input a name of the file? thanks for your response, appreciate it --------------Solutions------------- You don't specify a technology, with sw

  • Preventing unncecessaries duplicates of dialogs in Java Swing 2010-01-19

    Does exist in the JDialog class a way to prevent that a child window (JDialog) would be displayed more than once when the button from the main window (JFrame) used to open it, is pressed several times? Many thanks in advance! --------------Solutions-

  • Get the current active modal dialog in java 2010-01-20

    I have a small dialog that is independent from the rest of the whole project. There are several threads that can call this dialog. The problem is a modal JDialog that shows the progress of the current task. My dialog will be opened behind the progres

  • Creating dialog in java/android 2011-06-16

    I am trying to create an error dialog that says "Wrong input : input". My problem - "Wroing input" is pre-defined in the string file and thus have R.string.error int number. The "input" is dynamic and I can only obtain it in runtime. the setMessage()

  • Fastest way to create a Java message dialog (swing/awt/other)? 2009-02-03

    I'm creating a Java application that will do some processing then needs to display a message to give the user feedback. However, it appears to be incredibly slow - taking over two seconds to return. I stripped the source down to the apparent culprit,

  • Why do radio buttons render improperly in a java.awt.Dialog on the Mac when the dialog is modal? 2009-06-16

    I'm in the process of testing my Java application on the Mac and I've run into a very strange issue. Checkboxes that appear in a modal Dialog render incorrectly, though non-modal Dialogs work fine. For example, say I have a window with 2 radio button

  • Java Swing: Dialog with expanding / progressive disclosure? 2010-12-28

    I've got a dialog in a desktop Java Swing app. What I want is a classic Windows-style Progressive Disclosure dialog, where pressing a "More Options" button opens up a whole extra batch of options on the dialog. (Which can then be hidden again by clic

Copyright (C), All Rights Reserved.

processed in 0.145 (s). 11 q(s)