Hyperlink event handleor

How to create a HyperLink Event handler.
Such as HyperLink_Action(), to it work.

Did you try double click on the Hyperlink component?
- Winston
http://blogs.sun.com/winston

Similar Messages

  • Hyperlink events in iCal?

    Can you hyperlink events in iCal? I've been unable to do so and can find no references for it.
    John Kendrick

    I've done a bit of research on hyperlinking events in iCal since I made that post. Turns out you can but it's sufficiently awkward to not be worth it. For my purposes.
    To do so, create a new event. Either in the subsequent edit button or the original, you will see a url field. You can past the url there. The problem is that it's only accessible when you click on the event, bringing up the subsequent window. I wanted something that was clickable from the face of the calendar itself.
    I got to this problem because I was putting together a spring calendar of attractive events at Carnegie Hall, in NYC. I wanted to be able to hyperlink short notations about each event, such as the name of the orchestra, to a full page description of the event on Carnegie's website. That way my wife could look through the full calendar with the full references, pick her preferences the better for us to decide which to buy tickets for.
    I've decided to stick with calendars in Word, which does have this ability, and are easily shared across our home network.
    John Kendrick

  • Capture Hyperlink event and set value

    Hello everyone,
    I have a hyperlink on a report column and when I click on the hyperlink it takes me to an URL. Now I need to capture the time the user clicked on the URL and update a DB table column. So I created a Dynamic event to update an item, but I am not able to get the hyperlink event. When I select the Event as 'Click' and 'Selection Type' as 'Item', the report column does not show up on the Item(s) LOV. Can Dynamic Actions be based only on click of page items?
    If so, is there any other to capture this Hyperlink event and set value? Also, as my 'Column Link' target is 'URL', I cannot set any value for items there!
    Please help,
    Ramya

    Thanks a lot Vee, that was very helpful.
    I added the dummy page with 'OnLoad' page process with the PL/SQL code and my current page redirects to a new page with the new page's attributes set. Now I am able to update the timestamp on the table with the sysdate when I click on the click. However, my URL does not work. A page cannot be found error is returned. I displayed the P2_URL_ITEM on the page and it displays only until 'http', the rest of the text is cut. Is there a way I can increase the length of this page item?
    As the URL value assigned to the page item did not work, I tried to hardcode the URL. Below is my page process on the load of dummy page,
    BEGIN
    UPDATE xxnf.XXNF_APEX_RR_REPORTS
    SET last_used = SYSDATE
    WHERE report_id = :P2_REPORT_ID;
    sys.owa_util.redirect_url('www.google.com');
    --owa_util.redirect_url(:P2_URL_ITEM);
    END;
    However, still the page not found error comes up. Could you please help fix both these issues?
    1) P2_URL_ITEM - not having the complete URL
    2) redirect_url not working.
    Looking forward to any helpful pointers,
    Ramya

  • Reg ALV Hyperlink event handling in WDA

    Hi,
    I am using one ALV for Invoice in WDA. There in that ALV, column containing VBELN has been defined as Hyperlink. On clicking of VBELN, detail about that should be opened up as PDF.
    So far, this is working. But, my problem is, if once VBELN has been selected, next clicking does not pass diff VBELN.
    I need to know how can I handle  clicking on diff VBELN in my Invoice ALV?
    If there is anything like clear or refresh, that need to be invoked in Afteraction or Beforeaction or WdModifyView...?
    Or is there a syntax like
    wdContext.currentContextElement().setSpace(" ");
    for getElement( ) also...?
    Thanks.
    Kumar Saurav.
    Edited by: Kumar Saurav on Feb 5, 2010 8:55 AM

    Hi Arjun,
    I followed and implemented this line --
    In the DISPLAYPDF method, create a parameter ln_vbeln ref to vbeln.
    Now,
    Now when you call this method in the ON_CLICK event handler (use the help of code wizard to call the method),
    So, why should I call this method in ON_CLICK Event Handler?
    In ON_CLICK Method, this is my code that is being generated using Wizard --
    LO_EL_VBRKTAB_2->GET_ATTRIBUTE(
          EXPORTING
            NAME =  `VBELN`
          IMPORTING
            VALUE = LV_VBELN ).
    In addition, I am just firing the Plug to call View that has PDF Container - InteractiveForm Element.
    And, DISPLAYPDF is a Method defined in ComponentController Method Tab. There, I am employing the logic to fetch the data using Wizard from diff nodes and processing those to give the output from Smartforms as PDF.
    There, I've defined ln_vbeln, but, an error comes stating - ln_vbeln cannot be a table, a reference, a string, or contain any of these objects
    Here, my question is I've defined my steps. Let me do it in numbers--
    1) View for Input defined
    2) View to contain output ALV defined
    3) View to contain PDF defined
    4) Method ON_CLICK defined in second View
    5) Method DISPLAYPDF defined in COMPONENTCONTROLLER's Method Tab
    Now, suggest me what to do and where?
    Thanks.
    Kumar Saurav.

  • Preprocess and hyperlink events

    hi,
    i am attempting to change some component properties when a user clicks a hyperlink on a page. the link's url points to the same page that the link is on, and i'd like for clicking the link to result in some new components on the page being rendered and some other components being hidden. however, i'm having problems figuring out where to put the code to handle the rendering of components.
    i've tried to set the appropriate component properties in the action handler for the link, but this doesn't work. actually, it doesn't appear that this link_action() method is being called at all. why is that?
    alternatively i tried putting the code in the preprocess() method, but clicking a link isn't considered a postback, is it? this approach has not worked either.
    any help is much appreciated.

    Hi
    I only want to say that I have similar problem, and can't figure it out.
    I am changing a sessionbean property in link_action() method and I can tell you it works, it updates the property. But I don't know where to put the code that updates the component values, after that session bean property has changed.
    I tried putting the code in preprocess, prerender... (And some places I probably shouldn't say in public :D) Nothing worked.
    Is there a good explanation of what exactly these methods do?

  • HyperlinkListener and HyperLink Event

    Hi Gurus,
    I made a little bit change to JtreeDemo, and load a html file to JEditPane, and there are some link in the html page, I would like some thing happen when user clicks on the url, so I add HyperLinkListener and event,but it seems nothing happen when I run the application. I will really appreciate If you can help me to work this out.
    Thanks
    John
    import javax.swing.JTree;
    import javax.swing.event.*;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.tree.TreeSelectionModel;
    import java.net.URL;
    import java.io.IOException;
    import javax.swing.JEditorPane;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JFrame;
    import java.awt.*;
    import java.awt.event.*;
    public class Example extends JFrame implements HyperlinkListener
    private JEditorPane htmlPane;
    private static boolean DEBUG = false;
    private URL helpURL;
    //Optionally play with line styles. Possible values are
    //"Angled", "Horizontal", and "None" (the default).
    private boolean playWithLineStyle = false;
    private String lineStyle = "Angled";
    public Example() {
    super("example");
    //Create the nodes.
    DefaultMutableTreeNode top = new DefaultMutableTreeNode("example");
    createNodes(top);
    //Create a tree that allows one selection at a time.
    final JTree tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    //Listen for when the selection changes.
    tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)
    tree.getLastSelectedPathComponent();
    if (node == null) return;
    Object nodeInfo = node.getUserObject();
    if (node.isLeaf()) {
    courseInfo course = (courseInfo)nodeInfo;
    displayURL(course.courseURL);
    if (DEBUG) {
    System.out.print(course.courseURL + ": \n ");
    } else {
    displayURL(helpURL);
    if (DEBUG) {
    System.out.println(nodeInfo.toString());
    if (playWithLineStyle) {
    tree.putClientProperty("JTree.lineStyle", lineStyle);
    //Create the scroll pane and add the tree to it.
    JScrollPane treeView = new JScrollPane(tree);
    //Create the HTML viewing pane.
    htmlPane = new JEditorPane();
    htmlPane.setEditable(false);
    initHelp();
    JScrollPane htmlView = new JScrollPane(htmlPane);
    //Add the scroll panes to a split pane.
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    splitPane.setTopComponent(treeView);
    splitPane.setBottomComponent(htmlView);
    Dimension minimumSize = new Dimension(100, 50);
    htmlView.setMinimumSize(minimumSize);
    treeView.setMinimumSize(minimumSize);
    splitPane.setDividerLocation(100); //XXX: ignored in some releases
    //of Swing. bug 4101306
    //workaround for bug 4101306:
    //treeView.setPreferredSize(new Dimension(100, 100));
    ///ttttttttttttttttttttttt
    htmlPane.addHyperlinkListener(this);
    //ttttttttttttttttttttttttt
    splitPane.setPreferredSize(new Dimension(500, 300));
    //Add the split pane to this frame.
    getContentPane().add(splitPane, BorderLayout.CENTER);
    private class courseInfo {
    public String courseName;
    public URL courseURL;
    public String prefix = "file:"
    + System.getProperty("user.dir")
    + System.getProperty("file.separator");
    public courseInfo(String course, String filename) {
    courseName = course;
    try {
    courseURL = new URL(prefix + filename);
    } catch (java.net.MalformedURLException exc) {
    System.err.println("Attempted to create a courseInfo "
    + "with a bad URL: " + courseURL);
    courseURL = null;
    public String toString() {
    return courseName;
    //tttttttttttttttttttttttt
    public void hyperlinkListener(HyperlinkEvent e)
    if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
    // do something on HL click
    System.out.println("ouverture");
    if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
    // do something on mouse over HL
    // do something on HL click
    System.out.println("bbbbbbbbbbbbbbbbbbbb");
    if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
    // do something on HL click
    System.out.println("ggggggggggggggggggg");
    // do something on mouse moved away from HL
    public void hyperlinkUpdate(HyperlinkEvent e)
    //ttttttttttttttttttttttttt
    private void initHelp() {
    String s = null;
    try {
    s = "file:"
    + System.getProperty("user.dir")
    + System.getProperty("file.separator")
    + "lesson1.html";
    if (DEBUG) {
    System.out.println("Help URL is " + s);
    helpURL = new URL(s);
    displayURL(helpURL);
    } catch (Exception e) {
    System.err.println("Couldn't create help URL: " + s);
    private void displayURL(URL url) {
    try {
    htmlPane.setPage(url);
    } catch (IOException e) {
    System.err.println("Attempted to read a bad URL: " + url);
    private void createNodes(DefaultMutableTreeNode top) {
    DefaultMutableTreeNode category = null;
    DefaultMutableTreeNode course = null;
    category = new DefaultMutableTreeNode("Vector");
    top.add(category);
    //original Tutorial
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 1: Definition of Vector",
    "lesson2.html"));
    category.add(course);
    //Tutorial Continued
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 2:",
    "lesson3.html"));
    category.add(course);
    //JFC Swing Tutorial
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 3:",
    "lesson4.html"));
    category.add(course);
    //Arnold/Gosling
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 4", "lesson5.html"));
    category.add(course);
    //FAQ
    course = new DefaultMutableTreeNode(new courseInfo(
    "Lesson 5: ", "lesson6.html"));
    category.add(course);
    //Chan/Lee
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 6: ",
    "lesson6.html"));
    category.add(course);
    //Threads
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 7: Exercises ",
    "lesson7.html"));
    category.add(course);
    category = new DefaultMutableTreeNode("Matrix--Plot");
    top.add(category);
    //VM
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 1: Definition of Matrix",
    "lesson8.html"));
    category.add(course);
    //Language Spec
    course = new DefaultMutableTreeNode(new courseInfo
    ("Lesson 2: Definition of Plot",
    "lesson9.html"));
    category.add(course);
    public static void main(String[] args) {
    JFrame frame = new Example();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    See following, it has Hyperlinklabel and button example.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=328882

  • Using hyperlinks in a scrollpane.

    Well, Ive finally been able to display the webpages in my scrollpane now. But when i move my mouse over the hyperlinks.....it doesn't change, and won't go to the located urls. What am I doing wrong please?
    Thanx

    You need to add hyperlink event listeners to your JEditorPane. This is because the editor pane only displays the document, it doesn't do anything about the hyperlinks itself.
    This is the usual way to do it...
        JEditorPane myEditorPane;
        myEditorPane.addHyperlinkListener(new MyHyperlinkListener());
        class MyHyperlinkListener implements HyperlinkListener {
            public void hyperlinkUpdate(HyperlinkEvent evt) {
                HyperlinkEvent.EventType type = evt.getEventType();
                if (type.equals(HyperlinkEvent.EventType.ACTIVATED)) {
                    // the hyperlink was clicked or activated by the keyboard or some other way, so change the editor to that URL.
                    myEditorPane.setPage(evt.getURL());
                // there is also ENTERED and EXITED, which roughly equate to HTML's mouseover, mouseout events.

  • Setting the order of event listeners

    I have a JEditorPane with html formatted text. When the user clicks on a link, I want to determine if it is a right click before sending the hyperlink event. I tried adding a mouse listener before I added the hyperlink listener, but it still calls the hyperlink 1st. How can I get the mouselistener to be called 1st?
    Thanks!

    Thanks, this is what I am doing. I combined my two
    listeners into one class that implemented both
    listeners. I am using boolean flags to check to see
    if both have been called or not. I was just wishing
    there was a better way. I think you actually only need one flag, for the HyperlinkListener. The way I did it was, you combine them in one class like you said, and capture the URL from the Hyperlink event. Store it in a class URL variable, set the hyperlinkSet flag and then on the mouseClicked method check if it was a right mouseClick (to popup some menu etc) or a left click, where you can just set the page to the URL you have stored.

  • Viewing reports generated by BOXI in local Java application?

    Hi,
    I am developing a Java client that will act as a front-end to a BOXI R2 server and am having some problems finding a suitable way to display the generated reports in an integrated manner.
    I have been using the Web Services component to interact with the server as this seems like the easiest (only) way to run reports on demand, including setting parameters. The ReportViewerBean java applet seems like the only tool available to integrate in a client java application but I have some problems with it. The only way I have been able to get it to display a report is by getting an IReportSource from the page server. It also doesn't let me set parameters programatically and so what my app has to do at the moment is set parameters and retrieve a view using the web service, put the retrieved view back on the server in a temporary location and then retrieve the temporary view on the server using the IReportSourceFactory and feed that to the ReportViewerBean.
    This solution is no good and I need some help getting this to work.
    I have used an ActiveX CR viewer component in a separate project written in VB6 which allowed me to set parameters, data sources, ect. and run the report. It was very flexible, but unfortunately tied to windows. Is there any similar component available in java that isn't as crippled as the ReportViewerBean and allows me to just view the report I retrieved from the server?
    Thanks,
    Elliot.

    The Crystal Report Viewer looks good, but it seem that it's only available for Windows and Mac platforms. The reason why I am using Java is because the company I am working for has clients using both Windows and Solaris workstations.
    The reporting component I am investigating needs to be integrated with our current software solution.
    There are a few requirements that restrict this to an integrated solution:
    We will be managing cascading and custom dynamic prompts and feeding formatted strings from that to the report parameters
    Solution has to be cross platform, including Unix platforms
    Interface has to be restricted so that viewing, printing, exporting can be controlled and audited by us.
    An interface that I can catch hyperlink events from to trigger extra functionality in the parent program.
    Thanks for the suggestion, but are there any other thick client java options for viewing a generated report?

  • Swings-JEditorPane-email link

    i am having an e-mail link in html file which i am getting from the system and displaying in JEditorPane. The problem is, on clicking the link it is not opening the outlook express new mail box though it is opening it when run independent of JEditorPane. It is throwing exceptions,Can any one of u help me out Please?

    My guess is that this functionality is not part of the JEditorPane/HMTLEditorKit/HTMLDocument classes. To implement this, grab the URL from the hyperlink event (evt.getURL())and check to see if it is a mailto URL. If it is, then use a system call to open Outlook with the recipient in the To: field.
    Hope this helps...

  • Dynamic navigation to Component of IBase

    Hi Team,
    The requirement is need to navigate to Component Of IBase from our custom view.
    By using the Search Query we are able to get the collection IBComponent.
    How can i proceed with the dynamic navigation in my hyperlink event.
    In the SPRO settings the object details of IBMAIN has not been maintained.
    Kindly share your thoughts.
    Thanks,
    Ravi

      HI Ravi,
    Try to use below logic in Event handler of hyperlink.
    data:  lv_descriptor_object  TYPE REF TO if_bol_bo_property_access,
            lr_navigation         TYPE REF TO if_crm_ui_navigation_service,
            lr_data_collection    TYPE REF TO if_bol_bo_col,
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
      CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_ui_object_based
      EXPORTING
        iv_ui_object_type   = 'IB150_IBASE'
        iv_ui_object_action = 'B'
        RECEIVING
        rr_result           = lv_descriptor_object.
       IF lv_descriptor_object IS BOUND.
        CREATE OBJECT lr_data_collection TYPE cl_crm_bol_bo_col.
       lr_query = cl_crm_bol_query_service=>get_instance(
            iv_query_name = 'IBIBaseToIBase' ).
            REFRESH it_parms.
            wa_parms-name = 'IBASE'.
            wa_parms-VALUE = lv_ibase.(Your ibase iD)
            APPEND wa_parms TO it_parms.
    *Add the selection parameters
            CALL METHOD lr_query->set_query_parameters
            EXPORTING
              it_parameters = it_parms.
    *Get the result list
            lr_result = lr_query->get_query_result( ).
    *Get the first object(entity) in the result list
            lr_entity ?= lr_result->get_first( ).
            CHECK lr_entity IS BOUND.
            lr_data_collection->add( lr_entity ).
            lr_data_collection->insert( iv_bo = lv_descriptor_object
            iv_index = 1 ).
            IF lr_navigation->is_dynamic_nav_supported( ir_descriptor_object = lv_descriptor_object ) = abap_true.
              lr_navigation->navigate_dynamically( lr_data_collection ).
            ENDIF.

  • Emulating an HTMLFrameHyperlinkEvent

    Hello,
    ive got an problem and hope that you can help me.
    i have written an helpdialog who views a help.html on a JEditorPane. Ive got two frames, left navigation and right content. the content ist structured with anchors.
    in the jeditorpane everything works fine.
    now i want following functionality:
    1. click on the help-button in the swing-application.
    2. open the helpdialog and jump to the anchor.
    //ActionHelp.java*********************************************
      public void actionPerformed(ActionEvent e) {
             URL url = new URL(getClass().getClassLoader().getResource("de_help.html").toString()+"#uploadbereich");
           helpdialog.setVisible(true,url,g);
    //HelpDialog.java*********************************************
      public void setVisible(boolean t, java.net.URL url,Component co){
        this.setLocationRelativeTo(co);
        try{
          hyperlinkUpdate( new HyperlinkEvent(this, HyperlinkEvent.EventType.ACTIVATED, url));  
          //HTMLFrameHyperlinkEvent evt = new HTMLFrameHyperlinkEvent(this.htmlPane,HTMLFrameHyperlinkEvent.EventType.ACTIVATED,url,"#uploadbereich","Daten");
          //Element x = doc.getElement("LeafElement(frame) 3,4"); 
          //HTMLFrameHyperlinkEvent evt = new HTMLFrameHyperlinkEvent(this.htmlPane,HTMLFrameHyperlinkEvent.EventType.ACTIVATED, url,"#uploadbereich",x,"Daten");     
          //hyperlinkUpdate(evt);
      public void hyperlinkUpdate(HyperlinkEvent event){
        HyperlinkEvent.EventType typ = event.getEventType();
        if ( typ == HyperlinkEvent.EventType.ACTIVATED ){
          try{
            setTitle( "" + event.getURL());
            if (event instanceof HTMLFrameHyperlinkEvent) {
              HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent) event;
              ((HTMLDocument)htmlPane.getDocument()).processHTMLFrameHyperlinkEvent(evt);
            else{
                htmlPane.setPage( event.getURL() );
              }I am too stupid to create an correct HTMLFrameHyperlinkEvent. :(
    The correct Event, from the Click looks so:
    event:
    javax.swing.text.html.HTMLFrameHyperlinkEvent[source=javax.swing.JEditorPane[,0,0,668x456,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@1d9e5ad,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=false,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.text.html.HTMLEditorKit@6937f9,typeHandlers={text/html=javax.swing.text.html.HTMLEditorKit@6937f9}]]
    file:/D:/projekte/???/classes/de_text.html#uploadbereich
    LeafElement(frame) 3,4and my created looks so:
    event:
    javax.swing.text.html.HTMLFrameHyperlinkEvent[source=javax.swing.JEditorPane[,0,0,669x456,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@1d9e5ad,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=false,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.text.html.HTMLEditorKit@6937f9,typeHandlers={text/html=javax.swing.text.html.HTMLEditorKit@6937f9}]]
    file:/D:/projekte/PdmServer/classes/de_help.html#uploadbereich
    nullThe only differences between this two events is the source-element (event.getSourceElement()), i cant create a object that adresses "LeafElement(frame) 3,4".
    Are here anyone who can help me to find the correct element at the Document (Document.getRootElements()->...). I am an noobie at this java-document tree-structure, i cant find the entry "LeafElement..." in the object-tree.
    Do anybody knows how it can work without the element-object?
    best regards
    marcel

    Thanks for your suggestion stas.
    It helps me to find the problem. Ive got a wrong url. the HTMLFrameHyperlinkEvent must use the contentframe, not the whole html-frameset-page and then the anchor jumps perfectly without indicating a Element.
    for interests, this works:
    //ActionHelp.java
      public void actionPerformed(ActionEvent e) {
       try {
         URL url_help = new URL(getClass().getClassLoader().getResource("de_help.html").toString());
         URL url_text = new URL(getClass().getClassLoader().getResource("de_text.html").toString()+"#uploadbereich");    
         helpdialog.setVisible(true,url_help,g.lieferantenclient);
         client.helpdialog.showAnchor(url_text,"#uploadbereich");
       }catch(Exception ee) {
         ee.printStackTrace();
    //HelpDialog.java
      public void setVisible(boolean t, java.net.URL url_help,Component co){
        this.setLocationRelativeTo(co);
        try{
          hyperlinkUpdate( new HyperlinkEvent(this, HyperlinkEvent.EventType.ACTIVATED, url_help));
        catch ( Exception e ) { e.printStackTrace(); }
        this.setVisible(t);
        this.validate();
      public void showAnchor(URL url_text,String ref_text){
        HTMLFrameHyperlinkEvent evt = new HTMLFrameHyperlinkEvent(
            this.htmlPane,
            HTMLFrameHyperlinkEvent.EventType.ACTIVATED,
            url_text,
            ref_text,
            "Daten");
          hyperlinkUpdate(evt);      
    ...consider, the pane must show the whole html-page thirst. it seems that the pane/document must do some init-things. after this standard load you can jump to an anchor. both hyperlink-events in the same setVisible-Method doesnt work at the first "click".
    best regards,
    marcel

  • JEditorPane isn't generating HyperlinkEvents

    Well, at least that is the way it appears. I am working with NetBeans 3.6 with Tomcat 5, andJ2EE1.4.2_01.
    My Project involves a couple servlets and an applet. The first servlet loads a web page containing the applet. This applet contains a text field and a JEditorPane, with the latter on a JScrollPane. I am using a border layout.
    Everything displays fine. I have no problems with that. When I created this applet on my desktop, all worked well except that the applet would not display documents obtained using the https protocol (it allowed browsing of all my html files when I restricted myself to using the http protocol). I have yet to figure out why. The first time I recreated it on my notebook computer, everything worked fine. I could get and display documents using the https protocol and the JEditorPane would follow the hyperlinks I placed in the html files. I have no idea what is different between those two versions (desktop and notebook #1).
    Now, I have recreated the project a second time, cleaning it up some (mostly removing code that had been commented out and giving some of the data members of some of the classes more useful names), and now everything works except that my HyperlinkListener is not being called. I can't imagine what the "significant" difference is between the two notebook versions may be (I have both versions on my disk so it is easy to check, at least if I knew what to look for). I have made certain that the JEditorPane is NOT editable, and I have invoked addHyperlinkListener(new HyperActive()) on my JEditorPane. This call is, BTW, in function init() which is created by Netbeans to call initComponents() which it creates to create and initialize all the components on a form. init() is used to allow any initialization to be added by the programmer.
    Does anyone have any ideas regarding what mistake I have made?
    Thanks,
    Ted

    Hi. Thanks for this. I am not sure we have understood each other. I say this because I am not sure I understand what you mean by "standalone". If you mean what I think you mean, then that gets to the next question I was going to ask once this one is sorted out. That is, I assume I can modify my applet so that it will work as a standalone application that I could distribute to anyone I have writing html files for me, so they can ensure that their pages display well, and that simply by adding function main.
    It seems unlikely that the JVM is the culprit since on my notebook, there are two versions of the project, one which works (but needs a little cleanup and fixing of names) and one which is being troublesome.
    In each of my three cases, I have two servlets being served up by Tomcat 5. And I have one applet that is always only display in my web browser in response to a request being made to one of my servlets. In one version, it all works as intended, except the code needs to be cleaned up and some of the classes, the context and variables need to be renamed. That is the first version on the notebook.Invariably, NetBeans starts Tomcat if it isn't already running, and then it passes a request to the first servlet, by starting MS IE with the URL for the web page containing the applet and returns it. I can see all this happening watching the programs and various monitors I have running (such as the http monitor). This is all working as expected. On my desktop, with exactly this setup, everything works as long as I restrict myself to http. If I try https, everything gives the appearance of working, and in the http monitor I can see the https requests being made and the appropriate files being returned. But for some reason, the file is not displayed where exactly the same file is displayed if it is requested using the http protocol. On my notebook, in the second reconstruction, again it all seems to be OK except that JEditorPane is not generating the hyperlink requests. The first page is retrieved using https from within the initialization function, and properly displayed. And the cursor even changes to the hand with a pointing finger when it is over the hyperlink, but the hyperlink event is not generated and we don't get into my even handler.
    Is this clearer, or does it generate any more ideas as to what to look at and where?
    Thanks,
    Ted

  • Restrict unsigned jar in local java application

    is it possible to restrict permission or refuse to run java application when a certain class in jar is not signed or signed by invalid entity, e.g. signed by non verisign or etc?

    The Crystal Report Viewer looks good, but it seem that it's only available for Windows and Mac platforms. The reason why I am using Java is because the company I am working for has clients using both Windows and Solaris workstations.
    The reporting component I am investigating needs to be integrated with our current software solution.
    There are a few requirements that restrict this to an integrated solution:
    We will be managing cascading and custom dynamic prompts and feeding formatted strings from that to the report parameters
    Solution has to be cross platform, including Unix platforms
    Interface has to be restricted so that viewing, printing, exporting can be controlled and audited by us.
    An interface that I can catch hyperlink events from to trigger extra functionality in the parent program.
    Thanks for the suggestion, but are there any other thick client java options for viewing a generated report?

  • Remove navigation link in a component

    Hi,
    we would like to remove a navigation link within the Opportunity page, specifically the Products Assignment-Block (or Opportunity Item overview page). Here the product name is displayed as a hyperlink. Our requirement is to remove this hyperlink and do not allow this navigation.
    Could anybody provide the steps how to configure this link, i.e. how to remove it?
    Thanks,
    Erik

    Hi Erik,
    These are the steps
    Do F2 and find out the componet,view,context node and
    attribute of the field which becomes hyperlink once it is populated.
    After navigating to this attribute using BSP_WD_CMPWB,
    check for the GET_P method for that attribute.
    In this method, you can see a similar kind of code
      Hyperlink event name for this attribute
          WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
            rv_value = 'PRODUCT_CLICKED'.
    This helps in creating a hyper link.
    Redefine this method comment this code or make neccessary changes as required.
    Also, comment the event handler for it i.e.,
    EH_ONPRODUCT_CLICKED.
    Hope that works............!
    Reward if useful,
    Imran.

Maybe you are looking for

  • How do i get my purchases back onto my iTunes account?

    They were all deleted due to an issue with my iPod freezing. I took it in to the Apple store, and they told me EVERYTHING was deleted. Most of my music was purchased, including apps and such, so how do i get them back? It is a rip off if I am not abl

  • How to get values from afLiterator ?

    Hi All, I have a grid populated records using af:Iterator. Row are populated from the List model(say product list). The iterator component i binded in the bean. Now i have showing 5 records per page. total 3 pages are there. There is a boolean check

  • RFC sender and SOAP receiver data is not posting

    Dear Experts, we creating one scenario R3-PI-Third party(WSDL).so we are creating  RFC as Sender and SOAP as Receiver.in SXMB_MONI no error.Message monitoring also showing delivered and both payloads also showing.but in thirdparty system data is not

  • Specific problem with trackpad

    I have this specific problem with my trackpad, it doesnt work this 2 functions:  Swipe between pages and scroll direction: natural. all other functions are working. i don't know what to do .

  • Plannning EPMA Application deployment failing

    Hi All , I have made some changes to entity dimension in  planning EPMA application like removing old hierarchy and including new hierarchy But after that I found that the application is not getting deployed correctly Please let me know what does the