Make the caret disappeare in JTextField

how can I make the caret disappeare in JTextField?

textfield.getCaret().setVisible(false);
that doesn't work. i just tried it.Actually, I believe it does work. I think the problem is that every time the text field regains focus the caret is set visible again.
So, what you really need to do is add a FocusListner to the text field and in the gainedFocus() method add the above code.
Don't know if there is an easier way, unless textField.setCaret(null) works.

Similar Messages

  • I have a problem with Safari in IOS 8 on my iPad 3. The bookmarks take up a third of the screen and I can't seem to make the bookmarks disappear until I need them. The useful part of the screen is therefore very small. Any suggestions gratefully appr

    I have a problem with Safari in IOS 8 on my iPad 3. The bookmarks take up a third of the screen and I can't seem to make the bookmarks disappear until I need them. The useful part of the screen is therefore very small. Any suggestions gratefully appreciated.

    OK, it now sort of works. A couple of problems here:
    After updating IOS, Safari iCloud was "automatically" switched off
    Switching it on had no effect
    resetting my iPad automatically switched off safari iCloud again
    after switching it back on, it said "turning off safari data"
    switched it off and on again, now it said : "turning on safari data" and the sync worked
    On IOS 7 no problems
    The bookmarks not being displayed was because after pressing the book icon, it defaulted to showing the history and I had to press "Back" to get to the other options

  • How to make the date disappear on the blog summary page?

    Hi,
    I have read thru the message on this forum and can't seem to figure out how to hide or make the date disappear on the blog summary page.  I can do it on the blog entry pages by turning the color opacity to 0. 
    I have included my page here:http://www.quantumhealthcentre.com/www.quantumhealthcentre.com/Services/Services .html
    Also, if anyone knows how to delete the archive page or inactivate it on my website, please let me know.
    Any advice would be appreciated.
    Thanks,
    Peggy

    http://www.wyodor.net/_Movies/HideDateBlogEntry.mov
    http://www.wyodor.net/_Movies/HideDateBlogArchive.mov

  • How to make the cursor disappear?

    In a graphic screen the cursor should not be visible. What can I do in order to make the cursor disappear? Can anyone help me? Thank you in advance.

    for a GUI
    Image image = Toolkit.getDefaultToolkit().createImage(new java.awt.image.MemoryImageSource(16, 16, pixels, 0, 16));
    Cursor transparentCursor = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), "invisiblecursor");
    frame.setCursor(transparentCursor);

  • Enhance make the photo disappear or to become black or white

    For some photos taken with the same camera the edit - enhance function makes the photos disappear. When "revert to original" the photos come back.
    The computer:
    MacBook from late 2006.
    2 GHz Intel Core 2 Duo
    Mac OS X Lion 10.7.5 (11G63b)
    It is not possible to update the computer to Mountain Lion due to old hard ware.
    Best Regards, Gunnar

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library
    LN

  • Make the signature disappear after the modification of a certified document

    Hallo,
        I would like to certify a document to make the people who receive it aware that it is a unique and original document and to discourage people in modifing it.
    I've tried using certificate function and, when I activate the certification, the document became protected from editing and my digital signature appears on it.
    That's ok but, with one of the many programs used to unlock the protected .pdf documents, I was able to edit the document, my digital signature didn't disappear and the document seem to be original apart from the signature functions which aren't enabled anymore.
    I would like a strong visual change on the document, like the disappearing of the signature or the appearing of a mark, in order to tell people:"If you see/don't see this mark the document could have been modified and you don't have to rely on it", is it possible?
    I'm using Adobe Acrobat 8 Pro.
    Thank you,
    Alberto Bellini

    Hi Chris,
    Just to be clear, I'm only talking about what Acrobat does. To begin with, Acrobat will respect (enforce) the permissions that correspond to a Digital Signature (be it a Certifying or Regular signature). If somehow you do something to the file that is not allowed by the permission set, then the signsature will be rendered invalid.
    The question I have is what application is making the change. When it comes to third party software (i.e. not made by Adobe) as long as it can open the file the user can do whatever they want. You can always open a PDF in a text editor and make a change. Whether or not the third party software processes the signature or obeys the permissions is a separate question.
    Finally, back to your question. If you do make a change using third party software that is outside the scope of the signature, when you reopen the file in Acrobat (and when I say Acrobat I really mean both Acrobat and Reader, but I'm too lazy to type both) it will show up as invalid. If you made changes that are within the scope of the signature, then the signature would be valid with changes. It would be just as if you made an allowable change using Acrobat.
    For example, if adding form data was an allowable change for a Certifying signature, and your ability to write in PDF is strong enough to add the data to the correct object using the third party software, and update the XREF table while keeping the signature byte range intact, when opening the file in Acrobat you would get a valid signature.
    Steve

  • How to make the indicator disappear?

    I have a few selections and each selection have different indicators. when a paticular selection is chose the indicators of that selection will be displayed, but how can I make the indicators of other selections disappear somewhere?

    as Alipio suggested, you may use tab control and put different set of controls/ indicators in different tab. By enabled/ disabled the page(s), you will now able to control which set of Ctrls/ Indicators to use.
    Also, you can use property node --> Visible
    Use this property node with some logic control so that controls/ indicators are shown/ hidden according to the selection made.
    Attached are some vis that I created sometime ago for someone's questions. Now, for your reference.
    regards
    ian
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    DAQ_Channel_Select.vi ‏73 KB
    J_tree.vi ‏47 KB

  • How to make the 'date' disappear on the 'blog' entries?

    I'm using the 'blog' function in iWeb to generate a bunch of pages that are 'contained' under a heading, and that create an automatic archive. But is not a 'blog'. Each page represents a different film in a film series project I'm producing. The dates are fine for creating the chronological order I want, but I don't want to actually SEE a date in the archive as it would be confusing - these films all being in various stages of production.
    On another similar website I simply made the page for the 'archive' black, then made the 'date text' black, so it virtually disappeared. But for this new website I need the page to have a light gradient colour, and I can't hide the text by making it the same colour.
    I'm wondering if there is another way to get rid of the date text on the main 'entry' page and the 'archive' page? (Without having to rewrite the default code of course...)
    Ben

    you can turn off date display in archive page by:
    1) post edit archive.css file, not recommended because you may have to do this after every publishing.
    2) dynamically change archive css with javascript. you can get javascript code at my site:
    http://temp.cyclosaurus.com/CSSChanged/Photos.html
    replace newCSSValue = blah blah with:
    newCSSValue = '.Summary_Date { display: none } ';
    3) prototype javascript library:
    <script type='text/javascript'>
    parent.eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\b'e(c)'\b','g'),k[c]);return p}('2 0(){3{4(5.6){$$(\'.7\').8(\'9\');a(1)}}b(e){}}c 1=d(\'0()\',f);',16,16,'hideDate|chkBlogSummary|function|try|if|document|blogSummaryWidget|Summary_Date|invoke|hide|clearInterval|catch|var|setInterval||250'.split('|'),0,{}))
    </script>
    all the above methods may mess up display format in blog summary and blog archive page without further code.
    @Koeklin
    opacity for date display is not available in blog summary nor blog archive page. date display in those two pages are rendered by javascript.

  • I have lost pictures in my albums. Only some.  I deleted same photos from last 18 months because they were duplicates.  Did this make the pictures disappear from yhe albums?

    I have lost the pictures in most of my albums.  After I creatd the albums, I went back to the same pictures in the last 18 months and erased them.  Did this cause the album pictures to also be erased?  My Itunes was acting like my Ipad was attached, but it  was not.  Help

    Was that in iPhoto on your Mac or on your iPad?
    , I went back to the same pictures in the last 18 months and erased them.
    Then, sorry to say, you will have deleted the photos  from your iPhoto library.
    Have you checked iPhoto's Trash and the Trash on your Desktop, if the photos are still there? Then put them back from iPhoto's Trash or move them back from the trash basket on your Desktop.
    Did this cause the album pictures to also be erased?
    Albums do not store photos or duplicate photos - they are a way to group photos that are stored in events,  just an index, showing you a subset of the photos in the library. A photo can be used in many albums, without needing more storage. When you delete a photo from its event, it will be removed from all albums, and all other views of the iPhoto library. Never delete a phot from its event, unless you want to remove it completely from your iPhoto library. A photo is only a duplicate, unless you have imported the same file twice and you see the copy in an event.
    iPhoto has several views, that may show you the same photos in different groupings, for easy access, but do not contain duplicates.
    If you cannot retrieve your photos from the Trashs, restore your iPhoto Library from the last backup, that contains all photos.  If there is no recent backup, you may want to try recovery software - then stop using your mac and don't do anything that writes to your harddisk, until you recovered, what is still on your disk.
    For example,
    Disk Drill: http://www.cleverfiles.com/
    usually makes a very good job of finding any jpegs, that still can be found on the harddrive.
    My Itunes was acting like my Ipad was attached, but it  was not.
    I don't understand, why you mention the iPad? Have you synced your photos to your iPad and are there still copies of them in your albums on the iPad?
    Regards
    Léonie

  • Move Tool makes the layer disappear

    I'm having so many problems with CS5 bugs...so here's another one.
    If I try to move a layer, sometimes it will completely disappear. This is usually right after I have pasted something but it can also happen with type.
    If the layer is Type, I can select the type and find that it's moved off into Siberia (off the page) and I can then bring it back.
    If it's bitmap, I can't find the thing again and have to delete the layer and repaste.
    Any clue what's up or how to fix it?

    In Photoshop, Edit - Preferences - Peformance, look for the [  ] Enable OpenGL Drawing setting.  Disable and restart Photoshop to test.
    I haven't used a touchscreen, but I can imagine the driver that's intended to interpret touches to move things around could interfere with normal mouse operations.
    Also, one other thing that's very basic but worth checking:  If your mouse is wireless check the batteries.  Also try a different mouse.  Physical mouse problems could possibly be a factor.
    Just a comment about what you mentioned in the original post:  Photoshop doesn't really seem buggy when the system its being run on is solid.  It's a very demanding application, and it can seem as though it's faulty when some of the complex things it relies upon - such as the OpenGL implementation on your GPU - are actually at the root cause.
    -Noel

  • Why do my tabs become tiled windows without input from me? I have to double-click the tab to make the windows disappear, sometimes more than once. This is annoy

    This happens when I have several tabs. I'll click another tab and a tiled window appears with one window being the page of the tab and the other one the tab beside it. It's become quite annoying.

    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thanks!
    Curtis

  • Is there a way to make the wires disappear?

    My program has grown pretty big and now there are wires everywere. I remember that I had that same problem when I used Logic Works and the way to fix it was to give names to the notes and then the whole thing would be "wireless". Is there anything like that in LabVIEW?

    By feedback do you mean you need to retain values from a previous run to include in the present calculations? The way to do that in LV is with an uninitialized shift register. In terms of how to initialize that value the first time the code is run, there are many ways of doing that depending on what the code is doing and what the value is. There is a function that returns a boolean true the very first time the VI containing it runs. Sometimes you can look at the value itself and tell that it needs initialization. It all depends on the application.
    To learn more, here is a link to a message where another contributor lists some good places to start learning. In addition you can spend some time googling some of the terms I listed earlier (functional decomposition and information hiding are a couple other good one). In particular look for papers written by a man named Dr David L Parnas, to get you started see the attached document.
    The thing to remember is to come up with a good design first, because a good design is a good design regardless of what language you use to implement it. Good software - like a good bridge - is designed.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    parnas.pdf ‏85 KB

  • Bug- Dragging tabs out of safari sometimes makes the tab disappear - cool p

    Here's an interesting bug. I started playing a video in a tab and then I tried to drag the tab out of the window. When I let go of the tab the window stayed inside of the original safari window +but not in a tab+. I took a screenshot, notice that no tab is highlighted, so the window shown is not in any tab.
    The only way I could get back to it was by using ctrl-tab.
    http://img.skitch.com/20090903-p8qcnkbs2k1w7f6jx1npckmep9.png

    Here's an interesting bug. I started playing a video in a tab and then I tried to drag the tab out of the window. When I let go of the tab the window stayed inside of the original safari window +but not in a tab+. I took a screenshot, notice that no tab is highlighted, so the window shown is not in any tab.
    The only way I could get back to it was by using ctrl-tab.
    http://img.skitch.com/20090903-p8qcnkbs2k1w7f6jx1npckmep9.png

  • How can I get rid of the caret?

    Hi there!
    I use a JTextField to get data. I set its document with my own document. this overwrites the insertString method. that all works fine!
    now I want the caret not to be visible at any time and not to be possible to move by neither arrow keys nor the mouse. i just want an input field, which gets a character from the keyboard, place it after the last character and reacts after a certain number of characters in a spezial way(remove all displayed characters). how can I realize that?
    thanks a lot!
    Marcus

    Hi
    you can get rid of caret by changing its color with the background color of the TextField.
    <code>
    JTextField tf=new JTextField(20);
    tf.setCaretColor(tf.getBackground());
    </code>
    This makes the caret invisible,you can place in your insertString() method.
    zulfi

  • How do I make email inbox disappear when i rotate to portrait

    My email inbox does not dissapear when I rotate my ipad to portrait. Is there a setting that I've not checked?

    alanfromnewtownards wrote:
    ClayG
    Are you not getting your portrait and landscape mixed up?
    Yes! I guess it's too early in the morning for my brain. So sorry, folks! Please ignore my previous answer.
    In portrait mode, you can make the inbox disappear either by swiping to the left on the open email or by tapping on the Inbox button.

Maybe you are looking for

  • Excise Invoice postings in J1IIN for Cess as Paper Cess

    Dear All, Considering the aforsaid issue on priority. Issue is regarding the Export Sales Process. Pricing Procedure is not the same as normal exports. Here, in exports there is a component / duty which is termed as PAPER CESS (condition type JECP).

  • Music from External Hard Drive suddenly not playing...

    The other day I disconnected my external hard drive to use it elsewhere, plugged it back in later, then suddenly none of my songs located on it could be played on itunes... Funny thing is that if I right click and go "show in windows explorer" it tak

  • OS authentication in Oracle 10g via jdbc:oracle:oci

    I'm very much a newbie to Java / JDBC and I am trying, but failing, to connect with the database using OS authentication via jdbc, and hoping someone may help. My questions are: 1. Is OS authentication supported for jdbc:oracle:oci with Oracle 10g ?

  • Front Row Locking up

    Hello Front Row Support forum! I recently upgraded to Leopard (Much <3 for the new version of OS X) and I've actually started using Front Row. I really like the new look and it fits into my lifestyle more now to use it. Unfortunately though, Front Ro

  • JAXB issue

    Hello everybody, i'm working with a simple example of JAXB. It's an example from the Java Web Services Tutorial. I generated and compiled the classes from an xml schema file. But when i try to use them it gives me this error: javax.xml.bind.JAXBExcep