Using Javahelp to open pages in web browser

We have a program which is written in j2se 1.5 and distributed through webstart. currently we are using the javahelp modules which allow us to open context sensitive help in the help viewer, however we would like to show our pages in a standart browser. is it possible to tweak the javahelp setting to allow that?

One way to do it would be to overwrite javax.help.plaf.basic.BasicContentViewerUI. This class contains a method "public void idChanged(HelpModelEvent e)". The HelpModelEvent contains the URL.
Example:
public class YourHelpContentViewerUI extends BasicContentViewerUI {
    public void idChanged(HelpModelEvent e) {
        ID id = e.getID();
        URL url = e.getURL();
        TextHelpModel model = theViewer.getModel();
        model.setDocumentTitle(null);
       try {
           // Lookup the javax.jnlp.BasicService object
           BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
           // Invoke the showDocument method
           return bs.showDocument(url);
       } catch(UnavailableServiceException ue) {
           // Service is not supported
}Then you would have to register this class before instantiating javahelp:
       UIDefaults table = UIManager.getDefaults();
       Object[] uiDefaults = {
             "HelpContentViewerUI", <your class>
       table.putDefaults(uiDefaults);

Similar Messages

  • "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint 2010 and Publishing Approval workflow.

    I am trying to add a new workflow to a document library with the below mentioned settings and getting error saying "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint
    2010 and  Publishing Approval workflow" . For your information the I have checked the server default option to open in browser.
    Versioning Settings.
    Error
    This is quiet urgent issue . Any help would be really helpful.. Thanks.. 

    Hi Marlene,
    Thank you very much for your suggestions.
    But I am not creating a custom workflow in designer as Laura has mentioned. I am instead trying to create a new Out of the box Approval Workflow and I get the error mentioned above.
    As it works in other environment, I tried figuring out the possible differences which can lead to this error.
    Today I found one difference which is there are no form Templates within Infopath Configurations in Central Admin. Now I am trying to figure out what makes this form templates to be added to the template gallery.
    Regards,
    Vineeth

  • Losing right edge of page in web browser

    I am running into a problem displaying a pdf file in a web browser.  The problem is that the far right edge of one of the pdf's 11 pages gets cut off when the pdf is opened in a web browser.
    The one page that is losing its right-hand edge is wider than the other 10.
    This problem happens in Adobe Reader version 8 and version 9.  It happens when opening the pdf with FireFox, Chrome, and Internet Explorer.
    Is there a property that I need to set that will cause the horizontel scroll bar to appear for pages that are wider than the browser window?
    Thanks.

    The best approach is to remove all positioning, top, left and z-indexes.
    Use CSS margins, padding and floats to align elements on the page.
    While you learn CSS, you might find it easier to start with a pre-built CSS layout that has all the columns and containers you will need for your project.  Then it's a simple matter of inserting images and text into your layout.
    http://alt-web.com/TEMPLATES/Basic-1-col-fixed.shtml
    For commercial CSS Templates that are rock solid and perform well in all browsers, visit Project Seven:
    http://www.projectseven.com/products/index.htm
    See DW Starter Pages
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • AdobeAcrobat/Reader that is running can not be used to view PDF Files in Web Browser...what do I need to do to fix this..

    I just got Windows 7 and have been having problems since loading it. Most of my drivers only go to Vista and don't recognize 7.
    I have trying to download some manuals from their website
    and keep getting this message; Adobe Acrobat/reader that is running can not be used to view PDF files in Web Browser.

    Could I suggest a workaround for PDFs until a solution is posted? Open them directly in the Adobe application rather than in a browser tab.
    In your Adobe application(s), go to:
    Edit > Preferences > Internet
    Then uncheck "Display PDF in browser"
    (There are very few sites where having PDF integrated is really beneficial.)

  • Opening PDF in Web Browser(IE)

    Hi,
    I have written a program to download PDF file. When user will click on "Download" link, PDF file should open in web browser IE itself. Currently file is opening in separate window. I am creating this PDF file run time and it is not stored in harddisk. In Acrobar Reader, I have checked the check box "Display PDF in browser". Despite this it is opening in separate window.
    I have written following code:
    byte abyte0[] = pdfGenerator.generatePDF(getXslFile(instancedata), new String(instancedata.requestResult.message, "UTF-8"));
    httpservletresponse.setHeader("Cache-Control", "no-cache");
    httpservletresponse.setHeader("Cache-Control", "max-age=0");
    httpservletresponse.setHeader("Content-Disposition", "inline; filename=" + instancedata.userId + "_" + System.currentTimeMillis() + ".pdf");
    httpservletresponse.setContentType("application/pdf");
    String s = new String(abyte0, "UTF-8");
    servletoutputstream = httpservletresponse.getOutputStream();
    servletoutputstream.write(abyte0, 0, abyte0.length);
    servletoutputstream.flush();
    Kindly suggest what is required to open PDF in Web browser (IE).
    Regards,
    Dev

    I don't see anything wrong here offhand.
    In your download link, you aren't using target="new" or anything, are you?

  • Open URL in Web Browser from a Java Application

    Hi,
    I have an HTML document that I want to load in a browser window by clicking on a button in my java GUI application.
    Any suggestions?
    Thanks.

    You can use the Process class to start the web browser with the proper command line arguments (depends on the web browser though). Or on windows, you can have your program create a batch file with the code start url (where [url] is your url), and this will open the default web browser when run (again you must run it with a Process).

  • Openning a native web browser on Air desktop app

    I have developed an desktop air app with aptana studio.
    i want to attach a google adsense banner into my air app.
    but i got a problem that air app doesn't open a native webrowser.
    How can app open a native web browser when click in iframe?

    The iframe seems to load code from a remote location, and thus this code will be in a remote sandbox, not in the application sandbox, for obvious security reasons. This means that the code inside the iframe will net be able to use the air APIs.
    If you can control the content from the remote location, you can use the parent sandbox bridge (http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f08. html#WS5b3ccc516d4fbf351e63e3d118666ade46-7edd) to make a call from inside the iframe to the main application to open the browser window.
    Otherwise, I don't think there's a way for content loaded from a remote location to open native browser windows (this would be a security issue).

  • MacBook Pro freezes when using any app other than the web browser.

    My MacBook freezes when using any app other than the web browser. I can open up Google Chrome and use it all day with no problem, but if I minimize it and try to browse through photos in my picture folder or do anything that involves the Finder, the computer just freezes up and I get the rainbow wheel. If I put in a CD to play it, the computer freezes with the rainbow wheel. Any suggestions? I would like to use the mac for more things than the internet.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Adobe Acrobat/Reader can not be used to view PDF's in Web browser.

    Does any one came accross the following message trying to view PDF's in web browser? "Adobe Acrobat/Reader that is running can not be used to view PDF documents in Web browser. Please exit the Acrobat?Reader application and try again". Thanks for your help! Barbara

    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • One or more PDF documents are open inside a web browser - message

    Hi,
    I have a new L series notebook and its great. The only foible I can think of is a message I keep getting when I try to shutdown. There is a message box that says "One or more PDF documents are open inside a web browser. If you exit adobe reader now, those documents will be closed. Are you sure you want to exit?".
    The thing is I do not have any PDF's or web browsers open at the time! Can you help me please?
    Thanks, Mark.

    Hi Mark
    Believe me its nothing serious the same happens on my notebook from time to time
    Usually the PDF files can be read with the Adobe Acrobat reader. This application service runs in the OS background and this message can appears if the Adobe Acrobat reader cannot close the background process automatically
    I have solved this tiny problem by removing the acrobat reader from the system. After new reboot I have reinstalled it again
    Now the message does not appear and all runs like a dream ;)

  • ITS service not displaying  page in web browser from trnx SICF

    Hello gurus
    iam having a problem when trying to test ITS fro trnx SICF.The web browser window pops up but it doesnt display anything.The service is active and running.
    i checked at os level in dev_icm log file and found the following error:
    [Thr  5] Mon Oct 25 10:30:52 2010
    [Thr  5] *** ERROR => NiBufIConnect: non-buffered connect pending after 5000ms (hdl 22;10.26.24.44:1090) [nibuf.cpp    4611]
    [Thr  5] *** WARNING => Connection request from (0/1/0) to host: 10.26.24.44, service: 1090 failed (NIECONN_REFUSED)
    [icxxconn_mt.c 2340]
    that is the link that is suppossed to be opened in the web browser ::http://lmntrst01.ba.bc.test123.com:8000/sap/bc/gui/sap/its?sap-client=666
    Has anyone faced a similar problem before.It ERP 6 EHP4  on Solaris SPARC
    Any ideas are most welcome

    Hello,
    Please see note 816973 to clarify some basics first.  Especially steps 3 - 6.
    Also, the URL you posted has no service name and would lead to an error anyways, you should test with WEBGUI or IT00 or some other service.
    Edgar

  • Loading a website without opening a new web-browser

    Can someone tell me how to load a webpage without opening a new web-browser, having it displayed on the current one...
    I have tried the following code but it opens up a new browser instead... :
    getAppletContext().showDocument(new URL("http://www.angelfire.com"), "_blank");
    Million thanks

    getAppletContext().showDocument(new URL("http://www.angelfire.com"), "_self");

  • My course designed in Captivate 5 will not open in the web browser when published or in preview mode

    Does anyone know why my course will not open in a web browser. It's a pretty standards course. It's 800 X 600 with 73 slides that are all about 10 seconds long. It does have a few videos incorporated, but I removed them and published and I still got nothing in a web browser. Any ideas?

    I'm afraid you haven't given us enough information to know how to help you.
    More details please. 
    Screenshots of what you see perhaps?
    Do you have the same issue with a new blank project uploaded to the same publish folder with the same browser?

  • Cannot open .jnlp file when asked to open with firefox web browser in ubuntu 11.10 using firefox 6

    After upgrading to ubuntu 11.10 the firefox 6 browser cannot download and open .jnlp file from the interactivebrokers website. Usually I go to the IB website and download tws.jnlp file which is opened in the firefox web browser. But now when I click on the Open with Firefox Browser button, the firefox browser opens a new tab and display the same open window again.

    Seems that after upgrading to 11.10, jnlp files open with firefox instead of javaws (Java Web Start).
    If you right click the file on the download folder and choose "open with" you can manually select java web start.
    Ubuntu bug...
    You can right click any .jnlp file and select "properties", go to "Open With" tab, mark Sun Java 6 Web Start and click "Set as Default". Should fix it. I don't know what would happen if you have the default ubuntu java instead of Sun's. Maybe this wouldn't be necessary.

  • Acrobat Pro XI print dialog box opens in background, Web Browser

    Issue:  From web browser apps, I select Print > Adobe PDF > then, the Save PDF File As dialog box opens in the background instead of the foreground.
    Acrobat Pro XI / Acrobat Pro 11.0.2
    IE8 x32 / IE8 x64 / Firefox 20.0.1
    Win7 Ent x64 SP1
    Dell Latitude with I5 proc and Intel video
    Dual screens with extended desktop display via DVI
    In Distiller, I check the box for Preferences > Ask for PDF file destination.
    I was issued a new corporate laptop a few months back, specs are above.  Did not have this issue with Acrobat Pro X on my old Dell Latitude running Win7 Ent x64 SP1.  So, I have multiple new moving parts in what could be the root cause.
    Any ideas?
    Thank you,
    Doug

    CowboyInAZ wrote:
    "Acrobat is a fincky application..."
    One thing I've learned since OSX 10.2 is that Mac is finicky about printer drivers too.
    I had a Lexmark and it would freeze all the time after I switched to Panther. It was a discontinued model so when I moved up to 10.3 there were no new drivers. The old ones installed OK but they would cause it to freeze up and if it did print, it took about ten minutes to get through a page of text.
    I got a new printer and one tht had current drivers available for Mac and the problem was solved.
    It seems we fight a never-ending battle with hardware and software racing to stay ahead of each other.
    Yes I've owned three printers since owning my first Mac an SE 30 I started out with a Apple ImagewriterII (made C-Itoch).  I had to switch when I bought a 7100/66 which used the PowerPC processor instead of the 68030 processors. Then I had a HP DJ 650cse which used a Black Cartridge only. No color. I had to change again When I bought my G4-500. I am still using it today. Its the best printer I've had so far. I fear when I buy a new Intel Mac, and comes with X.6 (Snow Leopard) I will have to swap again. I've seen the new HP DeskJets and the won't last as long this one.  They look like cheap toys and (gulp!) they use heads built like in epson not the Cartridges.  The Cartridges were more expensive. But each time you bought one you got a new set of print heads. No longer.

Maybe you are looking for

  • My iPhone is recognized by iTunes but not by Windows 7, either as a device or a camera.  How do i fix this?

    I have an Iphone 5s and had to rebuild my laptop.  Once windows 7 was re-installed, I re-installed the latest version of Itunes and connected my Iphone.  Itunes can interact with my Iphone but when I try to get to my Iphone outside of Itunes, specfic

  • Photo Galleries In iWeb

    i have a number of photos in iPhoto that i want to upload to my iWeb website. When i drag a whole album over to the gallery it lays all the pictures out on the screen. is there any way to keep them separated in different galleries?

  • Networking with AirPort Extreme Base Station

    I am connected to the Internet with an SBC dsl modem, which I have had for a couple of years with few problems. However, I have been having issues networking my Mac G5, 1.8 Mhz machine since I purchased it some time ago. In the beginning (before the

  • How to configure consume In and out AQ channel in B2B 11g

    Hi, Could you please advise how to override the IP_IN_QUEUE and IP_OUT_QUEUE with AQ I created. I believe IP_IN_QUEUE and IP_OUT_QUEUE are not multi consumer queues, I am trying to have multiple consumers to B2B Engine. Please advise. Thanks in advan

  • Upgrades for Faster Performance Macbook Pro Late 2011?

    Hey! I'm a pro photographer and amateur - entry level video editor. I do lots of photoshop and lightroom works and lately I've been doing lots of Final Cut Prox stuff as well. Basically, i handle lots of media, which is probably the worst scenario fo