Heavy Tooltip Displaying Repeatedly when using Custom TooltipLocation

Check this one out:
If you display a tooltip so that it is both heavy weight and it is directly under the cursor location the tooltip will display over and over. It will display initially and then hide after a delay, then will display again after a delay. It will do this over and over unendingly.
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.*;
public class HeavyWeightToolTipBug extends JPanel
     public Point getToolTipLocation(MouseEvent event)
          Point p = event.getPoint();
          p.translate(-5, -5);
          return p;
     public static void main(String[] args)
          HeavyWeightToolTipBug panel = new HeavyWeightToolTipBug();
          panel.setToolTipText("A really really long string so that a medium weight popup window will be used for the tooltip instead of a light weight popup window");
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().setLayout(new BorderLayout());
          frame.getContentPane().add(panel);
          frame.setSize(400, 300);
          frame.setVisible(true);
}

The whole point of my translate was to put the heavyweight tooltip directly under my cursor. My real world example is that I have a table and I would like a tooltip to display the cell value text if the user mouses over it. But instead of displaying the tooltip below the curser (x axis) I'd like the tooltip to display right over the top of the cell: which is directly under my curser (z-axis)
This seems to work fine for me provided the ToolTipManager uses a lightweight tooltip window. It's only a problem is if my cell value is so long that the ToolTipManager is forced to use a heavyweight component.
I'm using jdk1.5 and if I set the tooltip to:
    panel.setToolTipText("A Short Tooltip");my example works correctly because the ToolTipManager uses a lightweight component. The ToolTipManager can use a lightweight tooltip window because the entire tooltip window can be displayed within the bounds of the JFrame.
So, one might ask, "why is your cell value so dang large". Well, my UI is ultimately displaying values from a database that I have no control over and in this case the field I'm displaying is a CLOB that has a very long peice of text in it.

Similar Messages

  • Interactive Report - search does not work when using custom authentication

    Apex 3.2.x
    I can authenticate fine with my custom authentication and all of my pages work okay except for one page that uses the Interactive Report feature. When I click 'Filter' then enter the column name, operation (contains, =, like, etc.) and the expression, then click the 'Apply' button, the page just re-displays and my filter information is missing?
    If I first login to Apex, select and run my application, the Interactive Report features work just fine. What's missing?

    More information:
    After login into my Apex workspace (development environment), when I display the Interactive Report and click debug I see this debug message:
    "using existing session report settings"
    When I login using my application's custom authentication and click debug I see this debug message:
    "creating session report settings as copy of public saved report"
    Based on this, it appears that my session info in not set correctly when using custom authentication... but I'm not sure what needs to be set.
    Edited by: user9108091 on Oct 22, 2010 6:44 AM

  • How can i set  "Createdby" attribute  When using Custom JheadStart Security

    Hello
    We do not use JASS for Authentication , please help us how can i set createtby attributes with jhs.username in application for any entity object?
    thanks

    See a similar question at History Attributes when using Custom Authentication Type

  • My iPod shuts off repeatedly when using the Nike running app. Have already tried the headphones solution that Apple has recommended. Can anyone help?

    My iPod shuts off repeatedly when using the Nike running app. Have already tried the headphones solution that Apple has recommended. Can anyone help?

    Using the 5th generation iPod. Purchased it a few months ago before the new one was launched. Yes the workout randomly ends when I am no where near the time or distance I have programmed in. I keep tried to restart the workout and the same thing keeps happening over and over again. I figured it may have been the headphones but I have even tried holding the headphone connection in place, and different headphones as well and it continues to happen.

  • Problems with JBO errors displaying when using custom insert VO methods

    Hi!
    I have a problem I hope I can explain :).
    I have a VO that has custom execute and insert methods implemented in application module.
      public void executeWithParamsMyViewG(String asID)
        // find the view
        MyViewImpl loMyViewImpl =
          getMyViewG();
        loMyViewImpl.setNamedWhereClauseParam("IDParm", asID);
        // execute the querry
        loMyViewImpl.executeQuery();
      public void insertRow(String asID)
        MyViewImpl loMyViewImpl =
          getMyViewG();
        // create new row
        Row loRow = loMyViewImpl.createRow();
        // set fields in new row
        loRow.setAttribute("ID", asID);
        loRow.setAttribute("MyAttribute", "A");
        loRow.setAttribute("MyAttribute2",
                           afContext.getProcessScope().get("MyParm"));
        // insert new row
        loMyViewImpl.insertRow(loRow);
      }I have custom error handler with
        public void reportException(DCBindingContainer bc, Exception ex) {
           //Force JboException's reported to the binding layer to avoid
           //printing out the JBO-XXXXX product prefix and code.
          disableAppendCodes(ex);
          super.reportException(bc, ex);
        private void disableAppendCodes(Exception ex) {
          if (ex instanceof JboException) {
            JboException jboEx = (JboException) ex;
           jboEx.setAppendCodes(false);
            Object[] detailExceptions = jboEx.getDetails();
            if ((detailExceptions != null) && (detailExceptions.length > 0)) {
              for (int z = 0, numEx = detailExceptions.length; z < numEx; z++) {
                disableAppendCodes((Exception) detailExceptions[z]);
        }I also have custom phase listener and page lifecycle but without any 'important' methods overridden.
    Than I have a jspx with af:processChoiceBar for navigation, Create button binded to insertRow method, commit and rollback buttons and form with input fields. One of them is required, but with validation on server side, not on client side (showRequired instead of required).
    My problem is this:
    If I add an empty row, leave all the fields blank and try to commit I get required field message, which is OK. But if I use af:processChoiceBar (previous page, next page, select any of the pages), the message is not displayed. The message is displayed after when I try to return to this page. If I debug the exception in reportException method has the code 27024 for DeferredRowValidationException, not the required attribute error which is displayed.
    Can anyone help me with this please, I've wasted a lot of time on this now.
    Regards!
    BB

    Hi,
    Does anyone know why this would not be working. It's really irritating!

  • JTable Renderer-Promblem when using custom renderer

    Hi. i've just started studying Swing component.
    So i'm about to ask for help to solve the problem during using custom TableCellRenderer.
    Here is my own Renderer which extends JLable and implements TableCellRenderer
    public Component getTableCellRendererComponent(JTable table, Object value,boolean isSelected,boolean hasFocus,int row,int column)
         if (isSelected) {
         setForeground(table.getSelectionForeground());
         super.setBackground(table.getSelectionBackground());
         else {
         setForeground(table.getForeground());
         setBackground(table.getBackground());
         JLabel right=new JLabel("LEFT");
         JLabel left=new JLabel("RIGHT");
         this.setLayout(new BorderLayout());
         this.add(left,BorderLayout.WEST);
         this.add(right,BorderLayout.EAST);
         return this;
    note: There are 3 JLabel components. Two components are added to the component will be returned.
    This code works fine.
    but whenever try to resize the column display using above renderer, The " Text " runs in resizing.(making traces)
    Please anybody try to run this code, show me some solution.
    thank you

    A renderer will have its getTableCellRendererComponent method called repeatedly, every time a cell is to be repainted, and its the renderer associated with that cell. Therefore, avoid doing things in this method that should only be done once, for example:
    JLabel right=new JLabel("LEFT");
    JLabel left=new JLabel("RIGHT");
    this.setLayout(new BorderLayout());
    this.add(left,BorderLayout.WEST);
    this.add(right,BorderLayout.EAST);Can you do that in the renderer's constructor?

  • REPOST:Timing does not show up when using custom templates

    all,
    When I create an unstructured template and use it in a report with show timing set to true, the timing does not show up.
    any tips

    Correcting my previous reply,
    Timing will NOT show if you are using custom template.
    null

  • I am stumped I do not understand why my roommates macbook pro when duel screened will display perfectly on my monitor while mine refuses to, but mine will display perfectly when using another monitor that is not mine. Please help me out.

    One day when using my duel display the second monitor decided it wouldn't display at full resolution in the middle of doing something i was confused. I use a mini display to hdmi then hdmi to the second monitor. I thought maybe the converter or cable died. I bought another another mini display to hdmi and tried another hdmi cord and the same issue. My roommate has macbook pro as well so i decided to see if it was the monitor, when i pluged the mini display converter into his and used the external monitor it displayed perfectly not below resolution. Doing this I knew it was not the monitor or the mini display to hdmi or the hdmi cable. I took it into the genuis bar assuming now that it was my grapics card or logic board. When the genuis went to duel screen it on a cinema display it displayed perfectly. So went home tried to duel screen it again and still not displaying at full resolution. That is where I am stuck, in summary:
    My screen used to display perfect resolution on a second monitor and suddenly did not.
    Tested two mini display to hdmi and hdmi cords both were fine.
    Tested to see if monitor was issue but displayed perfectly when i used roommates laptop.
    Went to genius bar and displayed perfectly on second monitor so it can display perfect resolution on apples monitors but will not do so anymore on my monitor, even though roommates macbook pro will display perfect resolution on my monitor.
    I am beyond confused.

    Apparently you have tried everything except - take the monitor in question to the Apple Store along with your computer.  If it works there, the mystery continues.

  • "Type mismatch" error in IE7/8 when using custom Actions Menu Image

    Hi all,
    in APEX 4.2: when using a custom image in the "Actions Menu Image" attribute in an interactive report, I get a "Type mismatch" error in IE7/8 when refreshing the report through PPR (filtering, sorting, paginating etc.). When I leave the "Actions Menu Image" field empty, everything works fine. The error doesn't seem to happen in IE9 (unless using compatibility mode), or in any non-IE browser.
    I've been able to reproduce the issue in an application on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=69347:1
    Some debugging seems to indicate that the following line in widget.interactiveReport.js is the culprit:
    lTemp.parentNode.replaceChild($x('apexir_WORKSHEET'), lTemp);Does anybody know if this is a known issue, or if there is some workaround?
    Thanks,
    Tobias

    Hi,
    Great solution Paul! It cost me a while before I found out the Action Menu Image was causing my interactive reports to stop refreshing in IE10 and not other browsers. Your solution works great, I've implemented it with a few minor adjustments:
    - Put the css in report template (for some reason it didn't work in our own application stylesheet)
    - replace  'url("/c/action_dropdown.gif")' with 'url("&APP_IMAGE_PREFIX./<path_to_image>")'
    - place one dynamic action on page 0: after refresh of '#apexir_DATA_PANEL' , set event scope to "Dynamic".
    - Let the Dynamic action also fire on page load.
    - To make sure the dynamic action only works for pages with an interactive report add condition of type 'Exists' with expression:
    select 1
    from   dual
    where  :APP_PAGE_ID in (select page_id
                                            from   apex_application_page_ir
                                            where  application_id = :APP_ID
    Best regards,
    Vincent Deelen

  • PO PDF errors when using custom RTF Template, but works with custom xsl

    Hi,
    I have done following set up steps for PO PDF
    Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'
    setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template.
    But with the RTF template the PO Output for communication completes with error. However when I use custom XSL-FO style sheet, it works.
    Can anyone help me how I can make my RTF work? When click on the preview of the template, it shows the PDF output though. Am I missing any other set up steps? Your help is greatly appreciated.
    Thanks,
    Sharmila

    I think the only way to have control over the html output is to enclose the tags or any information within a borderless table and align the text and table as necessary...
    Thanks,
    Bipuser

  • Build error when using custom error codes

    When I try to build my application using custom error codes I receive the following error:
    Error 1 occurred at Copy in AB_Engine_Copy_Error_Files.vi->AB_Application.lvclass:Copy_Error_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge.
    C:\Program Files\National Instruments\LabVIEW 8.5\user.lib\errors\BPMS-errors.txt
    This only occurs the first time I attempt to build my application. If I build again immediately after receiving the error, everything works fine. My custom error codes were created using the provided editor, and I have included the file in my project. I have also checked the "Copy error codes" box in the advanced build specification settings.

    Hi Donovan,
    The attached project is giving me the error previously discussed. Thanks for your help.
    Attachments:
    BuildError.zip ‏10 KB

  • When use custom authetication it shows some characters on screen after logo

    Dear All,
    I have developed a application and use custom authentication schema for that. It works fine on my local pc and then I have moved it to another pc (export and then import) it works fine on that as well.
    Now I have moved it to the production server. When authentication failed it shows error message and stay in log on page. But when I provide the correct user name and password, then it shows multiple occurance of login url in page body.
    Did anyone has any idea about this.
    When authenticate success I get below output.
    Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 Location: f?
    p=ETLUI:COM_LOGIN:2888953545161107 Location: f?p=ETLUI:COM_LOGIN:2888953545161107 * ETLUI means my application alias and COM_LOGIN is my login page alias. So basically it shows link to the login screen multiple time. At this time url is looks like below
    http://prodsrv:8080/apex/wwv_flow.accept Development and Production Apex Version: 4.0.2.00.07
    Development OS: Windows 2000
    Production OS : Linux
    Thanks in advance.

    Works ok after using Apex Listener.

  • Unknown namespace prefix Error - when using custom Aliases with RDF aliases

    I am getting unknown namespace prefix error when I use custome SEM_ALIAS with rdf SEM_ALIAS. It seems once you specify custom SEM_ALIAS, the default rdf alias is not recognized. Following are the details of queries
    I have a sem_Model "test" which has "event" as a class and "Merger" as a sub-class of event, with "acquiringorg" as a property having the domain "org". "Org" is also defined as a class with the literal attribute "hasname". I have added one instance of "merger" class with appropriate values for "acquiringorg" property. There is one instance or "Org" as well for reference in the instance above.
    the following query(return all objects having property "acquiringorg" and its .e. "hasName" attribute for the object) runs fine and returns appropriate resultset
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    However when I want to add another criteria i.e. show me events of type merger(?x rdf:type :Merger) , the query fails with the "unknown namespace prefix error" as above
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x rdf:type :Merger)(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    specifying "rdf" ALIAS explicitly also does not work
    select x event,z acquiringorg ,l acquireeorg from table(SEM_MATCH(
    '(?x rdf:type :Merger)(?x Evnt:AcquiringOrg ?y)(?k orgn:hasName ?l)',
    SEM_MODELS('test'),
    null,
    SEM_ALIASES(_SEM_ALIAS('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'),_
    SEM_ALIAS('Evnt','http://www.abc.com/Event/Merger/'),
    SEM_ALIAS('orgn','http://www.abc.com/Org/')),
    null));
    I am unable to figure out why default namespace i.e. rdf is returning this error
    Stuck at this point badly!!Any pointers would be useful!!

    Full error details are as below
    ORA-29532: Java call terminated by uncaught Java exception: oracle.spatial.rdf.server.ParseException: Unknown namespace prefix ''
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 153
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 842
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 235
    ORA-06512: at line 1
    29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
    resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HTML signatures distorted inside the Signatures and Stationery window preview/edit field, but display fine when used

    I created an HTML signature and imported it into Outlook 2010/2013 by placing the .htm file into my %APPDATA%\Microsoft\Signatures folder. The signature looks and works great, however the signature looks distorted / severely squished in width when attempting
    to view the signature in the Signatures and Stationery window within Outlook. What would be causing this? Is this a common issue when using .htm signatures?
    It isn't too big of an issue as the signatures do work as expected when in normal use, however some users would like to tweak theirs using Outlook's built in editor and are not currently able to.

    In my experience at least, that's a normal behaviour. The editor isn't fully WYSIWYG so if you do anything complicated in there it won't always give an accurate representation of what will eventually be output when you insert it into a message. I've seen
    the same thing with signatures copied from elsewhere, displaying fine in the email but not in the editor, so it's not restricted to imported .htm files.

  • MapViewer fails to display lines when use NavigationPanel

    I am using MapViewer version 10131-B061023 (i.e. 10.1.3), and am attempting to plot state secondary roads (lines) for the state of Montana. These lines display in MapBuilder, and also display in MapViewer when the first 'zoomed in' map is displayed. That is, I can see the roads for the part of the state I am zoomed into, and when I pan around the state the roads also display, but when I use the NavigationPanel to zoom out, the roads disappear. Has anyone had this problem? Any suggestions on how to fix this would be greatly appreciated. Thanks in advance.

    I failed to mention that the secondary routes were in a foi rather than a base map. When I added them to the base map and removed the foi they appeared when I zoomed out. Am I missing some basic difference between the base map and a foi?

Maybe you are looking for

  • MS Project Pro for office 35 integration

    We currently have 6 office 365 for mid-size business accounts active and are also considering to purchase the MS projects pro for 365. I have some questions on this subject. We would like to have 1 or 2 main editors who can create the necessary proje

  • Subtitle Bugs and Suggestions

    I have run into a couple of bugs with Encore 2.0's subtitle handling. At least one (subtitles not refreshing after editing, necessitating duplication to refresh) has been noted by Encore QE, so I look forward to a patch for that one :) Two others mer

  • Control chart title in chinese (QE51N)

    Hello, In the QE51N transaction, there is a control chart. The english title is "Acceptance chart for x-bar / samples". In the V_QPSH view there is the translation in chinese: "承兑图,用于 x 条 / 样本". But the chinese title doesn't appear correctly in the c

  • Can I create my own logical unit of work (LUW)?

    Good day, everyone! This is an off-shoot to a Why does the NOCOMMIT parameter not work in HR_INFOTYPE_OPERATION? yesterday in this forum. It appears that the FM I'm calling is going to do a commit, no matter what.  The only thing I can tell is that t

  • Sync ical server delegates to iphone

    I've seen many postings about syncing google delegate calendars in Ical to an Iphone, but my situation is with Snow Leopard Server Ical server.  We have delegate calendars setup on our server and they display properly on the desktop clients in ICal,