Cursor problem inside a JInternalFrame

Hi Everyone,
I encountered a strange problem working with JInternalFrames. The cursor doesn't change to a resize cursor when it should (for example when resizing a JSplitPane or a JTable inside a JInternalFrame).
On the main Frame everything just works fine.
I have tried to change the cursor manually on some events but this didn't work at all. The cursor just didn't change.
Does anyone have an idea?
(I must use JDK 1.3.1, probably this problem is solved in 1.4)
Thanks in advance!
Boris

Hi,
for the cursor change to work, I think you must ensure
that the concerned internal frame is active &
selected... is it the case ?I have tried the following:
mInternalFrame.setSelected(true);
mInternalFrame.setEnabled(true);
mDesktopPane.setSelectedFrame(mInternalFrame);The internal frame is selected but the cursor still doesn't change. How do you set the internal frame active?

Similar Messages

  • Cursor problem when using inside JInternalFrame

    HI there,
    My problem is describe below:
    JDK Environment: 1.3
    Scenario: A JLabel with a mouseListener inside a JInternalFrame. The mouseListener listen to the mouseEntered and mouseExited event. When it is mouseEntered event,it change to Cursor.HAND_CURSOR , when it is mouseExited event,it change to Cursor.DEFAULT_CURSOR. This works fine inside JInternalFrame. I had tested that...
    The problem occurs when the mouse move OUTSIDE of the JInternalFrame. The cursor won't convert anymore after the mouse move outside the Jinternalframe, is it a swing bug? any suggestion there?
    Thank you.
    Application Developer,
    Chin
    ---------code attached for clarification -----------------
    label.addMouseListener(new MouseAdapter(){
    public void mouseEntered(MouseEvent me){
    frame.getContentPane().setCursor (Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    public void mouseExited(MouseEvent me){
    frame.getContentPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    WHERE label sit inside a JInternalFrame...

    I believe you are setting the cursor to far back in the containment hiearchy. Each JComponent could have a separate Cursor. I cannot recall how to make a JInternalFrame active so you'll have to click it to see the Cursors on the Iframeimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CursorTest extends JFrame
       private JDesktopPane desk;
       private JInternalFrame f;
       private JLabel l;
       public CursorTest()
          super("Cursor Test");
          setSize(500, 400);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          l = new JLabel("Point Mouse Here");
          l.setCursor (Cursor.getPredefinedCursor
             (Cursor.HAND_CURSOR));
          f = new JInternalFrame("Cursor Zone",
                      true, true, true, true);
          f.getContentPane().setLayout(new FlowLayout());
          ((JComponent)f.getContentPane()).setCursor
                (Cursor.getPredefinedCursor
                (Cursor.CROSSHAIR_CURSOR));
          f.getContentPane().add(l);
          f.setVisible(true);
          desk = new JDesktopPane();
          desk.setCursor(Cursor.getPredefinedCursor
                   (Cursor.MOVE_CURSOR));
          desk.add(f);
          f.setBounds(50, 50, 144, 89);
          setLayeredPane(desk);
       public static void main(String[] args)
          CursorTest cT = new CursorTest();
          cT.setVisible(true);
          cT.desk.getDesktopManager().
             activateFrame(cT.f);
    }

  • XY Graph Cursor Problem in Labview 7.1.1?

    Hallo,
    I am  using Labview 7.1.1 and I am facing one problem with XY graph cursor. If I am moving cursor in one graph, I am expecting same movement in another Graph. But when I move cursor in Graph1, cursor in second graph moves but not to exact X value of Graph1.
    Property of Cursor in both graphs must be "Lock to Plot"
    If any body knows about this please let me know ASAP. I am attaching example VI for your reference.
    Thanks,
    Sashi
    Attachments:
    XY Graph Cursor Problem.vi ‏101 KB

    It's a curious effect. Probably the floating point coordinate is sensitive to the exact pixel alignment (I mean that this would not happen if we had for example 1 pixel per point in the X direction).
    Anyway, if you use Cursor Index instead (which is an integer) the behaviour is as expected.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • ResultSet wihtin ResultSet but causes cursor problem?

    I have a SQL error when running the code below:
    while(rs0.next()){ ...
    String s= rs0.getString(1);
    ResultSet rs=null;
    rs=getResult1(aConnnection, s);
    /*statment is created in the function and ResultSet returned */
    while(rs.next()){ ...
    rs.close();
    rs0.close();
    Error: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
    The database setting is 200 cursors
    and rs0 has 300 records, rs has only one record each time. I thought there should be only 2 cursors involved, do not know how can get so many.
    Could some one help with my question?
    Thanks in advance,
    YM

    Rethink your design.
    If you let a method create a statement and a resultset, but return only the resultset, then there's no possibility to close the statetement.
    I would create the statement outside the method, pass it to the method to do the query and return the resultset, but control the statement in my calling code.
    So in your example you would hold references to 2 stattement just the same way like to their resultsets and close them all together.
    This is more clean, and maybe will solve your cursor problem.
    If you should come to the result that you would really need more open cursors (if your app runs on many clients at the same time, it could), there must be a DBMS configuration for increasing this limit.

  • Strange flashing cursor problem

    Hi,
    I've just finished installing Vista 32bit on my Macbook Air (1.6) and its working fine apart from one small problem - when starting up it freezes on a black screen with a flashing cursor for 2-4 mins and then will start loading Vista fine. Once in there is no problem and its stable and what not. I have had a look at some on the articles on here and other forums and the flashing cursor problem usually refers to when people try to first install a MS OS and not once one has been installed successfully.
    I only have to boot into Vista every now and then and only for a few minutes at a time so I usually spend as much time in Vista as it does loading.
    Any help appreciated.

    General purpose Mac troubleshooting guide:
    Isolating issues in Mac OS X
    Creating a temporary user to isolate user-specific problems:
    Isolating an issue by using another user account
    Identifying resource hogs and other tips:
    Using Activity Monitor to read System Memory and determine how much RAM is being used
    Starting the computer in "safe mode":
    Mac OS X: What is Safe Boot, Safe Mode?
    To identify potential hardware problems:
    Apple Hardware Test
    General Mac maintenance:
    Tips to keep your Mac in top form
    Direct you to the proper forum for MacBook :
    MacBook Series Forums 
    https://discussions.apple.com/community/notebooks?view=discussions
    http://www.apple.com/support/macbookpro
    Mac OS X Forum
    https://discussions.apple.com/community/mac_os?view=discussions
    This forum deals with a desktop/tower 65lb Mac Pro
    http://www.apple.com/support/macpro
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X & Mountain Lion Community
    https://discussions.apple.com/community/mac_os
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    Recovery Mode
    http://support.apple.com/kb/HT4718
    Unless you did a clean install, and I can't tell what your system maintenance is whether it is what I would do. Backup / clone your system, use ML RECOVERY and erase the system partition and update with just Apple updates, don't restore anything.
    Run Apple Hardware Test.
    Take it in for a free check and diagnosis.

  • Cs5 Brush cursor problem, on MacBook pro lion, tried the latest update, and the genious dude had no idea of what to do! Apple any fix?

    Cs5 Brush cursor problem, on MacBook pro, tried the latest update, and the genious dude had no idea of what to do! Apple any fix?

    Additional Info - after working on this problem for 4 hours, I shut my laptop in frustration and took a break.  1 hour later I opened my mac and the cursor had magically returned.  No restart, no power on/off - nothing.  Frustration.  If anyone else has had this happen and has actually fixed the problem let me know. I'm sure it will reoccur.

  • Brush Cursor Problem

    Hello, I've been experiencing a weird brush cursor issue and I haven't been able to find anything online to fix it. 
    This cursor problem is different from the "chunk of cursor missing upon resizing" issue that so many people have had.
    In Photoshop, when I resize my brush using the "[" and "]" keys, I will  often see my cursor get distorted. It will very briefly appear to the  right of where the cursor should be and it will look kind of oblong.  Another distortion that occurs is the cursor very briefly becomes a half  circle that is a bit larger than the cursor should be. This usually  happens between 150px and 250px size and occurs with all brushes.
    I'm also experiencing a distortion when I move the brush cursor over to  the panels section. This distortion appears (again, very briefly) as a  broken up horizontal line just above the brush cursor. Also, within this  line, I can see the regular pointer arrow cursor. Sometimes I see two  arrow cursors within the line and other times just one. This happens  with all brushes of size 500px or less.
    I have updated my video card drivers to the latest version and I have updated my Photoshop with the latest patch. 
    I use Photoshop CS5 64-bit, Windows 7 Home Premium 64-bit, and a Toshiba  Satellite L655-S5157 with an Intel(r) HD Graphics video card. 
    I heard about someone with a problem somewhat similar to mine and he  said he fixed it by manually deleting his preference files. He had tried  doing the shift+alt+ctrl on startup to delete his preference files, but  it didn't fix the bug (I tried it too and it didn't work for me  either). 
    I would like to try manually deleting my preference files, but I just don't know where they are. 
    Thanks for any help.

    For you (or anyone reading this thread), try to get a machine with an embedded ATI or nVidia display interface.
    Intel seems to be coming out pretty strong in the laptop market because they offer embedded GPUs in their chipsets, but Intel has a LONG way to go to get their OpenGL implementations up to par.  What I don't understand is that they've been known for having relatively poor OpenGL implementations for years now.  It's not like they're a small company who can't afford to fund a good development staff.
    To this day I'm still fighting Intel-specific problems seen by people running my own OpenGL software, where ATI and nVidia implementations are rock solid.  Stuff that's documented - such as handing off an OpenGL context between threads - just fails utterly with an Intel driver/GPU.
    -Noel

  • Cursor Problems in Adobe Edge

    Hi!
    I have this problem.
    I opened an Adobe Edge working file, run it and there are cursor problems in the latest Adobe Edge version. I was doing a drag and drop animation. Cursor problems did not exist in the older Adobe Edge version. I had to install the latest Adobe Edge Animate as the previous version had expired. This cursor problems of going hay wire after running it from the working file, has been going on for a few animations. And it takes more time and effort for me to rectify and debug the errors before continuing with my work. By the way, the .html from the previous Adobe Edge version works alright. It is only when I want to edit the working file in the newer Adobe Edge version, that it gives me all these problems.
    i hope someone will help me and thank you for your time.

    Hi OrionsEdge,
    I'm able to solve the problem. I looked through the codes and tried changing those parts which require the symbols' position to be changed through trial and error. If i'm not mistaken, it is related with the CSS.. it is tedious, but yeah, just change a part of the symbols' position first and try out the whole animation. observe and note down what are the changes. It will help you alot in your future code editings of the animations.

  • Vanishing cursor problem

    new imac 24' with a vanishing cursor problem, once or twice a day my cursor vanishes sometimes I can get it back by hitting the force quit shortcut keys at which point it will appear in the force quit dialog box, sometimes this does not work, at which point I have to reboot by holding down the power button, while in the force quit dialog box without the cursor visible i can use keyboard to quit all open apps and relaunch the Finder this has no effect.
    uplugging and replugging has no effect, plugging into a different port has no effect, using two different usb mice has no effect.
    I am using a logitech laser mouse that works perfectly on two other macs, the problem occurs with or without the logitech software running and also occured using the steermouse mouse driver.
    all software appears to be up to date using software update ect.
    cursor does not just become invisible, panning madly around with the mouse produces no effect in terms of opening the dock or whatever.
    Help please!

    Try posting in the MacBook Pro forum. We in the old G4 Tower forum are not familiar enough with the new systems to give out any advice!
    Cheers!
    DALE

  • How can I set cursor position inside TextInput or TextArea

    Hallo.. I can't find the way for changing che cursor position inside a String in the TextInput or TextArea Component.. I hope you can help me..
    Thx
    Max

    setSelection(index, index);

  • TS1559 my wifi is grayed out... No one can fixed it...there is a problem with hardware. IC problem inside the phone. Apple have any facility like service after sales etc. Multi billion company but no priority for customers ?

    my wifi is grayed out... No one can fixed it...there is a problem with hardware. IC problem inside the phone. Apple have any facility like service after sales etc. Multi billion company but no priority for customers ? Just try to look at google search you can find lot of people who have same problem with iphone 4s. It is surly manufacturing default. Is that apple reputation lounching New virsion Iphone with diffective hardware.

    Plz dont give me idea setting>reset>reset network configration .... I already did it..... give me proper solution... who can replace default hardware from my iphone?????????????????????

  • 10.8.2 cursor problems

    I am having terrible cursor problems after I installed 10.8.2. After starting the computer, the cursor refuses to move or jumps around, often the screen will resize. I have run the Disc Utility but that does nothing.

    Yeah, I'm running OS X Server also on a Mac Mini and from my experiences, the PCs in the household couldn't connect via SMB to the Mac Mini until I set the Workgroup and Netbios Name in the WINS tab in Network on the Mini after a reboot.
    Did any hardware change? Like maybe the router was replaced with a different brand and the Konica isn't getting the correct IP address?

  • Libretto W100 cursor problems

    Hi,
    I have lots of cursor problems on a new Libretto W100. Using the cursos field on the display it move it in exactly the opposite direction on the top screen. So I go to the right-below, the cursor moves in left-up direction. The only way I found to stop this problem is a complete reboot. And then it works OK, but when I close the lid and leave it alone for for example two hours, come and activate it the problem reappears. I especially not even touching the screen(s) to avoid confusing the machine. But I can consistently reproduce it.
    Very annoying. Any one seen this and/or has a solution?
    Regards,
    Wim.

    I found that the screens work properly after updating the various software updates on the toshiba download site. It is not very clear on the site which ones are essential but I used the registry patch and the software suite upgrade and things are better. Only remaining problem I have is that the touch pad no longer works- anyone got a solution for that?

  • Certificate for the website, was going to copy and send an email to the website to ask about the certificate. I got my cursor just inside the pop up and the whole computer shut down. Why what happened i am not sure about going to the website now....

    Question
    Went to Crossings Book Club website while there something popped up about the certificate for the website, i was going to copy it and send an email to the website to ask about the certificate. I got my cursor just inside the pop up and the whole computer shut down.

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Strange Cursor Problems

    Hi everyone,
    I have been having a lot of strange cursor manifestations happening after I reformated my computer and reinstallled the Adobe Suite.  However, the only problems that pop up seem to be in Photoshop.  I'll try my best to explain...
    Whenever I adjust the size of the of a brush or switch between tools (like the clone stamp, healing brush, eraser, brush) or sample an area, either the brush cursor manifests twice so that I have to circles side by side or it turns into two lines on a diagonal that cross over each other (not crosshairs though).
    I never had these problems before, and have no cursor problems outside of Photoshop.  Anyone have an idea of what is going on, or even better, a solution?

    Update your video driver from the web site of the maker of your video card.  That's been known to solve problems such as what you're describing.
    What video card do you have, by the way?  nVidia?
    -Noel

Maybe you are looking for