Drop mouse cursor disappears after setting custom cell renderer in table.

Hi,
I've a JList and a JTable, drag&drop works ok between them. Now, if I change TableCellRenderer to custom cell renderer, say a descendent of JComponent that implements TableCellRenderer, it doesn't display drag cursor when it's on top of a cell, and on 1 pixel grid lines it displays right again. can someone help me to fix this issue.
Regards, thanks in advance,
Ozgur

it doesn't display drag cursor when it's on top of a cell, and on 1 pixel grid linesThe following renderer works ok for me, although I must admit there is a slight "flicker" when you move over the grid line. Not sure why that happens.
     class MultiLabelRenderer implements TableCellRenderer
          private JPanel panel;
          private JLabel red;
          private JLabel blue;
          public MultiLabelRenderer()
               panel = new JPanel(new BorderLayout());
               red = new JLabel();
               red.setForeground(Color.RED);
               blue = new JLabel();
               blue.setForeground(Color.BLUE);
          public Component getTableCellRendererComponent(
               JTable table, Object value, boolean isSelected,
               boolean hasFocus, final int row, final int column)
               String text = value.toString();
               red.setText( text.substring(0,1) );
               blue.setText( text.substring(1) );
               panel.removeAll();
               int columnWidth = table.getColumnModel().getColumn(column).getWidth();
               int redWidth = red.getPreferredSize().width;
               if (redWidth > columnWidth)
                    panel.add(red);
               else
                    panel.add(red, BorderLayout.WEST);
                    panel.add(blue);
               if (isSelected)
                    panel.setBackground( table.getSelectionBackground() );
               else
                    panel.setBackground( table.getBackground() );
               return panel;
     }

Similar Messages

  • Mouse cursor disappears after captions timing warning

    This happens when I try in caption to change a time that conflicts with the following box. I punch in the illegal time by mistake, I get the warning pop up and then the mouse cursor disappears. At that point, I have to restart the software to get the cursor back back.

    Hello,
    I've tried to reproduce this problem -- but so far oi have not been able to reproduce the mouse-pointer vanishing. Can you break this down into some steps?
    Like this:
    1. Launch application
    2. Via File-> New-> Captions make a new Closed Caption accepting all defaults
    3. After the caption is opened from the Project area, make a few caption blocks/ slots via a the "+" button
    4. Put text in each block
    5. in the second caption, click on the "In:" time and type 000000000 and hit RETURN key
    6. Click <OK> in the caption overlap warning
    7. ...
    8. ..
    I'll try again when I see how you are getting the problem.
    Take care!

  • Mouse cursor disappears after logging out

    I have set up 3 identical x86 systems, which means they all have the same mouse, same keyboard, same motherboard, same CPU, etc. The first 2 systems work fine with Solaris 10. The last system has this problem:
    After I installed Solaris, the system boots up. I would log in as root. The mouse works fine. The moment I log out, I see the log in window. My mouse cursor is gone. Only the keyboard works.
    So I re-installed Solaris 10 again. Same problem.
    I went out and bought the same motherboard. Re-installed Solaris 10 again. Same problem.
    I can't argue that maybe the mouse is not compatible with Solaris because that same mouse works fine with the other 2 systems. Also, I tried other mice, and I have the same problem.
    I can't say that there's something wrong with my Solaris installation CD's because I've used those same CD's to install on the other 2 systems, and there's no problem.
    Anyone has a suggestion what could be causing this, and how to fix it? Thanks.

    Hello,
    I've tried to reproduce this problem -- but so far oi have not been able to reproduce the mouse-pointer vanishing. Can you break this down into some steps?
    Like this:
    1. Launch application
    2. Via File-> New-> Captions make a new Closed Caption accepting all defaults
    3. After the caption is opened from the Project area, make a few caption blocks/ slots via a the "+" button
    4. Put text in each block
    5. in the second caption, click on the "In:" time and type 000000000 and hit RETURN key
    6. Click <OK> in the caption overlap warning
    7. ...
    8. ..
    I'll try again when I see how you are getting the problem.
    Take care!

  • My mouse cursor disappears behind the picture I'm working with!

    While I was working on a picture in Photoshop, my mouse cursor disappeared. No crosshairs (I've already tried turning the caps lock on and off). It was just gone. I moved my mouse around and it appears whenever I choose a new tool or when I'm working with the layers or when I use something from the drop down bar, the mouse is there when I don't have anything open in Photoshop--just when I have the program open--but whenever I start working on a picture or a blank canvas it disappears, like it's going underneath the canvas (I found I can still draw and erase on the canvas, I just can't tell where since the cursor is gone). This is frustrating because I use Photoshop to create my digital artwork and my drawing pad is small, so I need to know where my cursor is in order to draw accurately.
    Things I've done to resolve the problem thus far: I've downloaded the current Adobe update, I've tried adjusting my advanced properties settings on my computer, I've tried readjusting my cursor settings in my preferences, I've tried resetting my presets--thinking I might have miss clicked a combination of keys to make it happen--I've also tried closing out and going back into Photoshop, even turned my computer off, let it sit, and then turned it back on. But my mouse cursor continues to disappear underneath the canvas.
    I plan on uninstalling and then reinstalling my Photoshop software--I hope that works. Otherwise, if that doesn't, does anyone know how to fix this issue?

    Okay, so I figured this out how to resolve this issue a few days after posting my question. If you have the Nezumi Pro plugin for your Photoshop there is an option in the Nezumi settings to hide your cursor which can be easily activated by simply miss clicking F6. Once I figured this out and changed my cursor settings back to normal, my mouse reappeared.

  • Mouse cursor disappearing

    I am using Apple Wireless Mighty Mouse and when I am browsing around on the internet my cursor seems to disappear occasionally if i move it into the toolbars... (back, forward, stop, address etc..) i can still click on things and stuff but i can't see the cursor?
    Any ideas?

    Yes I understand, It is almost as if the pointer
    slips under the buttons on the left of the toolbar,
    where the back & forward buttons are, for me it is
    has also been on the page as I approach the toolbar.
    I have no doubt it is the same sort of thing, as a
    matter of fact I had it happen yesterday on an AOL
    page, which I just tested on W3C....
    I encountered precisely this "arrow cursor disappears" or "mouse cursor disappears" in Safari uptodate on MacBook 2GHz w 1GB RAM. But I observed it on only a single page of a large site (www.philly.com).
    Thus I assume it is the coding of that page and Safari's picky rendering of W3C standards... and a W3C Validator check of that page's URL produced hundreds of errors in its coding, which I forwarded to the offending site's webmaster.
    Failed validation, 118
    Errors, clearly validated poorly using the beta v. of W3C.
    Mark up Validator.
    When you run into the problem check the site.
    The regular W3C
    Markup Validation Service gave this
    ->:Result: Failed validation,
    57 errors.
    I noticed that I didn't have the disappearing curser
    tonight when I visited the same AOL page in
    Del.ici.cous, using Safari Webkit
    I also just Installed "Security Update 2007-004, via
    SwUpdter not sure if that made any difference, which
    is recommended.
    Eme mentioned having just installed some software updates but didn't say what happened afterwards. In my case it only began to appear AFTER I installed "Security Update 2007-005 (Universal)" (1.1) and "Security Update (QuickTime 7.1.6)" (1.0).
    MacBk; Power Mac G4 1.25GHz   Mac OS X (10.4.9)   Palm TX + Missing Sync

  • My Mouse Cursor Disappears coming out of standby and screensave​r!!

    I have a TX1000z, with a fresh install of Windows Vista Home Premium 64.  All drivers are current, including the video, networking, mouse, etc.  I am using the xb3000 port replicator with the logitech MX Revolution mouse and a bluetooth wireless keyboard.
    My mouse cursor disappears from the screen, sometimes both the laptop and the monitor (a Dell 22"), sometimes just one or the other.  I can still use the buttons and see different things highlight, but no mouse cursor.  It is not related to Windows Media Center as I have not run that on my laptop yet.  I can reboot and everything is fine, but then it will just disappear again and I cannot keep rebooting!  I have seen this problem posted all over the web, usually in relation to Windows Media Center and the "solution" is always the same...Disable Pointer Trails and "hide cursor while typing."  Neither of these has worked for me.  In fact, when I went in to disable trails, they were already disabled.  Actually, when I clicked on Enable Pointer Trails, the mouse becomes visible.  The mouse is then choppy (even when the trail is very short) and disappears again if I disable pointer trails.
    Here is a link to another post with a very similar problem, but the resolution was not posted (though a suggestion was):
    http://forums.logitech.com/logitech/board/message?​board.id=software_mice&message.id=12940#M12940
    HELP!!

    Still an issue. No fix found for me either.
    Windows Vista 64 sp3. Latest NVidia Video drivers. External Logitech Trackball Marble Wireless. Trails disabled, Hide while typing Disabled.
    Happens when coming out of sleep, screensaver or hibernate. Usually on the primary screen only (dual display). Sometimes on all.

  • Mouse cursor disappears

    sup guys
    whenever i connect my PB took an external monitor and bluetooth mouse, then I remove everything to use the PB portably(?, haha, when i'm on the move) the mouse cursor disappears. trackpad works fine, it brings up the dock, magnifies, the whole nine, just the black arrow is gone. last time i think it took like 30 mins to come back. normally i just restart, and its brand new again, anyone have any idea why?
    PB G4 12/1.33GHZ   Mac OS X (10.3.9)   768 MB RAM

    I think it's a bug with OS X 10.3.9.
    I used to suffer from something similar (cursor would become invisible when waking from sleep with external keyboard and monitor), until I upgraded to 10.4. I haven't had any trouble since.

  • Mouse cursor disappear using photoshop cs5.5

    mouse cursor disappear using photoshop cs5.5 ( IMAC MID 2010 )

    Before proceeding further, it is to be highlighted that the version being referred to is Photoshop CS5 Extended which is actually Photoshop Version 12.1 and is a part of Adobe Master Collection CS5.5. A screenshot of the version information is attached below for information.
    Hence, I dont understand the concern expressed by many about the lowest version eligible for scripting being available in the product.
    My version is in effect 12.1 and not 7 or 8.
    Accordingly someone may advise on what script to use for inserting the EXIF data onto the image. I also want that the positioning of the text is predetermined and same for a batch of images required to be processed. I dont want to fix the position of text for each individual image.

  • Mouse cursor disappears sometimes on Firefox for Mac

    Sometimes, only when Firefox is open, the mouse cursor disappears. I can still click, but the cursor is invisible.

    Does the mouse pointer only disappear when the pointer is in a Firefox window (user interface or browser part or both) or is it gone outside Firefox as well?

  • Why mouse arrow disappears after I upgraded to osx Mavericks

    why mouse arrow disappears after I upgraded to osx Mavericks-==

    After I upgraded to Mavericks, Quicktime has had to convert MPEG-4 videos to .mov.... Why? Is there a way to stop that or to change the settings?
    Your question requires more information. What does MPEG-4 mean to you? What file container and which compression formats are you referring to here? Is the MPEG-4 content "standard" or proprietary. Basically, depending on the file container and the specific content, QT X v10.3 may initiate a conversion ever where the individual data tracks are fully QT compatible. Proprietary compression formats will definitely do this. In some cases, the audio or video in one source container may simply be passed through to the MOV file while in another source container, QT X v10.3 forces a conversion of that same data track. In short, there are too many variables at this point to properly answer your question or attempt to duplicate your workflow.

  • Event Handling in JTable Custom Cell Renderer

    I have a JLabel as a custom cell Renderer for a column. I want to handle mouse click event for the JLabel rendered in the cell.
    I tried adding the listener for the label in the custom cell renderer but it is not working. Any ideas how to handle this problem??
    Thanks
    S.Anand

    If you want to handle the selection of a tree node
    1) write a class like:
    public class TreePaneListener implements TreeSelectionListener {
    // TREE SELECTION LISTENER
    public void valueChanged(TreeSelectionEvent e) {
    JTree tree = (JTree)e.getSource();
    DefaultMutableTreeNode node = null;
    int count = 0;
    boolean doSomething = false;
    if(tree.getSelectionCount() > 1) {
         TreePath[] selection = tree.getSelectionPaths();
         int[] temp = new int[selection.length];
         for(int i =0; i < selection.length; i++) {
    // Check each node for selection
         node = (DefaultMutableTreeNode)selection.getLastPathComponent();
         if(node.getLevel()==2) {
    // Change this code to take the action desired
         doSomething = true;
    2) After creating the tree register the listener
    TreePaneListener handler = new TreePaneListener();
    tree.addTreeSelectionListener(handler);

  • Inconsistent behavior with Custom Cell Renderer

    I have two questions:
    Questions # 1.
    I have created a custom cell renderer for my JTable that changes color if the text property changes and the text contains the letter 'S'. Like
    so:
    class SchedRenderer extends DefaultTableCellRenderer{
    public SchedRenderer(){
    super();
    final Color c = scSelfCont.panelbg;
    this.setForeground(c);
    this.addPropertyChangeListener("text",new PropertyChangeListener(){
    public void propertyChange(PropertyChangeEvent e){
         boolean foundS=false;
         String text=e.getNewValue().toString();
         for(int i=0;i<text.length();i++)
         if(text.charAt(i)=='S'){
         foundS=true;
         break;
         if(foundS){
         SchedRenderer.this.setBackground(Color.red);
         SchedRenderer.this.setForeground(Color.red);
         else{
         SchedRenderer.this.setBackground(c);
         SchedRenderer.this.setForeground(c);
    99% of the time it works just fine. But occasionally the cell will revert back to its original color, and then back to the correct color after clicking somewhere entirely different. I set some breakpoints in the property change handler and it gets called quite frquently even if no change has been made. At first I thought this was a JDK bug, but I am now convinced that there simply must be a better way to do this, any ideas?
    Question # 2:
    Is there a simple way to change the color of an entire row without selecting it? Currently I am using Custom Cell Renderers to change
    colors of cells, but it seems like such an obtuse method. Is there a better way?
    Thanks in advance.
    Adrian Calvin

    I have two questions:
    Questions # 1.
    I have created a custom cell renderer for my JTable that changes color if the text property changes and the text contains the letter 'S'. Like
    so:
    class SchedRenderer extends DefaultTableCellRenderer{
      public SchedRenderer(){
        super();
        final Color c = scSelfCont.panelbg;
        this.setForeground(c);
        this.addPropertyChangeListener("text",new PropertyChangeListener(){
           public void propertyChange(PropertyChangeEvent e){
         boolean foundS=false;
         String text=e.getNewValue().toString();
         for(int i=0;i<text.length();i++)
           if(text.charAt(i)=='S'){
             foundS=true;
             break;
         if(foundS){
           SchedRenderer.this.setBackground(Color.red);
           SchedRenderer.this.setForeground(Color.red);
         else{
           SchedRenderer.this.setBackground(c);
             SchedRenderer.this.setForeground(c);
    [\code]
    99% of the time it works just fine.  But occasionally the cell will revert back to its original color, and then back to the correct color after clicking somewhere entirely different.  I set some breakpoints in the property change handler and it gets called quite frquently even if no change has been made.  At first I thought this was a JDK bug, but I am now convinced that there simply must be a better way to do this, any ideas? 
    Question # 2:
    Is there a simple way to change the color of an entire row without selecting it?  Currently I am using Custom Cell Renderers to change
    colors of cells, but it seems like such an obtuse method.  Is there a better way?
    Thanks in advance.
    Adrian Calvin

  • Custom Cell Renderer for JList

    I'm getting some strange behaviour from my custom cell renderer.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class TestRenderer implements ListCellRenderer {
      private JPanel jpCell = new JPanel();
      public Component getListCellRendererComponent
          (JList list, Object value, int index, boolean isSelected,
           boolean cellHasFocus) {
        jpCell.add(new JLabel("Render"));
        return jpCell;
    import javax.swing.*;
    import java.awt.*;
    public class TestPanel extends JFrame {
         public TestPanel() {
              JList jlst = new JList(new String[]{"Value", "Value2", "Value3"});
              jlst.setCellRenderer(new TestRenderer());
              JPanel panel = new JPanel();
              panel.add(jlst);
              add(panel);
         public static void main(String[] args) {
              TestPanel frame = new TestPanel();
              frame.setSize(300, 300);
              frame.setLocationRelativeTo(null);
              frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
              frame.setVisible(true);
    }As you will see the renderer displays the string several times in each cell depending on which layout manager I use. However, if I replace the JPanel with a JLabel and set the String as text on the label the String is only printed once per cell. I can't see to find the reason for this.
    Edited by: 811488 on 18-Nov-2010 09:44
    Edited by: 811488 on 18-Nov-2010 09:45
    Edited by: 811488 on 18-Nov-2010 09:45

    So getListCellRendererComponent returns a component whose paintComponent method is called with the Graphics object of the JList Yes, except that the paint(...) method is called. There is a difference. paintComponent() only paints the component. In the case of a JPanel you would get a boring gray colored component. paint() will paint the component and its children and the Border of the component as well. So you get a much more exiting component.
    Read the section from the Swng tutorial on [url http://download.oracle.com/javase/tutorial/uiswing/painting/index.html]Custom Painting for more information.
    So the state of the cell is not the state of the cell Renderer Component meaning the image rendered onto the cell only reflects the state of the Cell Renderer Component at the time the cell was rendered.Yes which is why this method should be efficient because repainting is consistently being done for all the cells. For example every time row selection changes multiple rows need to be repainted. Think of this same concept when you use a JTable which also contains multiple columns for each row.
    That is why you should not be adding/removing components in the rendering code.
    It makes sense except that if this was the case the first version of the Render that I posted should have been rendered first with one "Render" then two then three, shouldn't it?Yes, except that you can't control when or how often the rendering is done. Add the following to the renderer:
    System.out.println(index + " : " + jpCell.getComponentCount());You will see that rendering is done multiple times. The JList tries to determine its preferred width. To do this it loops through all the items in the list and invokes the renderer to get the width of the largest renderer. Well the largest width is the last renderer because 3 labels have been added to the panel. So that width becomes the preferred width of the list. Then the GUI is displayed and the list is painted. Every time the renderer is called an new label is added, but after the 3rd label there is no room to paint the label so it is truncated.
    Change your code to the following:
    //add(panel);
    add(jlst);Now change the width of the frame to see what happens.
    Given all the help you have received, I expect to see many "helpfull answers" selected as well as a "correct answer" (if you want help in the future that is).

  • Row Selection problem in custom cell renderer

    Hi,
    I have created a custom cell renderer to set color in my table based on some value and the screen also shows colors when i set this cell renderer.
    But, I am not able to see the row selection ie. with blue background when I select any row in the table is nor appearing. Can you tell me how to solve this problem.
    Regards,
    R.Vishnu Varadhan.

    Check out this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=507001]thread for a similiar example.

  • Custom Cell Renderer / Video garbage on "refresh"

    I have created a custom Cell Renderer for my JTable. When the application in which this JTable is displayed, is moved into the background and then brought back "front", The application does not redraw itself completely.
    I am able to see the information contained in the JTable but none of the surrounding components. When I do a mouse click on any of the background of the surrounding panel, nothing happens.
    In order to get the entire Panel/View/all visible components to refresh themselves, I have to click on aother component (example would be switching to a different panel of the tabbed pane.)
    This only happens when I have a JTable with this particular Renderer showing. Any other panel or JTable not using this Renderer refreshes completely.
    Here is my Cell Renderer most of which I borrowed extensively from info posted in these forums:
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.io.*;
    * This is a much lighter version of the multiline renderer.  It does need to have newline
    * characters at the points where the next line should occur.
    public class CTAuditTableCellRenderer extends JList implements TableCellRenderer {
        public CTAuditTableCellRenderer() {
            setOpaque(true);
            ListCellRenderer renderer = getCellRenderer();
            ((JLabel)renderer).setHorizontalAlignment(JLabel.CENTER);
            setCellRenderer(renderer);
        *   getTableCellRendererComponent() is the only method that must be over-ridden.
        *   @param table the JTable holding cell we wish to render
        *   @param value the object which we wish to put into the cell
        *   @param isSelected boolean to allow selected cell to appear as such
        *   @param hasFocus boolean to alert as to the cell having focus
        *   @param row row of the JTable in which cell resides
        *   @param column column of the JTable in which the cell resides.
        *   @return Component the image of the value object.  Not a true object but an
        *   image of the object.
        public Component getTableCellRendererComponent(JTable table, Object value,
                                    boolean isSelected, boolean hasFocus, int row, int column) {
            if (isSelected) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            setFont(table.getFont());
            if (hasFocus) {
                setBorder( UIManager.getBorder("Table.focusCellHighlightBorder") );
                if (table.isCellEditable(row, column)) {
                    setForeground( UIManager.getColor("Table.focusCellForeground") );
                    setBackground( UIManager.getColor("Table.focusCellBackground") );
            } else {
                setBorder(new EmptyBorder(1, 2, 1, 2));
            String str = (value == null) ? "" : value.toString();
            BufferedReader br = new BufferedReader(new StringReader(str));
            String line;
            Vector v = new Vector();
            try {
                while ((line = br.readLine()) != null) {
                    v.addElement(line);
            } catch (IOException ex) { ex.printStackTrace(); }
            setListData(v);
            if(v.size() > 1){
                table.setRowHeight(row, (table.getRowHeight()+ 3)* v.size());
            return this;
    }Thank you in advance for your constructive, insightful, and applicable replies.
    Jerry

    Here is an entire example that shows the situation of the Frame (in this case) not updating/refreshing all of it's components when regaining focus.
    To simulate the problem, simply move "something"/another window over the sample frame and then move it off. In my case the scrollbar and the headers do not reappear until I have selected a row and scrolled the table.
    Here is the example code:
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MultiLineCellExample extends JFrame {
      MultiLineCellExample() {
        super( "Multi-Line Cell Example" );
        DefaultTableModel dm = new DefaultTableModel() {
          public Class getColumnClass(int columnIndex) {
            return String.class;
        dm.setDataVector(new Object[][]{{"aa aa aa aa aa\naa aa aa aa aa\naa aa aa aa aa","b","c"},
                                        {"A","B","C\nC"},{"x","y","z"}},
                         new Object[]{"1","2","3"});
        JTable table = new JTable( dm );
        table.setDefaultRenderer(String.class, new MultiLineCellRenderer());
        JScrollPane scroll = new JScrollPane( table );
        getContentPane().add( scroll );
        setSize( 400, 130 );
        setVisible(true);
      public static void main(String[] args) {
        MultiLineCellExample frame = new MultiLineCellExample();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
    }And here is the Renderer code:
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.io.*;
    public class MultiLineCellRenderer extends JList implements TableCellRenderer {
        public MultiLineCellRenderer() {
            setOpaque(true);
            ListCellRenderer renderer = getCellRenderer();
            ((JLabel)renderer).setHorizontalAlignment(JLabel.CENTER);
            setCellRenderer(renderer);
        public Component getTableCellRendererComponent(JTable table, Object value,
                                    boolean isSelected, boolean hasFocus, int row, int column) {
            if (isSelected) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            setFont(table.getFont());
            if (hasFocus) {
                setBorder( UIManager.getBorder("Table.focusCellHighlightBorder") );
                if (table.isCellEditable(row, column)) {
                    setForeground( UIManager.getColor("Table.focusCellForeground") );
                    setBackground( UIManager.getColor("Table.focusCellBackground") );
            } else {
                setBorder(new EmptyBorder(0, 0, 0, 0));
            String str = (value == null) ? "" : value.toString();
            BufferedReader br = new BufferedReader(new StringReader(str));
            String line;
            Vector v = new Vector();
            try {
                while ((line = br.readLine()) != null) {
                    v.addElement(line);
            } catch (IOException ex) { ex.printStackTrace(); }
            setListData(v);
            if(v.size() > 1){
                table.setRowHeight(row, (table.getRowHeight()+2)* v.size());
            return this;
    }Please, this is a very annoying problem and I would appreciate help in solving.
    Jerry

Maybe you are looking for