Adding HTML output TO J3D object

Hi all;
i want to show HTML page on a java 3D object say on a face of a Cube or Sphere.
plz suggest something..
already posted in J3D forum.
Thanks in advance!!

Is there anything like HTML loaders or something of this sort so as to load a interactive webpage on face of the cube and not the image of the page??

Similar Messages

  • Adding HTML output TO J3D

    Hi all;
    i want to show HTML page on a java 3D object say a on a face of a Cube or Sphere.
    plz suggest something..
    Thanks in advance!!

    Hi Shendi,
    Probable solution for doing this is as
    1> Try to capture HTML output
    2> Write the captured HTML output to the Buffered Image
    3> Use that buffered image for displaying it on Java 3D/2D Object.
    Hope this will work. Only thing is that the HTML page will not interact like in web browser, because 3D/2D deals with images.
    Regards

  • Rendering HTML output on Java 2D/3D Objects

    Hi all, I want to read an HTML file and render an HTML output to the objects in Java 2D or Java 3D world.
    For doing this, I am following the steps as
    1> Read HTML file
    2> Capture its output
    3> Write captured output to the buffered image.
    4> Use that buffered image to be shown on Java 2D/3D object as a texture.
    How can I capture the HTML output?
    If you have any other way, please suggest me.
    Regards

    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class captureHTML extends JPanel{
        public BufferedImage bufferedImage ;
        public Image image, capturedImage ;
        public Graphics2D g2d;
        public captureHTML() {
            capturedImage = capture("http://www.google.com");
            bufferedImage = new BufferedImage(1000,700,BufferedImage.TYPE_INT_RGB);
            g2d = bufferedImage.createGraphics();
            g2d.drawImage(capturedImage,0,0,this);
            image = bufferedImage.getScaledInstance
                        ((int)(-1),
                        (int)(-1), 
                        Image.SCALE_SMOOTH) ;
        public Image capture(String str)
            URL url;
            JEditorPane jep = null;
            try {
                url = new URL(str);
                try {
                    jep = new JEditorPane(url);
                    jep.setContentType("text/html");
                    jep.setPage(url);
                } catch (IOException ex) {
                    ex.printStackTrace();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
            Image jepImage = jep.createImage(500,500);
            return jepImage;
        public void paint(Graphics g)
                System.out.println("paint called");
                if (getSize().width <= 0 || getSize().height <= 0)
                    return;
                Graphics2D g2 = (Graphics2D) g;
                if (image != null && isShowing()) 
                    g2.drawImage(image, 0, 0, this);
        public static void main(String args[])
            JFrame f = new JFrame();
            int w = 1000;
            int h = 700;
            f.setSize(w, h);
            f.getContentPane().setSize(w, h);
            f.getContentPane().add(new captureHTML());
            f.setDefaultCloseOperation(1);
            f.setVisible(true);
    }I Implemented the code as db suggested, I think it will work. But at the moment without any error I am getting only blank black screen. Please have a look at capture( ) method. I think there is a problem in this method but I cant figure out whats going wrong.
    Regards

  • Colour duplicate values in html output

    Hello,
    I am looking to colour duplicate values in an html output file. 
    I have written a folder comparison ps script which shows output as below:
    Name Length Version
    Name length and version are the column names
    Now there are many duplicate entries under name column which I need to highlight using any one colour. I have sorted the output under name using alphabetical order.
    I just need to highlight all duplicate values using a particular colour. 
    Thanks in advance.

    Posting my script here:
    # Get Start Time
    $startDTM = (Get-Date)
    $a = "<style>"
    $a = $a + "BODY{background-color:peachpuff;}"
    $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
    $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
    $a = $a + "</style>"
    $folderReference = Read-Host "Enter Reference Folder Name"
    $folderDifference = Read-Host "Enter Difference Folder Name"
    $FolderReferenceContents = Get-ChildItem $folderReference -Recurse | 
        where-object {-not $_.PSIsContainer}
    $FolderDifferenceContents = Get-ChildItem $folderDifference -Recurse | 
        where-object {-not $_.PSIsContainer}
    #get only files that are on reference folder not base folder
    $one = Compare-Object -ReferenceObject $FolderReferenceContents `
    -DifferenceObject $FolderDifferenceContents -Property ('Name', 'Length','Get-FileVersionInfo') -PassThru |
        where-object { $_.SideIndicator -eq '<='} | select Name, Length, LastWriteTime, VersionInfo
    #get only files that are on base folder not on reference
    $two = Compare-Object -ReferenceObject $FolderReferenceContents `
    -DifferenceObject $FolderDifferenceContents -Property ('Name', 'Length','Get-FileVersionInfo') -PassThru |
        where-object { $_.SideIndicator -eq '=>'} | select Name, Length, LastWriteTime, VersionInfo
    $three = $one + $two | sort-object -property Name | ConvertTo-HTML -Fragment 
    # Get End Time
    $endDTM = (Get-Date)
    # Echo Time elapsed
    $four = "Elapsed Time: $(($endDTM-$startDTM).totalseconds) seconds"
    ConvertTo-HTML -Head $a -Body "$one $two $three $four" -Title "Output" | Out-File C:\output.html

  • Image path in HTML output

    Hi all,
    I'm trying to deliver a BI report using the ftp device.
    The report is delivered in HTML format correctly, but
    when I try to open it, images that should display charts
    are not visible.
    Giving a look at the HTML code I've noticed that the image
    source path is:
    <img src="/xmlpserver/xdo/tmp/xdoimgZA4ql3v7Hz31567.gif">
    which is not the correct path.
    Is there a way to automatically set that path when the
    report is delivered?
    Thank you in advance,
    Roberto

    If you were to output the same report as PDF instead of HTML, I'm guessing the PDF file would contain the actual image. (Am I right anyone?) However, when you output as HTML, there is no way to embed an image in the HTML output.
    HTML can only reference external images via URLs, so it appears from your output HTML code that BI Publisher creates a temporary GIF image and allows it to be referenced via that unique URL. Who knows how long that URL is valid?
    After you FTP the output to another server, the <img src> reference is no longer valid, because the path in the src attribute is relative to the HTML file itself. The FTP'd report might show the image if you edit the HTML file so the src attribute includes the full URL to the image:
    <img src="http://bi.publisher.host:port/xmlpserver/xdo/tmp/xdoimgZA4ql3v7Hz31567.gif"/>
    But again, how long does BI Publisher cache the image, and how long until the login session times out so you can no longer access it anyway? Note that you would have to use the same browser session to view the FTP'd report as was used to run the report in the first place. In other words, run the BIP report initially using a browser on the host that is the FTP destination for the report. Then edit the <img> tag, and finally open the HTML file in the same browser.
    A note to other readers: Images in RTF templates are often used as mere placeholders for charts created when the report is run. It is the "Alternate Text" assigned to the dummy image that tells the XSL-FO processor how to replace the image with a chart displaying the report output data.
    To solve this problem in a more supportable way, please see this Tim Dexter blog entry:
    http://blogs.oracle.com/xmlpublisher/2006/10/31/
    Edited by: Multiverse on Aug 15, 2009 7:59 PM (added Tim Dexter blog reference)

  • Reading the output from a object running in the local machine.

    Reading the output from a object running in the local machine.
    By using a signed applet i am lunching a small application that returns an image object, how to read that without storing it in the hard disk.
    Which means i need to read the image object return by the local application using applet or jsp .
    i am using tomacat and an html page with an applet with it to lunch the application.

    You can write that image in a binary format using OutputStream for System.out and then read it in your applet.

  • Error in generating HTML output using Central Output Pro Server 5.5

    I am getting the following error while generating HTML output using the Output Pro Server. A new printer was created with the Physical Device as "HTML Template Generation - [html]" and added to the Job.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](1801) The printer name is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3015]Error, unable to open printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3008]Error, unable to get info about device 'PAYMENTADVICEHTM.html' attached to port '<nil>'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](183) Cannot create a file when that file already exists.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [2]Error opening output device/file 'PAYMENTADVICEHTM.html'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](6) The handle is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3018]Error ending page on printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]Nothing was printed.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [3018]Error ending page on printer.

    If I were to guess, I'd guess that your filename is invalid. How about removing all special characters (spaces, brackets, etc.) from the device name. Also, make sure your form was compiled for HTML.
    I haven't actually used the HTML driver, but these are general things you should do if you have trouble with any Central driver.
    Regards,
    Rob McDougall
    Indigo Pacific

  • How to get the size of JSP html output?

    Hi,
    Is there a JSP method to get the size of JSP HTML output.
    e.g. I would like to print the size of the JSP e.g.
    Size of this page is <%=pageContext.getPageSize()%> Kb ???
    Any ideas? Thanks.
    George
    Edited by: googchro on Jan 5, 2010 4:45 PM

    Would you like to print "the size of this page is..." before or after you calculate the size of the page.
    Because adding that bit of text to the page will make the page bigger...
    Doing it in java, the best approach would probably to have a filter counting the number of bytes that gets sent to the writer/output stream.
    A client side tool measuring the amount of bytes received would probably be easier though.
    You can always look at the Content-length header sent with a response. Though you normally don't have access to that on the java/jsp side, as it is sent by the container.
    cheers,
    evnafets

  • HTML Content in Powershell HTML Output

    How do I include HTML tags in the table output generated by the ConvertTo-HTML command?
    For example, if I had an array of objects like this:
    FriendlyName,URL
    Microsoft,www.microsoft.com
    Google,www.google.com
    Yahoo,www.yahoo.com
    How could I make my ConvertTo-Html output something like this:
    <a href="www.microsoft.com">Microsoft</a>
    <a href="www.google.com">Google</a>
    <a href="www.yahoo.com">Yahoo</a>
    I have already tried making another property on my objects (OutHTML) with a string of "<a href=" + [char]34 + $URL + [char]34 + ">" + $FriendlyName + "</a>"
    Unfortunately, ConvertTo-Html does its job too well and it converts all of my HTML tags to use &lt; and &gt; so that the < and > will display on the webpage!  Thanks for your help!

    Thank you, that looks like it does exactly what I need!  Can you tell me if I'm correctly understanding what's going on in their example?
    $pso = New-Object PSObject -Property @{
    SiteUrl = $spweb.url
    PageTitle= $PageTitle
    PageUrl = "<a href='$PagesUrl'>$PageTitle</a>"
    } | ConvertTo-Html
    Add-Type -AssemblyName System.Web
    [System.Web.HttpUtility]::HtmlDecode($pso) |
    Out-File \\myfolder\InventoryReports\$CurrentMonth.html
    At first, they generate the powershell object with the desired properties (including a property for the formatted hypertext output), which is then converted in place to HTML.  It then loads the .Net framework System.Web class so that they can access
    the HtmlDecode() method.  They pass the HTML'ified $pso to that method, which searches through $pso for any HTML special characters (the &gt, &lt, etc.) and replaces them with the actual characters, then writes the modified string out to a file.
     Thanks for your help!

  • Print option in html output

    Through BI Publisher i need to send my html output report to oracle ADF. There user needs Print option on the html output to his local printer..This html will come as pop up..There will not be any File-options. Is there any possiblity through Bi Publisher.
    Thanks

    you have gone beyond the BIP world, and you are into ADF world, but try adding your options in ADF popup page that you are throwing

  • HTML output with CrystalReports Server 2008

    Hi there,
    I am thinking of evaluating the Crytsal Reports Server 2008. But basically, I just have one question about it:
    - How does the HTML output of the Crystal Reports Server look like? Can it be directly shown in a browser window?
    - Does the Crystal Reports Server offer a viewer such as the JRC? Does ther viewer also only run in a servlet or can it also be included in a web service?
    Thanks,
    Pascal

    With the Web Service SDK, you will need to have Crystal Reports Server running to use it. 
    Both the JRC and the Web Service SDK allow you to render reports in HTML; the JRC uses a built in viewer object to render the report in a web browser, whereas with the WS SDK you need to create your own viewer.
    In terms of the functionality they both employ, the Web Service SDK is very similar in nature to the Enterprise SDK and in fact uses the Enterprise SDK to perform many of its tasks, the difference being of course that requests are passed in the form of a web service to the server.  Enterprise SDK uses "managed reporting" (opens reports from the CMS database), and the JRC uses unmanaged reporting (opens reports from the file system).
    The [Developer Library|https://boc.sdn.sap.com/developer/library] is a good resource for finding tutorials and information about the SDK's available with Business Objects products.

  • [Q] htmlKona - adding attributes not specified in object model

    How do I go about adding attributes to a htmlKona object that exist in
              proprietary HTML versions, or versions beyond what is supported in Kona, if
              those add methods do not exist in the current object model?
              Most htmlKona elements extend weblogic.html.ElementWithAttributes, but the
              addAttribute(String, String) method is inexcessable.
              Any help appreciated. If this is posted to the wrong group, please point me
              in the right direction.
              Lukas
              

    I guess you need to get htmlkonapatch403Patch.jar. ElementsWithAttributes
              supports it then.
              Madhavi
              Lukas Bradley <[email protected]> wrote in message
              news:[email protected]...
              > import weblogic.html.TableElement ;
              >
              > class TableTest
              > {
              > public static void main(String args[])
              > {
              > TableElement lTable = new TableElement() ;
              > lTable.addAttribute("height", "100%") ;
              > }
              > }
              >
              > Yields:
              >
              > TableTest.java:8: Method addAttribute(java.lang.String, java.lang.String)
              > not found in class weblogic.html.TableElement.
              > lTable.addAttribute("height", "100%") ;
              > ^
              > 1 error
              >
              > While the documentation states:
              >
              > java.lang.Object
              > |
              > +----weblogic.html.HtmlElement
              > |
              > +----weblogic.html.ElementWithAttributes
              > |
              > +----weblogic.html.MultiPartElement
              > |
              > +----weblogic.html.TableElement
              >
              >
              > And ElementWithAttributes has:
              >
              > addAttribute(String, String)
              >
              > And yes, many browsers will allow you to set the height on a table. =)
              > Thanks for any help.
              >
              > Lukas
              >
              >
              >
              > John Greene wrote in message <[email protected]>...
              > >
              > >Hi --
              > >
              > >A method was added to allow generic attributes. I thought it was this
              > method
              > >you speak of. How do you mean it's inaccessible? Newsdude, can you
              > clarify?
              > >
              > >
              > >Lukas Bradley wrote:
              > >>
              > >> How do I go about adding attributes to a htmlKona object that exist in
              > >> proprietary HTML versions, or versions beyond what is supported in
              Kona,
              > if
              > >> those add methods do not exist in the current object model?
              > >>
              > >> Most htmlKona elements extend weblogic.html.ElementWithAttributes, but
              > the
              > >> addAttribute(String, String) method is inexcessable.
              > >>
              > >> Any help appreciated. If this is posted to the wrong group, please
              point
              > me
              > >> in the right direction.
              > >>
              > >> Lukas
              > >
              > >--
              > >
              > >Take care,
              > >
              > >-jg
              > >
              > >John Greene E-Commerce Server Division, BEA Systems,
              > Inc.
              > >Developer Relations Engineer 550 California Street, 10th floor
              > >415.364.4559 San Francisco, CA 94104-1006
              > >mailto:[email protected] http://weblogic.beasys.com
              >
              >
              >
              >
              

  • Image sizing for HTML output

    Hi,
    ias904
    the user help About Images states:
    "The size of the object that contains the URL defines the size of the image in the HTML output.   Any elasticity properties applied to the object are ignored."
    I've got an item of type Image URL and I'm unable to get images to display using their original size definition - Reports always apply its own sizing - resulting images are skewed
    Is this a feature or can any properties be set to fix this??
    Thanks
    Pete

    Hi Pete,
    I've got an item of type Image URL If the image is present on the local file system, then if you choose Vertical and Horizontal elasticity as variable, the images are automatically sized to their correct size. In this case, the Reports Server has access to the images while formatting the report, so it can leave appropriate width and height for the image.
    However, in case the image is a web URL, then Reports Server (while formatting the report) does not get access to the actual images. So it does not know how much exact width and height should be left. So the only way out in this case is that you design the Image URL object according to the final size of the image. It means that at design time, you will have to manually compare the size of the object with the image, and resize the object accordingly.
    Navneet.

  • Customizing Cp HTML output

    I'm looking for a little assistance regarding the best way to insert an HTML + Flash wrapper around the wrapper that is automatically generated by Cp4 in its HTML output. I'm a FL newbie/intermediate DW user, and I don't want to screw up the existing scripting in the HTML template files.
    So I guess my question really surrounds best practice for adding a header/footer/maybe rt-or-left nav frame around the content that CP produces. Would anyone who has done this be willing to share some code (stripped of your content, if you prefer) that might help me achieve this?
    Or, if I'm thinking about this in entirely the wrong way, can someone point me in the right direction? I feel like I'm being particularly dense about this!
    Thanks in advance!!
    A. Stringer

    Hello Brian and Marcel:
    I have the same question as you did. Did you get any further
    information about this? I am dying for a solution. If anybody
    has a solution, please share with us. Thanks.
    Brian Lin (guest) wrote:
    : Hi all,
    : Marcel, I got the same questions (problems) with you did. I
    have
    : been searching this topic for long time, still I can not have
    : right materials. Recently AMAZON (www.amazon.com) will have
    : Oracle JDeveloper 2.0 (ISBN: 0072120983) on the market, but
    I'm
    : not sure what's the contents inside talking about DBServlet.
    : Good luck!
    : Brian Lin
    : Marcel Sansaricq (guest) wrote:
    : : Hi everyone,
    : : I am a new user of JDeveloper 2.0. I have been trying to
    : : understand how JDeveloper's Wizard generated Database
    Servlets
    : : generate standard HTML pages for Querying, Updating,
    inserting
    : : database records. The InitializeDBServlet method that is
    : : generated by the DBServlet Wizard provides very little
    insight
    : : into the HTML generation engine.
    : : The JDeveloper documentation gives some hints on customizing
    : : Servlet HTML output in section "Creating a Custom HTML
    form".
    : : Basically, it recommends to use
    : : methods provided in oracle.jdeveloper.servlet.DBServlet,
    : : oracle.jdeveloper.servlet.UserSession,
    : : oracle.jbo.rt.cs.RowIterator and oracle.jbo.rt.cs.Row
    : interfaces
    : : to implement custom HTML forms that servlets can generate.
    : : The documentation files for oracle.jbo.rt.cs.* interfaces
    are
    : : missing within the JDeveloper help menu and coverage on
    : : oracle.jdeveloper.servlet.DBServlet,
    : : oracle.jdeveloper.servlet.UserSession is very basic.
    : : Can anyone point me in the right direction to get thorough
    : : documentation, containing examples if possible, on the
    : mentionned
    : : interfaces.
    : : Thanks in advance,
    : : Marcel Sansaricq
    null

  • Missing a single space in html output

    Hello to all,
    take a look at the following code copied from a View
    <% DATA: eins TYPE STRING VALUE 'ClassEins',
             zwei TYPE STRING VALUE 'ClassZwei'. %>
    <span id="Test1" class="<%=eins%> ClassZwei">test it</span>
    <span id="Test2" class="ClassEins <%=zwei%>">test it</span>
    it works fine if compression is set to NONE, but if compression is set to 1 (remove spaces) or 2 (remove spaces, CR, LF) the html output looks like this:
    <span id="Test1" class="ClassEinsClassZwei">test it</span>
    <span id="Test2" class="ClassEins ClassZwei">test it</span>
    Where is the single space? What’s wrong? Why is the first space removed, but the second isn’t?

    Thilo,
    At this stage we are not planning a kernel patch, unless your business case is really pressing. (In which case update OSS message so that rethink why nein is the right answer.) We have actually spend a number of hours to find where this is stripped (by accident), and see that the price to fix this, is very high for us. The truth is that this is a minor problem that only happens when you active the additional compression, where our first suggestion would be to just skip the compression for this page. (All of this been said, we will keep it on the toDo list, and see if can get the resources at same stage to dive into kernel development again.)
    (Just for interest, not even myself could remember where some of this code is executed. Your problem provided a nice trip down memory lane!)
    As for the back tics, they are string literals, and are space sensitive in ABAP. An example:
      CONCATENATE 'a ' 'b ' 'c ' INTO s. --> s = "abc".
      CONCATENATE `a ` `b ` `c ` INTO s. --> s = "a b c ".
    The nice thing about this is that it is now possible to write in ABAP strings that contain <b>both</b> HTML and JavaScript all in one:
      s = `<body onload="myFunc('JSparm');">`.
    We use " and ' for the HTML and JavaScript, and the ` to build the ABAP string. Makes the Java colleagues just jealous of our writing style:)
    brian

Maybe you are looking for