I think that this is a bug in text field!

Hi!
Steps:
1.create Frame
2.create text field (textFieldTest1) and add in frame
3.create text field (textFieldTest2) and add in frame.
4. show frame
5.enter some text in textFieldTest1 and stay here.
6.Minimize frame.
7.Open again frame
8.The caret is invisible in textFieldTest1. I double click in textFieldTest1 but caret don't show. I can enter text again in textFieldTest1 but caret is invisible. I press left and right arrows in textFieldTest1 and enter text, but caret is invisible.It's very confuse.
9.Click mouse in textFieldTest2
10.Click mouse in textFieldTest1 and caret is now visible.
I think that this is a bug in swing.
What are think about this?
Thank you.

I meant for you to include code that I could cut and paste and execute to see if I had the same problem on my machine. I had to play with the code you gave to get it to compile. Make it easy for me to test. Anyway I did get it to compile and again it did work for me. here is the code I ended up testing:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Main extends JFrame
     public Main()
super("Time");
setBounds(300, 200, 400, 200);
Container cont = this.getContentPane();
cont.setLayout(new GridBagLayout());
setDefaultCloseOperation(this.EXIT_ON_CLOSE);
JTextField textField1 = new JTextField(10);
cont.add(textField1);
cont.add(new JLabel("label1"));
JTextField textField2 = new JTextField(10);
cont.add(textField2);
cont.add(new JLabel("label2"));
setVisible(true);
     public static void main(String[] args)
          JFrame frame = new Main();

Similar Messages

  • Why can't we see the details of a picture or video taken with our iphone or Ipad? Detail like when it was taken the picture or when the movie was filmed. I think that this very very important for our memories.

    Why can't we see the details of a picture or video taken with our iphone or Ipad? Detail like when it was taken the picture or when the movie was filmed. I think that this very very important for our memories.

    Yes, I know that, but it was easier to see it on the Iphone self, like the other company phones. The name of the picture taken should be the date when it was taken.

  • When is Apple going to release an update to our software that will eliminate a thiefs ability once the phone is stolen to turn off the find my phone option without first entering the security code? I think that this would solve a ton of issues.

    When is Apple going to release an update to our software that will eliminate a thiefs ability once the phone is stolen to turn off the find my phone option without first entering the security code? I think that this would solve a ton of issues.

    It would be a voilation of privete laws of many countries
    Every attempt to fight "evil" have a backside likely the reason they have not don so yet
    In the country i live in if stolen i repport the imei number of the phone to the police and the have all carriers and carriers they work with in other countries block the phone from ever being used as a phone

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

  • Is it wrong for me to think that this is absurd?

    I went to the Apple Store at Easton (Columbus, OH) today to get my Macbook Air 13'' (one model back) battery replaced. I made an appointment for 2:30, got served at 3:45 (because I guarentee they were taking 4S buyers w/o appointments before me). It's still in warranty, but the battery has gone to crap. The "Genius" there kept asking questions like what is my usage, do I use flash (cause normal Facebook usage has flash, you know...), if my wifi was on, etc. He turned off all services, wifi off, dimmed the screen completely, and I was getting 3.5 hours of battery life on 98% charge. So they tried to run the Apple Service diagnostic connect to the demo network, alt boot, but their server was down. So he said he could replace my battery, but they didn't have it in stock, so they'd call me when the had to order it.
    The thing that irked me was that his "receipt/contract" thing says it will take 5-7 days for the replacement. 5-7 days...for a battery replacement? He said it would need diagnostics and stuff. Honestly, I work two jobs in tech (website management [requires CS5.5 daily] and computer repair [requires MS Office daily]) and am a full time student. Unless they are going to provide a replacement for me to use, I can't do it. I need it for both jobs and school, I don't have time to let them have my Air for 5-7 days to replace a dead battery.
    So am I wrong to think that's absurd? Especially considering that this website: http://www.apple.com/support/macbookair/service/battery/ says that it should be a same day repair with an appointment once the battery is in stock? I'd like my laptop to work as intended, but I don't have the time to give it. Honestly I'll wait in the store an hour or two for it to be replaced, rather than it sitting on a shelf at Apple for a week.

    Hi tjessberger,
    Sounds perfectly normal, to be honest. First off, the people who help you at the Genius Bar don't sell products and the ratio of specialists to Genius in a store is usually 4 or 5 (at least) to 1. To have an appointment at 2:30pm on a Saturday and only be 45-minutes late is actually pretty good, that's probably the worst possible time on the worst possible day of the week to try and make an appointment. Now, that's not your fault, in a perfect world you should have been seen right away but that's just not how that works at 99% of the stores that I've been to on a Saturday.
    Secondly, before arranging any sort of swap there's a series of usability and environmental questions that the tech needs to ask you. It's procedure, so the faster you can get through that part of the appointment then you can get on your way.
    Thirdly, the 5 to 7 day quote is normal and the usual quote. You're right, the battery is considered same day service. But as Carl indicated the battery is not in-stock and as such the same day rule doesn't apply. If you drop your machine off, it goes into a queue and it goes to the end of the line. If they order your battery today the earliest it arrives is Tuesday, that's at least 3 days right there. So while your repair might be a 15 minute job for someone that knows what they're doing that's just not how the service queue works at Apple Retail.
    The one-year limited warranty doesn't include a loaner why your machine is in for service, it is the responsibility of the owner to arrange a solution when your machine is in for repair. I'm surprised, if you're working two tech jobs that you don't have a work supplied machine or a second unit. You do all of your production work on just a MacBook Air?
    What we use to arrange for customers on "quick repairs" is that we'd arrange to order the part for you and then have you bring the machine back to perform the service once the part was in-stock. We'd offer either same day service, or while you wait service based on the nature of the repair, the volume that day and the time (on that day) you brought it in. That seems like a reasonable solution for this issue.

  • I think that I found a bug in the new iTunes 8.0 PC

    I don't know if this is a bug or not, but has anyone notice that when you click on an item "link" in iTunes and if your mouse pointer remains on the link that you just click on, that the page will not move to the link until you move your pointer off the link?
    My system:
    Vista 64bit
    AMD Athlon 3.2Mzh X2 64bit
    2gig ddr3 ram
    20gig sata hard drive

    Its not just you. It does this for me as well. In fact it does the same on some of the buttons as well.

  • Can someone confirm that this is a bug?

    Hey guys,
    I recently used the built-in DeNoiser audio plugin for a project I am editing. Almost immediately after applying the effect, Premiere CS5 crashed. Now that I think back, this has happened one other time after the effect was applied. To speak of, these are the only two crashes I've had with PP CS5. DeNoiser is a useful effect, and although I don't use it all the time, it definitely comes in handy in certain situations.
    Has anyone else experienced simalar behavior?

    Hey Todd.
    Yes, I'm using the latest version of Premiere (5.0.3), and am using it on a Windows 7 x64 system. To speak of, this didn't happen with CS4 on the same system, although I cannot be certain of this because CS4 crashed on me quite frequently regardless of whither this effect was applied.
    It doesn't instantly crash after the effect is applied. The crash occurs at seemingly random times, usually while playing the clip the effect was applied to.
    The following is a record of the crash in the event viewer:
    "Problem signature:
    P1: Adobe Premiere Pro.exe
    P2: 5.0.2.0
    P3: 4c731297
    P4: DeNoiser2.dll
    P5: 2.0.0.1
    P6: 4b040844
    P7: c0000005
    P8: 000000000006a8b1
    P9:
    P10:
    Attached files:
    C:\Users\Mitch\AppData\Local\Temp\WERC047.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\Mitch\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Adobe Premiere P_9ab33fbef7f5bcf1d6f55badda31669094f7ef2b_0f77d915
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: c2baa684-ead1-11df-94f2-001ec94ef47f
    Report Status: 0"
    I'll have to do some experimenting and try to gather more information for you to go on.

  • Is this a known bug (copying text freezes up APE)?

    I have had this happen to me several times now, and am now pretty sure what causes it:
    APE freezes up, becoming totally unresponsive. I can't even shut it down (both Organizer and Editor) via Windows Task Manager (Ctrl+Alt+Delete).
    What gets me to this juncture? When I try to rename an image, and have a series with the same base name (such as GoingOverNiagaraFallsInaBarrelOfMonkeys, as in:
    GoingOverNiagaraFallsInaBarrelOfMonkeys1
    GoingOverNiagaraFallsInaBarrelOfMonkeys2
    etc.
    ...and I copy the "base" portion via Ctrl+C -- voila! Everything stops dead in its tracks as if a 900-lb. Grizzly Bear in a bad humor swatted my CPU.
    Is this a known bug?

    when I select all the text in a description (FIle | Info, Description text box on first tab) and copy it, it freezes up (eventually it recovers, though).
    I can't reproduce that with my PSE 8.  Perhaps there's something specific about one or more of your photos that's triggering the problem -- attach one of the problem photos to your reply (use the Web form, not email), and I'll see if happens with my PSE 8.

  • Bug? Text field & Button are still visible when solid-filled rectangle is placed on top of them

    Adobe Live Cycle 7.1
    It cannot work when i tried to make the text field and button invisible without JavaScript:
    1. Create a text field with any default value and button.
    2. Create a filled color rectangle.
    3. Set the rectangle on top of all objects (right click it and select "bring to front")
    4. View in Pdf.
    5. Result:
    Text field's caption and border are invisible (covered by rectangle) ,but the text field's raw value and the button are visible.
    Is this a bug?

    It's difficult to tell. I can see what you're trying to accomplish but it's possible that Acrobat is giving priority to fillable fields over static objects (such as the rectangle) regardless of z-order (i.e. "bring to front", "send to back"...).
    You can make objects invisible without having to write any script by selecting the objects which should be invisible and setting the Presence property, on the Object palette's Field tab, to
    Invisible or
    Hidden - Exclude from Layout. The former means the objects won't be visible but they will still be a factor in the way in which objects are placed on the form while the latter means they're totally hidden from the form.

  • The "This connection is untrusted" screen pos up, and and when I press "I understand" no "add exception button appears. I think that the button's underneath some text; but firefox won't let me scroll down.

    It displays the following after I click "I understand the Risks":
    "If you understand what's going on, you
    can tell Firefox to start trusting this site's identification.
    Even if you trust the site, this error could mean that someone is
    tampering" But it doesn't show me the "with your connection." part and the "add exception button, and it won't let me scroll down.

    unfortunately the fiddler2 issuer in certificates might be a sign of unwanted software present on your pc that is intercepting secure network traffic. please go into the system control panel and uninstall programs like BrowserSafeguard, BrowserSafe, SafeGuard or other software that sounds suspicious and didn't get installed by you intentionally.
    <br><sub>reference: https://support.mozilla.org/en-US/questions/982532#answer-520145</sub>
    afterwards, run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • HT4847 There must be some way of finding out how much storage I'm currently using. One would think that this would easy but apparently not.

    Anyone know how to find out how muh iCloud storage 'm currently using?

    If you're on a Mac, open System Preferences, and open iCloud option.
    Or if you're on an iOS device, open Settings - iCloud - Storage
    You can see the Total Storage and the Available Storage.
    This should solve your question

  • Do you think that this desktop?

    http://www.bestbuy.com/site/HP+-+Factory-Refurbished+Pavilion+Desktop+/+AMD+Athlon%26%23153%3B+II+X4...
    Has any  expansion slots, Such as a PCI-Express.. Well.. Just a PCI- express. Thinking about getting it and a graphics card on the side

    Yes it has a pci express x16 slot and the power supply is 250watts.
    Crystal
    Superuser
    Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
    *Remember to mark your questions solved and click the star to give kudos to show your thanks!*
    While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
    My opinions do not in any way shape or form represent Best Buy's Official decisions.

  • HT203031 Why doesn't the "View my repairs" button on the main page present a list of cases? The latest one is presented along with a link to "Other Repairs" that then requires you to find the individual case number. I think that this site is ready for reh

    140130
    All 3 of my Apple IDs; "jdunker", "[email protected]", "[email protected]", have the same NEW password, as of January 30, 2014
    ===
    130525
    All 3 of my Apple IDs; "jdunker", "[email protected]",  "[email protected]", have the same NEW password

    MacBook pro 9.2 and I get mac os x maveriks

  • Please tell me that this is just dirt and not LED failing.

    I own Thunderbolt 27" 2012 http://store.apple.com/us/product/MC914LL/B/apple-thunderbolt-display-27-inch
    for few years now and this purple cloud seems like it is spreading.
    Do you think that this could help ?
    https://www.youtube.com/watch?v=ONCdGHe0Uxs
    Any help is appreciated!

    Could be some dust or could be LCD.  I have had both.  Like in the video removing the glass front panel is easy and then you can try to clean.  If the LCD is bad replacing is almost the cost of a new TBD.

  • Hope this is a bug in JDeveloper....... help needed....

    There's no reply for the following msg... i need help.... is this a bug in JDeveloper?
    Jdeveloper team(Visual Java editor) - anybody watching this?
    i have been waiting for the reply for the past 4 days, so
    Is anyone having suggestion, whether it will work or not? is there any additional feature for this? Every project is multilingual, not only my project, every project is supporting internationalization, so at design time it should support for resource bundle usage. am using Jdev 9.0.5 version, client side we are using swing, so i need a solution for this, does jdev supports this? if so whats d way? if it is not supporting y cant it be considered as a bug? it should be user friendly, so y this can be added as a new feature in the forthcoming version,
    waiting for ur suggestions, whatever it is juz explain,
    Thanking in advance...

    Hi,
    not sure why you hope that this is a bug?
    Swing does support internationalization and JDeveloper supoorts this. However, as usual in Swing, you have to develop it as tehre is no automated way for doing this.
    There is some help provided by ADF in that e..g. BC4J supports message bundles for translating Strings.
    See: http://java.sun.com/docs/books/tutorial/i18n/index.html
    Also, straight from the JDeveloper product page on OTN, though not directly Swing related
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/jdev10g_multilingual.pdf
    Frank

Maybe you are looking for