JSplitPane divider does not change cursor in JDialog

Hello,
I am working with a JSplitPane added to a JDialog and when
I try to move the divider the mouse cursor does not change
to the resize cursor. If I add the JSplitPane to a JFrame it works
ok. Is this a bug???
Try the following code:
JDialog d = new JDialog();
d.add(new JSplitPane());
d.setSize(640,480);
d.setVisible(true);
Thanks for any help!

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Testing
  JDialog d = new JDialog();
  public Testing()
    JSplitPane sp = new JSplitPane();
    d.add(sp);
    sp.setUI(new MyUI());
    d.setSize(640,480);
    d.setVisible(true);
  class MyUI extends javax.swing.plaf.metal.MetalSplitPaneUI
    public javax.swing.plaf.basic.BasicSplitPaneDivider createDefaultDivider()
      javax.swing.plaf.basic.BasicSplitPaneDivider divider = super.createDefaultDivider();
      divider.addMouseListener(new MouseAdapter(){
        public void mouseEntered(MouseEvent me){
          d.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
        public void mouseExited(MouseEvent me){
          d.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
      return divider;
  public static void main(String[] args){new Testing();}
}Message was edited by:
Michael_Dunn
[EDIT]
will also need to add Cursor code for mouseDragged()

Similar Messages

  • Cursor does not change when hovering over pop-up window link

    I created a text link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon.
    I don't know a lot of javascript, but can figure it out if it's just adding some code.This was done in CS3. Any help would be appreciated! Here's the code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    Thanks in advance.
    Todd

    A link would be nice but I suspect that you are not gettign the finger (you knwo what I mean) when you roll over the link because your href is  not set to anything.
    <a href="" onclick=MM_openBrWindow('images/image.jpg','largeDisplay','scrollbars=yes,resizable=yes,width=100,height=120')
    Set your href to "#" or "javascript:;" - the latter is preferred.

  • Tool cursor does not change or does not show up

    If you change tools in Photoshop but the cursor does not change (or disappears entirely), this indicates a bug in your video card driver. To fix it, you need to update your video card driver.
    Sometimes you can fix it temporarily by turning down the hardware or driver acceleration in the properties panel for the video card.

    Chris Cox 11/23/02 4:59pm

  • Cursor does not change with tool selection

    Has anybody experienced this?  My cursor suddenly does not change with the selection of tools when working on photos.  Once I roll over the picture the arrow is lost and becomes a strange 3 small things, so can't do any work accurately.  Still using PS 7 in Win 7.  This was not a problem previously.  Already uninstalled and reinstalled and problem is still there.  I have searched for where this can be fixed.  So far no luck.  Any suggestions?

    First answer, PS 7, not Elements.  Second answer, BIG THANKS, the dpi change corrected the problem. 
    It was an odd issue as PS was working fine for years and then suddenly the problem occured, even though I had not changed the dpi recently.
    A true glitch.  Thanks again for the fix.  Working fine again.

  • Cursor does not change during the editing of clips

    Hi. I am new to iMovie and am looking for some help. I have imported my clips, put them in my timeline and I want to shorten the clips. According to the movie that is on the Apple web site, when moving my cursor over the line separating my clips, my cursor is to 'change' allowing me to shorten the clip. Well, my cursor does not change. Is there a setting that needs to be corrected. Thanks for any help that can be offered.

    Hi konrad - the View Menu DOES have a 'Show Clip Volume Levels" IF you are using iMovie HD!
    But according to your Profile you have iMovie 4. Volume control in that version is at the bottom beneath the Timeline Audio tracks.
    Hope this helps clear up your confusion.
    Better to use the iMovie 4 forum in your case!:-)

  • Cursor does not change for pop-up window

    I created a link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon.
    I don't know a lot of javascript, but can figure it out if it's just adding some code. Any help would be appreciated! Here's the code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    Thanks in advance.
    Todd

    Hi Todd,
    i got the same problem.(cursor not change for pop-up windows) and because i m not an expert in internal html code i did try several solutions to fix it.
    The easiest (but also even longer if u need to do severals) is to create a button (withs 2 overflight changing pics) with "inserer", "image survolée"
    the "image survolée" can be linked to a pop-up window with the correct effect.  To do so highlight the "expected new link to" and on right side task bar ad a "comportement" named "ouvrir la fenetre du navigateur" and optionally choose the size and windows available function of the pop-up. It works even if u need to proceed first with an overflight changing button.
    The result is longer to obtain and not absolutely perfect. So I guess it s only an help solution for a single mateer. i would be glad to get another solution with a text link rather than using the overflight button system. Technically it should be better, more efficient and faster to proceed with applying an html code that really makes the text appearing as a classic link to a new windows whatever pop up or full size window. Please let me know if u get further answer to fix this problem.
    Many thx and excuse my technical english translation about DreamCs4

  • Cursor does not change to a circle when using eraser

    Cursor does not change to a circle when using the eraser.
    I'm sure it must be a tick box somewhere.
    Its always been ok previously.

    I had this same problem and was searching for answers. I also prefer using a circle instead of crosshairs. I hope you've figured it out by now, but, if you haven't, here is the answer (I am using Elements 9, but, it should work for other versions I think):
    1. Open up Elements Editor, Click on Edit, Click on Preferences, Click on Display & Cursors.
    2. Under Painting Cursors, select Full Size Brush Tip
    3. (optional) - if you want crosshairs within your circle, then also select Show Crosshair in Brush Tip.
    4. Click ok.
    Now use the brush, and it should have a circle to use.
    P.S. Sometimes if you have your Caps Lock key on, that removes the circle as well.

  • Cursor does not change over links in flash since the upgrade to firefox4

    Pointer does not change to a hand when hovering over a link in flash using the firefox4 update.

    Works fine for me in version 1.4.2.
    Read this link on [url http://www.physci.org/codes/sscce.jsp]Creating a Short Demo Program, if you need further help.

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • Tables are deleted but database size does not change in sql server 2008r2

    Hi All,
    20GB Tables are deleted in my database but database size does not change and disk size showing same size.

    Hi ,
    I have ran the Disk usage by Top Tables report and Identified couple of tables with unwanted data for last 5 years. I have deleted the data for the first 3 years and then ran the Disk usage by Top Tables report again. When I compared the report before
    and after the data deletion, I have noticed certain facts which is not matching with what I know or learned from experts like you. The following are the points where I am looking for clarification:
    1.Reserved (KB) has been reduced. I was expecting the data Reserved (KB) will remain the same after the data deletion. 
    2. The Data(KB) and Indexes(KB) fields have been reduced as expected. The Unused(KB) field have been increased as expected.
    I was expecting the total of Data(KB) and Indexes(KB) field space gained will be equal to the Unused(KB) field gained after deleting the data. But that is not the case. When I deducted(subtracted) the difference in  the Reserved(KB)(Difference before
    and after data deletion) field from the Total of space gained from the data deletion is equal to the Unused(KB) gained field value.
    I am not a SQL expert and not questioning but trying to understand whether we really gain space by deleting data from the tables. Also keen to get the concepts right, but my testing by deleting some records confused me.
    Looking ahead to all your expert advice.
    Thanks,
    Vennayat

  • In Adobe Acrobat X Standard, our user used to be able to resize drawings to 8.5 x 10, it stopped working yesterday. It allows her to do this without an error but the size does not change?

    In Adobe Acrobat X Standard, our user used to be able to resize drawings to 8.5 x 10, it stopped working yesterday. It allows her to do this without an error but the size does not change?

    Try unmounting the volume on your iMac using Disk Utility. Then mount it again. You may need to reboot the laptop or relaunch its Finder process (using the Force Quit window) after remounting the drive on your iMac. Remember that no process may be accessing any files on the drive you plan to unmount, or the unmount will fail. Unmounting and remounting an external drive on my iMac made it become visible on my MacBook Pro after it had disappeared.

  • I am unable to redeem my purchase of a Photoshop Elements 12 software license.  After entering the redemption code and clicking on the Redeem button, nothing happens.  No error message.  Screen does not change.

    I am unable to redeem my purchase of a Photoshop Elements 12 software license.  After entering the redemption code and clicking on the Redeem button, nothing happens.  No error message.  Screen does not change.

    try using a different browser, or contact support Contact Customer Care

  • ICal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed on alert.

    iCal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed.

    Calendar (not called iCal anymore) does not include that capability any longer, apparently.  What you have to do now is go to Automator and create a Calendar Alert action.  You can add a Run AppleScript object to the action and paste in your script there, then when you save it, it will become available as a choice in the alert menu in Calendar.

  • STMS problem ( import status - import runnig does not change)

    I have the same problem like this:
    While Transporting request in our production server the status of request from import running (truck sign) does not change.
    But the effect of the request is seen in the production but status does not change.
    see :Re: STMS problem ( import status - import runnig does not change)
    I did se14 as experts suggested, the history truck sign go away,seem work fine,
    but when new request need STMS to trans, the truck sign happened again,
    I need you help,thank you!

    thanks for all reply,
    the last two answers are the same,I think this is the right key,
    I'm a ABAPer actually,yesterday I asked our headquarters  basis to help,
    and I don't know what he did,now this problem is be solved,
    PS:I use AL11 to find .LOB now,but not find(maybe it's deleted by our basis),
    thanks again!

Maybe you are looking for