How Lauch a web page html from jframe

I have one app;
c:\app\JAVA.jar
And inside of this folder has a file called help.htm
c:\app\help.htm
How can I lauch this page (help.htm) from JFrame (.. maybe an actionPerfomed)?
I just wanna lauch. The page will be showed on the browser of client.

What does myFrame.this mean? I looked in the JFrame
class, and there is no 'this' field listed.
Shouldn't that just be MyFrame?"this" always refers to the current instance of the current object, right? So instead of:
  setTitle("Hello World");you can do something like:
  this.setTitle("Hello World");(Although, why would you?)
But, let's suppose you do something like this:
  public class MyClass {
    private String test = "test1";
    private class ThreadEntryPoint implements Runnable {
      private String test = "test2";
      public void run() {
        System.out.println("test = " + this.test);
      ThreadEntryPoint entryPoint = new ThreadEntryPoint();
      entryPoint.run();
      ...Is this going to print test1 or test2? The answer is "test2", since that's the "test" variable defined in the inner class. But, since ThreadEntryPoint was not declared as a static class, if the inner class didn't have a "test" variable, the reference to "test" could refer to the outter variable. If you remove the "test2" variable in the code above, it will still compile and print "test1".
But what if you wanted to print "test1" without removing "test2"? This is where the mechanism you are inquiring about comes in; it allows you to reference variables in outter classes which are occluded by variables in the inner class. So, you could write something like:
    System.out.println("TheadEntryPoint.test = " + TheadEntryPoint.this.test);
    System.out.println("MyClass.test = " + MyClass.this.test);

Similar Messages

  • How to open web pages from japplet??

    Hi
    Does anybody know how to open web pages from java japplet??
    Any help is apreciated!
    zick

    the getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
    check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
    have a good one :)
    Jay

  • How can one encrypt the source code of a given web page(html, jsp, etc.) ?

    Good Day! I'm just having a hard time of thinking how to encrypt the source code of a given web page(html, jsp, etc.) without affecting how it is previewed in an Internet Browser. What I plan is to disable the capabilities of some malicious Internet users of copying the source codes of my web pages by using the "View Source" option of Internet Explorer and the equivalent function in Netscape Navigator. Please somebody help me in this matter (I'm planning to use an IDEA algorithm using JCE)....
    It would be big help if a running code is supplied.
    Thank you very much in advance.
    God Bless!!!
    - Jonathan Untalan([email protected])

    don't know theses softs. What i know about encrypted web pages, is that you need a secure socket connection (https).
    Your web page will be ciphered, send to the user, and decipher by the browser with the signature file associated to your https connexion.
    It isn't possible to encrypt your page directly, and then decrypt them when requested.
    For the download time, only the server is responsible for this.
    if it is overloaded, then it will slow down its upload.
    Maybe you use some encryption method that require a lot of CPU time.
    For summary : you can only cipher the pipe transport, but not the transported pages.
    Good luck in your search.

  • How to create web page same as Struts tiles in OPA?

    Hi,
    How to create web page containing consistent Header,Fotter,left right pannel which embed OPA screen?

    Web Determinations uses Velocity templates to configure the appearance of a paritcular page. You can configure these tempaltes to get the look and feel that you like.
    For more information search for "Oracle Web Determinations Template Reference Guide" in the Oracle Policy Automation Developer's Guide (http://docs.oracle.com/html/E38272_01/toc.htm)

  • How can we set page title from resource bundle

    Hi friends ,
    how can we set page title from resource bundle,
    <%--
        Document   : MARC008Music
        Created on : Aug 4, 2008, 6:27:06 PM
        Author     : root
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
    <title>All Transaction Log Details </title>
          </head>
        <body>
            <f:view>
                <f:loadBundle basename="#{utility.resourceBundle}" var="rb"/>
                <f:loadBundle basename="#{utility.messageBundle}" var="mb"/>
                <h:form>
                </h:form>
            </f:view>
        </body>
    </html>i want set title( All Transaction Log Details ) from resource bundle.

    My problem is solved , Thanking you Sir.
    Thanks & Regards,
    Edukondalu Avula

  • How can I transfer "Pages" files  from my IPad to my Mac?

    How can I transfer "Pages " files from my IPad to my IMac, I cannot use ICloud because I have Mountain Lion installed on the IMac?

    Actually, you can use iCloud and the way that you so it is to log into iCloud.com on the Mac (use Safari for best results) click on the Pages icon and then drag the Pages files into the browser window. It works the other way around as well. Log into iCloud.com on the Mac and download the files from Pages (that you created on the iPad) in iCloud onto your Mac. You can click on the file in the documents window and select it to Download by clicking on the Gear icon or right click upon the file and select download.
    The files will then sync to the Pages app on the iPad - assuming hat you have use iCloud tuned on in Settings>Pages>Use iCloud>On. I have an iMac running Tiger 10.4.11 that I can still move Pages/Word files back and forth Iike this.
    Also, File Sharing with iTunes is a great way to move the files back and forth.
    iOS: About File Sharing - Support - Apple
    Message was edited by: Demo

  • How do you transfer Pages files from Mac to ipad?

    How do you transfer Pages documents from Mac to Ipad?

    If you have iOS 5 on the iPad and enabled iCloud in Pages, you can go on your Mac and go to http://icloud.com, then click iWork, then click the gear icon and upload the document. It should appear on your iPad.
    If you have an older OS on the iPad, you will need to plug in to the Mac and launch iTunes. Click on the iPad under DEVICES. Then click on the Apps tab up top. Scroll down until you see a File Sharing section. Click on Pages, then click on the "Add" button.

  • How do i transfer Page files from my ipad to my desktop mac?

    how do i transfer Page files from my ipad to my desktop mac? The mac help page doesnt help as my ipad files dont show up in itunes.

    I don't have the Pages app, but there are instructions on this page for how to send documents to/from your computer's iTunes : http://help.apple.com/pages/ipad/1.6.1/#tanb5b5c055

  • How do I upload pages docs from my mac to iCloud?

    How do I upload pages documents from my mac to iCloud? Is it something I have to turn on through Pages or do I drag and drop them in the cloud?  When I try to drag and drop them in the cloud, they instantaneously get downloaded to my computer.  iCloud is turned on in my preferences and I have an iCloud account.

    You put them in your Dropbox folder and then open them from your Dropbox app on iOS into your iOS iWork apps. That's puts them into iCloud, including the icloud.com webpage.
    That certainly is not the official solution but the official Apple is silent on how to achieve this.

  • How do you transfer pages application from macbook to new iMac

    how do you transfer pages application from macbook to new imac?

    Install it on the iMac using the same method you used to install it on your MacBook.
    If your MacBook came with it already installed, it may not be a version compatible with your new iMac.

  • How to generate web page from Excel spread sheet?

    I have a spreadsheet containing a long string of HTML text.  It can be viewied below and each line needs to be one web page.  I also have the same file in a flat text file.
    Header 1
    Header 2
    Header 3
    <h3 style="text-align:center;">Minutes of the Annual Meetings of the Brethren: 1778 - 1917</h3>
    <p style="text-align: center;"><a href="images/books/001/220.png" title="Page 220 — Minutes of the Annual Meetings of the Brethren" rel="rokbox[600 905](demo)"><img src="images/books/001/220.png" border="0" alt="Page 220 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" title="Page 220 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" width="500" height="754" /></a><span style="text-align: center; display: block; margin-top: 6px;">Page 220</span></p>
    <p style="display:none;"> </p>
    <h3 style="text-align:center;">Minutes of the Annual Meetings of the Brethren: 1778 - 1917</h3>
    <p style="text-align: center;"><a href="images/books/001/221.png" title="Page 221 — Minutes of the Annual Meetings of the Brethren" rel="rokbox[600 905](demo)"><img src="images/books/001/221.png" border="0" alt="Page 221 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" title="Page 221 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" width="500" height="754" /></a><span style="text-align: center; display: block; margin-top: 6px;">Page 221</span></p>
    <p style="display:none;"> </p>
    I need Dreamweaver CS4 to take this spreadsheet and generate a series of web pages.  The head section will be the same for all the generated HTML files.  A sample page can be viewed here.
    If I can locate a script that will do this then I can take an extension for a Joomla web site and pass along the series of page to it.  The Joomla extension will then create my articles for me.
    Cordially,
    Wayne

    Thanks for the thought, but that generates one large page with each row an item on the page.  What I need is for DW to take each row and create a page of that row.  Even then, in Excel you have to insert rows before my first row of data.  Into thos rows you paste the head information doctype, metadata, the closing head, etc., etc.  Then you have to add a row at the end closing the body and html statements.
    I'll have to try this with something else.  For something so simple you'd figure there was a script to do it.
    Cordially,
    Wayne

  • How to display URL on PDF copied from web page;Does from Safari browser/Not Firefox

    When I make a PDF document from a web page when in Safari, it automatically puts the URL in with the document but not when I'm using Firefox.

    What is the format of that online document - is it an image, or is it perhaps already a PDF document?  If so, you can right-click on it and save it to your local disk.

  • Problem opening live web page (url) from within keynote

    hi.
    i encountered this problem during a recent presentation. i have a standard two-monitor set-up, on my laptop viewing notes etc and presenting on the attached monitor. the transitions between my slides are all set onClick.
    so, when i encounter a hyperlink in my presentation (of the web page type), when i click on it, i am not taken to the web page, but rather to the next slide.
    how do i avoid this? how do i make keynote follow the hyperlink -- i.e. open the webpage during the presentation?
    many thanks in advance for your tips.

    use '_blank' as parameter, not '_self'.
    Guy Dallaire (guest) wrote:
    : Hi,
    : We would like to open a Web Page from a forms running in
    : client/server as well as from a form runningover the web.
    : Over the web, we plan to use SHOW_DOWUMENT (Even tough it
    seems
    : broken, on forms 6.0, the only way we have got it working was
    by
    : using the parameter that overwrites the current page (the
    form),
    : we cannot have it open an URL in another window)
    : In C/S mode, the SHOW DOCUMENT does not work. What is the
    proper
    : way to lauch an URL in a browser in C/S mode ?
    : Is there a way to determine if we're running in CS mode or Web
    : Mode ? We would like to use the same code both on the web and
    in
    : C/S
    : Example pseudo code:
    : if (Running in CS Mode) then
    : open the URL using C/S method
    : else
    : open the URL with show dowument
    : fi
    : Thanks
    null

  • How to center web page made in indesign cs5

    Hi everyone,
    I'm new to this forum and I hope I'll get help, because I need it
    I've made a web page in indesign cs5, exported in SWF and generated HTML.
    My swf file looks good, but my html file is not centered, web page is positioned
    in upper left corner, and I want it to be in the center.
    How can I put it there?
    Thnx very much!
    Hresta

    I know ID is not the best option for a website, but I need it that way.
    I know html/css, but my generated html file contains javascript which
    I'm not familiar with :/
    There's no div so I don't know where to put my auto margins?
    Simply on top of the html file?
    Thnx anyway!!

  • How to manage web page content via labview

    My pproblem is to get cyclic information from a web page containing an
    applet.
    Using a container I cannot manage any text and object in the page. Isn't it?
    Ciao

    If I understand you correctly, you are hosting a webpage in a front panel ActiveX container, and you want to obtain certain information from the webpage.
    This is possible using ActiveX calls. To get access to the HTML document in the container itself, along with all of its text and applets, etc, you need to reference the Document child item from a property node. This item is variant, so you need to use Variant to Data with a ActiveX refnum constant set to MSHTML.IHTMLDocument2 wired to the type. At that point you can access information about the HTML page itself, such as the body's text and so forth.
    I'm attaching a simple example that should help you get started. It's written in LabVIEW 7.1. Good luck!
    Jarrod S.
    National Instruments
    Attachments:
    HTML Document Info.vi ‏36 KB

Maybe you are looking for

  • Does any one else have issues with Safari 5.0.6 and memory usage and bug reports?

    Hey Everyone I have an iMac 7,1 desktop and for year it had gotten me through a lot. I have noticed in the past year My iMac has been slower than usual and I have doen what I can to speed it up. The main issue is Safari 5.0.6 becuase it's using 50% o

  • Logical Database PNPCE and macro RP_SEL_EIN_AUS_INIT

    Hi there, The macro above mentioned should give me only the persons wich are active (employment status <> 0). The problem is, that when i set the reporting period to 01.01.2004 to 31.12.2004 and the field employment status <> 0, i also get a person w

  • View as Icon help

    I am trying to attach a jpeg image to an email. I attach the image and select 'View as Icon' and send it.  To the recipient, It appears as the image, however it is the size of the icon and it can not be opened.  I have attached it from the desktop an

  • How to add src, alt and title tags to a PS generated Web Photo Gallery

    I do some web design and need to add some tags to a web photo gallery created by Photoshop. Maybe this question should be directed to the GoLive / Dreamweaver Forum but since the gallery was created in PS I thought I'd start here. I need to add src,

  • Ctrl-Alt-drag for brushsize also moves Canvas. Bug/problem

    Hi, I'm experiencing a weird problem with Adobe Photoshop Version: 12.0.1 on Mac OS 10.6.4 (Macbook Pro). I've used the ctrl+alt+mousedrag shortcut for changing brush size for some time, but a few days ago it started acting weird. (I have no clue wha