JTextPane : strange things about getInputAttributes

Hi,
I don't understand the rules of getInputAttributes in JTextPane ; seems to be the attribute of the character before the caret, except for the first, which is the first ; but sometimes not ; it's not the same if the cursor goes from left to right or from rigth to left.
Is there somewhere some explications ?
Thanks for your help.

I have found it's the ->not-bug<- #4520566 getInputAttributes returns values for previous caret position : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4520566.
Thanks.

Similar Messages

  • A strange thing about saving files in Mac OS X

    I've noticed a strange thing about saving files in Mac OS X.
    In the save dialog, you click a folder to save into that folder.
    Well, if you accidentally click a file instead of a folder, the name of the document you're saving is changed to the name of that file! Then you have to retype the name, or cancel out of the process and start over.
    I don't see why you would want to change the name of the file you're saving to the name of a file that already exists, unless you want to overwrite the existing file (unlikely), but maybe there's a reason for this I'm overlooking.

    The Mac OS didn't used to do that. There must have been a lot of requests for it though. Especially from Windows switchers I would imagine, since you've always been able to do that in Windows.
    Sometimes I like being able to pick up the a name I do want to replace right from the Save dialogue. Most of the time though, I think it's a dangerous option. I don't know if there's a way to turn that behavior off.

  • Strange thing about multiplication of several doubles

    Hi,
    I have encountered one very strange thing as follows.
    double b1 = 2006 * 365 * 24 * 60 * 60 *1000 ;
    the result b1 = 642,697,216;
    obviously , the result is not correct.
    so I change into another way.
    double b2 = 2006 * 365 ;
    double b3 = 24 * 60 * 60 *1000;
    double b4 = b2 * b3;
    the result b4 = 6,326,121,600,000;
    fortunately , it is correct.
    who can explain this queation for me?
    thanks

    I think you're getting integer overflow because all
    your literals are ints.
    Use 2006.0, 365.0 etc and see how you go.It's enough to add .0 to the first number.
    Kaj

  • Strange things about optimized files

    As far as I understand from this forum, if I "create optimized files" it will convert it to ProRes422. I use EXDCAM EX mov. I import with optimized checked. When I take a look at the info about the file in the timeline, it says EXDCAM EX Linear PCM, XDCAM EX 720p50 (35 Mb/s). When I export the the files and use current setting I get a  ProRes 422 file. I would be happy if someone could explain this to me.
    Regards
    Innocentius

    I've not used XDCAM in FCPX. I can only surmise that the media doesn't require optimization and you really are working with the XDCAM media. The output is ProRes regardless unless you've changed it in project properties Cmd-J. Click the little spanner in the lower right of the panel. The render output is the current settings output unless you change it to XDCAM when to export, which you can do.
    Even with optimized media, the info panel still displays the original media format, not the optimized format, which I think should be changed. Ideally info should display both.

  • My Mac is doing strange things: delaying between users, mouse flickering and bouncing, gets stuck with rainbow wheel flickering. I ran the appel hardware test and it detected an error: 4MOT/4/40000003:HDD-1233 Does anybody know what that means? HELP!

    My imac is doing strange things:
    -delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
    -it gets stuck between things, the rainbow wheel appears and its just delays there forever....
    -and every now and then the mouse starts flickering and bouncing wildly onscreen.
    I ran the appel hardware test and it detected an error:
    4MOT/4/40000003:HDD-1233
    Does anybody know what that means? HELP!

    WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
    RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
    Hope you get it taken care of!

  • Lion and Mavericks (strange things going on)

    Hello everybody,
    I have a 2010 (white) macbook,
    I just installed Mavericks and updated it to 10.9.3. The macbook runs both 10.7 Lion (my main and most important partition) and 10.9, it's a dual boot.
    My partition with Lion is called ''Macintosh HD'' and the one with Mavericks is called ''OS X Mavericks''. (Mavericks is startup partition)
    Now i'm using both together some strange things are happening. First off when i opened Finder in Mavericks it only showed ''Macintosh HD'' like that was the partition Mavericks was installed on, now i've added the right partition in the sidebar of the finder (OS X Mavericks). This was already weird.
    When i went back into Lion everything was fine but it stated indexing ( i guess the mavericks partition ) this annoyed me because i want them to be seperate.
    So I went to settings > Spotlight > Privacy and added ''OS X Mavericks'' so Lion stopped indexing that part of my harddrive.
    When I went into Mavericks again, the spotlight on Mavericks was indexing and then randomly stopped. I went in to Setting > Spotlight and Privacy again.
    Only now in Mavericks. Guess what: in privacy ''OS X Mavericks'' partition was added.
    Is Mavericks reading from the wrong partition??
    Is spotlight running between two OS X versions?
    How can i make sure Mavericks is reading info from the right partition?
    It would be very nice if someone could tell me more about this..
    Thanks in advance !!

    I remember when Lion first came out, I installed a second Lion partiton and had issues similar to this. The MAS failed to work at all in the new Lion partition until I removed the original.
    I suspect there is something with Lion that only likes one OS X per drive.
    You might need to install Mavericks on an external drive rather than the second partition.

  • Strange things with keyboard

    strange things with keyboard happens on my macbook - after cleaning keyboard (rag with spirit) I start mac and get sticky key (continuously type one letter and beeping on speaker). I shutdown mac, remove key and clean space under it... it helps - but I found other strange bug:
    pressing left shift - gives me capital letter "O"
    letter "O" - always capitalized
    | symbol always comes with return button
    now I use external keyboard - all good on it... but macbook keyboard still wont work properly
    what can it be? how fix it?
    ps: sorry for my eng

    thanks for your reply, and you might be right about using USB v2.0. The PS/2-USB adapters I am using are v.1.0 so may be incompatible, even though this technology is supposed to be backward-compatable.
    Since this problem reared its ugly head, I have disabled the Toshiba applications and monitored the situation - OK so far, but I will keep an eye on it.

  • Strange things happen: mail disappears/appears/is shown wrong

    Strange things happen: mail appears in "drafts"/mail disappears after "send"/title-content doesn't match
    I'm having some Problems with mails that get worse and worse
    First thing I remember is, that I found mails in "Drafts" that weren't drafts, but just mails I received or mails I sent.
    They were kind of aliasses of the original. Deleting them in "Drafts" deleted the original in its Mailbox too.
    Re-indexing Mail (removing the envelope.index files etc.) fixes it, but it reappears very soon
    Next thing:
    When I send an email, it happens sometimes, that it is not send (no sending sound, no copy in the "Sent"-Folder). It just "disappears"
    Re-indexing Mail fixes this: When Mail is ready with reindexing, it sends those messages (kind of funny, when I do this reindexing after some weeks... kind of...) - but it will reappear
    The third thing happens more seldom:
    When I klick on the emails name in the list, I get another Mail shown in the Previewbox. Doubleklicking the mail shows the wrong mail too.
    Re-indexing fixes this, - but it will reappear
    Well after having re-indexd my Mail library 10 times this week, I want another solution for this...
    Mail Version etc:
    Mail: Version 3.5 (930.3)
    1 Pop account,
    1 .mac account (i don't use)
    Mail, after being sent, is moved to "Sent"mail never to be deleted
    Mails Spam Filter is active (and working fine, by the way)
    about 80 Mailboxes for old Mails I got, partially nested
    More than 4000 Mails in the whole Database
    Things I've already done:
    Reindexing mail, as I already wrote (Quit mail, removing the files "Envelope Index" and "Envelope Index-1", and the folder starting with "Mac-", then start Mail again, that tells me to klick "ok" for reimporting the mail)
    I deleted a bunch of emails with attachements, so there are just a few with attachment now.
    I emptied the "Sent" folder and put those old emails in 3 Folders (each of them is containing about 500 mails now)
    Thanks for your help in advance
    PS: Yes, I want to keep all these old mails...

    This is not a security risk - a setting change you should make.
    1.     Take a look in settings - i message and see what the 'recieve at' addresses are declared.  If you do not want to see phone messages on the pad, clear that number out of there - and just use your e mail address.
    2.     Since you used to have an i phone, that device is likely still registered   go to your i tunes account and de register the device.

  • Hello there,  there is a rare window that keeps popping up every time i start Logic.  I'd like to send a screenshot... anyway, it's a "tempo" window with strange layout about midi effects and so,.... is it normal?  How can i improve this?  Thanks.

    hello there,  there is a rare window that keeps popping up every time i start Logic.  It's a "tempo" window with strange layout about midi effects and so,.... is it normal?  How can i improve this?  Thanks.

    Hmm, that's some sort of MIDI Arpeggiator setup in your environment. Strange that you don't know it, this has to be custom-installed, it is not part of the standard setup.
    You can do two things about it:
    1.unlock your current screenset (shift-L), then close the (Bass Driver) window, then relock the screenset (shift-L). Next time you open up this project you won't see the Bass Driver, but it is still in the project.
    2. You can remove the whole page: open the Environment (cmd-8), then go to the dropdown menu arrow top left of the Environment window and select the Bass Driver layer. If it is selected, dropdown again and choose Delete. Now Save your project under a different name (Save As...), so that you still keep the Bass Driver setup in the original project. If you don't need to keep it, you can simply Save.

  • Addressbooksync wants to connect to strange things

    Little Snitch keeps alerting me that addressbooksync wants to connect to all kind of strange things. It looks like anything can request access to this and "spy" to my address book?
    I read a number of posts about addressbooksync having problems, but couldn't find any other post about how it tries to access all kind of strange url's. See below picture, the list is much longer then that. It mostly pops up when I am browsing through safari.

    Thanks those are helpful - I can also see the activity in my router logs, but this is easier!
    I just got another one that's a bit mystic as well since I have NO Microsoft anything on my 2011 Mini... BUT it looks like some kind of System process...
    "netbiosd"
    wants to connect to 10.xx.1.xx on TCP port 445 (microsoft-ds)
              IP Address          10.xx.1.xx
              Established by          /usr/sbin/netbiosd
              User          _netbios (UID: 222)
      Process ID          185"
    I am running a Seagate Dockstar (Pogoplug) on the LAN sharing a media drive via SMB.
    My router is a Linsys/Cisco E2000 with no Apple hardware on the network other than a couple of iPads and a MacBookPro on the WLAN.  Also a couple of TiVos, and AppleTV1 (patched) and sometimes cell phones.
    I haven't run down the IDs on all the MAC addresses completely yet - but I've got about 12 devices showing up that I need to identify.  4 are still yet to figue out.
    Could an ID like 10.xx.1.xx  have something to do with file sharing maybe?  Dropbox? Elgato Syncmate?  etc.  I do have those running.

  • Help! Strange things happen when I use Get Info command

    Hi, I have updated iTunes for 7.7.1, and since then a strange thing happen: whenever I pick a Smart Playlist, select a song and use the Command-I, the Get Info screen appears for a few seconds, and then the "Cancel" button is highlighted, as if I had clicked on it, and the screen is closed.
    Funny thing is that I am not clicking the "Cancel" button, but it happens automatically after a few seconds, and only with songs in the Smart Playlists. I haven't found a thing about it at the Discussion forums, can anyone help?

    In iTunes, right click on the file and Get Info.
    Make sure it is marked Remember Playback Position.

  • Strangest thing about FireWire and boot

    Some days ago, I bought a new MBP. After installing a fresh copy of Mac OSX Snow Leopard and restoring my backup with Time Machine, everyting seemed right: Facebook recognized a new computer ID and asked me which new name I wanted to use, iTunes made a new scan of the library and so on.
    The most important thing, perhaps, was that REFIT was NOT installed nor restored by Time Machine. In fact, as I had asked in this forum (and was succesfully answered), Time Machine does NOT hold the startup.
    What's the matter?
    I use an external FireWire audio interface (M-Audio FireWire 410) that has to be connected BEFORE turning the MBP on, otherwise it won't work.
    So, after restoring with Time Machine and setting up my new MBP, I turned it off, connected the FW audio interface and turned it on.
    *** ?!?!? After a couple of seconds, REFIT appeared. Moreover, after the boot was complete, AirPort was off.
    This was COMPLETELY EQUAL to the last configuration I had left before turning the FW410 off --> in the OLD MacBook Pro!
    I really can't realize WHY a FireWire audio interface is holding something about the boot.
    Moreover, another strange thing is that during the next boot (with the FW410 disconnected), REFIT and the same configuration were the same. I repeat, even if the audio interface was not connected.
    Can you help and tell me why is this happening?
    Thanks in advance!
    Tyrexionibus

    I mean: 1) Format the hard drive, 2) Reinstall OS X, 3) Reboot, 4) Go on as soon as "Do you want to transfer your data?" "Yes --> from another Mac".
    That will work but note the following:
    It is Setup Assistant that will appear automatically with the "Do you want to transfer your data?" prompt. It is essentially the same thing as Migration Assistant, except it can only be used once & for this reason you should use it with whichever has most of your user files, your current Time Machine backup or your old MBP. You will then need to manually copy the remaining user files (if there are any) from the other source to the new Mac. This is because Migration Assistant (which you can run more than once) cannot merge two user accounts into one.
    This Time Machine option in Setup Assistant is not the same as a Time Machine restore.
    Both Setup & Migration Assistant will only work with sources that have a system on them. Neither will work with your new data backup but if required you can manually transfer user files from the backup with Finder.
    As you probably already know by now, ReFit & any other partitions it allows you to create will be destroyed if you format the drive. If all of that is working OK now, you do not need to reformat the drive. Just reinstall Snow Leopard as the article describes, or just erase the Snow Leopard partition & otherwise do what you suggest.

  • Help needed because of strange things with Lollipop!

    Hello everyone. I've updated to Lollipop 5.0.2 .... But some strange things are happening.
    I've updated using PC companion. When I finished downloading the update files from the Net
    ,and I've turned off my phone so the update starts. After 1 minute something wrong went with my
    computer. It restarts by itself. So my phone didn't boot anymore. I tried to reupdate it, but
    that couldn't be done cause the phone is not booting. So I had one option, which is to do
    a system repair to repair my phone. I did it and I succeed. So my phone is now updated to lollipop
    , but of course all the data in the phone were wiped out. This is not a problem, I can redownload the apps I want.
    The problem is that on Kitkat I used to play a game called ( plants vs zombies ) , but on Lollipop
    Whenever I open the game it shuts down after half a minute. I thought the problem was
    because I moved it to the SD card, so I moved it to the internal storage of my phone
    but no change. It still shuts down by itself.
    Another thing is that when I install an app, in normal state there are moving lines from the above
    to show that the app is installing . Sometimes those lines disappear , I don't know if this is a problem or not.
    This is a screenshot of the fault.As you can see , the line is still. There must be lines moving inside it.Thanks.

    Hi! Sorry, I've been busy and hadn't gone on the forum for about 2 weeks haha. Uhm I do not experience the problem anymore it was a long time ago, from where do you download your APK files? I used 1MobileMarket for the download of PvZ2 but I receive updates via Google PlayStore. The only thing I can suggest is that you uninstall it, try downloading it vis 1MobileMarket and see if it works. If not I really don't know what the problem is.. I had my problems with PvZ on the Z, not the Z2, but it was the same you are experiencing with the game. I did notice that whenever I did a factory reset or system repair, I'd lose all my PvZ gaming data although I had my Google Play Account logged it to sync my data. As for the lines while installing the app; If the apps work normal after installing (the lines still didn't show up or disappeared) I don't think it might be such a problem. As long as you can run the apps. Hope this helps!

  • Minor strange things on CAPS 5.1

    I've just install several installation of CAPS and found some strange things among those installations.
    - some installations doesnt show the FileeWay icon
    - some installations doesnt have the HTML help version of eGate docs.
    - some computers with 512 megs RAM are able to install, the others didn't finish uploading modules after more than 3 hours.
    Did anybody experienced these?
    thx,
    arih

    arih,
    Not sure what you mean by the "FileeWay icon", but I have seen the Oracle eWay option drop out of the CM screen.
    One thing about your last statement about not being able to upload components. I have found that the following registry entry seems to clear up these issues if you are using IE:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
    "SocketSendBufferLength"=dword:00008000Just paste this into a file with a .reg extension, save and then run it. I think you will be pleased with the result!
    -PEBKAC

  • WRT54G ver.7 does strange things

    hello everybody!
    i've bought a WRT54-G (ver.7) router about 2 years before, but it does strange things
    1. sometimes i can't see the admin interface. i type 192.168.1.1, give
    password, but i can only get a white, blank page without any text. when this
    happens, just a router & modem restart or reset can help.I use the network
    every day, through weeks...but it happens in about a few days. why does it
    do it? i need it everytime!
    2. three computers connected to the router, 2 with UTP cables, 1 via WiFi.
    If the computer with wifi is working and one of the "UTP computers" too,
    then the 3rd computer (with UTP) only see limited connectivity, but 2 dhcps
    are enabled in the router settings, with 2 static DNS..I use WEP2 security
    to my wirless connectivity, and only just my notebook's MAC address is
    enabled to use the network. my router's password is not default, so nobody
    can steal my bandwidth.
    i can't find newer firmware verison than ver. 7.00.4..i've bought it with this version
    i don't use any firewalls, windows firewall is disabled too
    thanks for your answer!

    Have you tried to reset your Router and Re-configure all the settings on your router back again. If not please do it now, Press and hold the reset button for 60 seconds...Release the reset button...Unplug the power cable from your router, wait for 60 seconds and re-connect the power cable...Now re-configure your router.....

Maybe you are looking for

  • My ipad 2 switched on by itself very frequent after turn off

    Can anyone advise me

  • Adobe Air and iOS 7 microphone prompt issue

    I have read numerous posts that the latest versions of Adobe Air 3.9 Beta is supposed to resolve the issue of iOS 7 apps prompting for microphone access. However, I am still encountering this error. Am using Adobe AIR: v3.9 Beta Adobe Flash CC: v13.0

  • Another query about XAResource

    Hi All, I have another query about the start/end behavior of the XAResource and its effect on a JMS transaction when the JMS server acts as a resource manager. Suppose I start an XAResource supplied by a JMS server using an XID and pop some messages

  • Mail & safari unresponsive

    both mail and safari only show the spinning icon Internet Explorer and Firefox still working. Mail will connect to mail server and download but when I try to compose new message or click on account settings etc. it "hangs" I have rebuilt permissions

  • Why are services for existing subscribers hidden

    I have just had reason to perform a complete reinstall of the Windows 8 system on my laptop. This removed a range of applications included in a Complete Individual Creative Cloud subscription. The only way I could access the download for the Applicat