JFrame.pack() causes problems with jtabbedpane(making new tabs)and resizing

I have a JFrame with a JTabbedPane inside of it. Inside of each tab I put a JPanel with a JTextArea in it. When I create a new tab, I do something like textArea.requestFocusInWindow();
However, this will not work unless I do a frame.pack() right after I created the new tab and right before that line of code.
This in turn causes another problem. If I resize the jframe and then create a new tab, the window will snap back to the size it had before creating the tab. I assume this has to do with the pack() function, however nothing else I try will make the cursor blink in the JTextArea.
Is there a solution to this...either something to make the cursor blink or something other than the pack function to update the JFrame?
Thank you

This posting should help you out:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=581478

Similar Messages

  • My host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    my host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    There are several possible causes for this problem.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • Has anyone had any issue with opening a new tab and the address bar not connecting to websites in 33.1.1?

    I think ever since we moved to v33, I've been having an irritating issue that whenever I open a new tab that isn't connected to a website yet and try to enter a website address, it won't connect to ANY website. Doesn't matter if I hit Enter to try to make it go, doesn't matter if I click the right-pointing arrow button to make it go, doesn't work. I can go into a tab already connected to a website, type in a new website there and it'll create a new tab and take me to the new website, but not if I use new tab button.
    Anyone else had this issue? Any fixes?

    Sorry, that didn't help as I'm able to connect to websites, just not in a particular way.
    For instance, I am able to type in and connect to websites IF the tab is already in use with a website (i.e. if I were to type "yahoo.com" in the address bar of this tab FF would open a new tab and take me to yahoo.com) but not when it is a completely new tab.

  • BADI:problem with creating a new tab in BADI

    Hi
    I'm new to BADI's.
    i have a requriement to add a new tab in the MIGO transaction and add a field in that new tab .
    my Functional specification author is suggesting to use the BADI "MB_MIGO_ITEM_BADI" to create a new TAB .
    But i'm not find any function code availale in this BADI .
    Can anybody tell me how to use this BADI "MB_MIGO_ITEM_BADI" to create a new TAB .
    Also can anybody provide me any documentation available in designing a new TAB or new screen using BADI's ?

    Hi pawan
    Try this badi :   MB_MIGO_BADI  -
    (BAdI in MIGO for External Detail Subscreens)  as the name suggest ,
    If you want to add a screen in header level use : Method : PBO_header an code as :
        e_cprog   = 'ZMMPRM0001'.     """ Your screen created
        e_dynnr   = '1000'.                     "Your screen No
        e_heading = 'TEXT ID '(004).    """" Name of the screen to be created .
      ELSE .
        e_cprog   = 'ZMMPRM0001'.
        e_dynnr   = '1000'.                     "External fields: Display
        e_heading = 'TEXT ID '."(004).
    or if at item level
    u can use methid : PBO_DETAIL
    for item level screen creation . and code in the same maaner ..
    You can explore the remaning methods as per your requirements .
    Hope it helps ..!
    Regrads
    Swapnil P KAmble

  • I have problem with a blank new tab

    When I open "New Tab" (CTRL+T or just +) it shows me a blank page. Can I change it anyhow so it can be my Search Engine or something like that??? Pls???

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.

  • Problems with text box borders, tabbing and saving doc in Acrobat Pro 7.1.0

    When I view my form document in Acrobat Reader, there is a red border around several text boxes
    in which I've selected 'NO border'
    Also, I've selected 'column order' for tabbing, but tabs continue to function in order in which I inserted form item (text box, check box or radial button). Since I didn't insert these consecutively, tabs no jump all around the form instead of proceeding in order from top to bottm and left to right.
    I've checked for Mac Acrobat Pro updates and see that there are three  - 7.1.1, 7.1.3, and 7.1.4, and am downloading them for install.
    Do any of the updates fix these problems? Or how can it be fixed?
    On opening document in Reader, I also get a message informing that document cannot be saved with changes and must be printed, even though I've created it with fillable forms.
    Is there some setting for allowing document to be saved?
    I want to be able to have recipient be able to download form, fill it out, save changes, attach to email and return it to me.

    This has been a problem since version 8 on the mac. Acrobat 7 on the mac worked fine with the right side trim but not on the PC.
    We are still having this problem with Acrobat 9.4.0 on the Mac & PC.
    This has now been an issue for 2 versions of Acrobat Pro.(8 & 9)
    Being in Pre Press and having to constantly set the trim for jobs, this is now taking up too much time and costing money.
    Please fix this Adobe.
    and on another note. how hard would it be to display the trim (if set) next to where the page size is?
    If the trim is set it should display it! why should we have to go to document/crop pages>trim.
    Im in a busy Pre Press Dept and the amount of times you have to check a trim size is stupid.
    I always set prefs to display crop / trim / and bleed boxes and this helps but it should display it if its set.
    Thanks
    Hope this is resolved soon.

  • Korean language pack causes problems with Outlook email width

    This has been an ongoing problem for me for some time now and I'm hoping someone can provide a resolution to it.
    I had to install a Korean language pack in order to read Korean Word documents.  The problem is that after installing this language pack, it causes some of my emails to appear a lot wider than they should and wider than they appear for others receiving
    the same email.
    There seems to be a trend in that it happens with emails that contain Chinese or Japanese languages.
    I uninstalled the language pack and the problem went away.  Then recently I reinstalled the language pack and the problem returned.
    Does anyone know why this would happen and if there is any way to fix it without having to uninstall the Korean language pack?

    Well, I tried installing all updates (including optional ones), but that did not fix the issue.
    Any other ideas?

  • Problem with installing the new iTunes and quicktime PLEASE HELP!

    whenever i try to install iTunes 7 i keep getting this popup message. it has something to do with quicktime. please reply with any suggessions!! thank you.
    quicktime for windows
    could not open key:
    HKEYLOCALMACHINE/Software/Classes/QuickTimeP
    ayerLib.QuickTimePlayerApp/CLSID. Verifly that you
    have sufficient accesss to that key, or contact your
    support personnel.

    I have the exact same problem. Running Windows XP. Can't download the latest version of quicktime. Tried uninstalling old version of itunes and think I lost my entire music library. Did anybody solve your problem?
    whenever i try to install iTunes 7 i keep getting
    this popup message. it has something to do with
    quicktime. please reply with any suggessions!! thank
    you.
    quicktime for windows
    could not open key:
    HKEYLOCALMACHINE/Software/Classes/QuickTimeP
    ayerLib.QuickTimePlayerApp/CLSID. Verifly that you
    have sufficient accesss to that key, or contact your
    support personnel.

  • Problems with Itunes on new Iphone and I touch

    Hello
    When I try to use synch my Iphone 5 and my daughters Ipod Touch, I get an error message saying i need ITunes version 10.7 or later, so I go to download it but I get another error message "requires Mac OS X Version 10.6.8".
    I've checked and it seems my current version is 10.5.8. What are my options pls? , as when I do software updte check none are available.
    Thanks

    You will need to  purchase ios 10.6 and then install it on your computer.
    You can then update itunes

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • Problem with RoboHelp 6 (new purchase)

    Hi all,
    Well I have just purchased the latest version of RoboHelp 6
    and I opened my previous project (from RoboHelp X3) in the new RH.
    I managed to have everything working and everything was good for
    about a week (including command-line compilation and batch
    generates). However now when I open my project RH stalls. Sometimes
    it manages to open the project but I can never edit it. I don't
    believe this issue to have anything to do with my machine's specs
    and I am running RH on the local machine (where I have admin
    rights) as opposed to the network. I am a bit confused by this
    behaviour. Maybe I need a patch or something but I am unsure as to
    where to find one.
    Thanks in advance for any advice on this issue,
    darkagn

    I was having a similar problem this morning with RoboHelp 6.
    My project would open, but would immediatly lock up if I tried to
    do anything. I removed the KB927891 Microsoft update that I had
    just installed, restarted, and everything works fine now. (I got
    this idea because it was the only change I had made to my system
    and because Microsoft updates have caused problems with RoboHelp in
    the past.) The notes on the Microsoft website indicate that this
    fix is part one of a two-part solution, so I'm going to wait until
    the second part is posted in June and try the update again. It
    could be a fluke that this worked, but thought I would pass the
    information along.
    Audrey

  • GEARAspiWDM.sys causes problems with PlexTools.

    The unsigned driver GEARAspiWDM.sys (to be precise: upper filter) that you installed on my system cause problems with my DVD recorders (Px-716A and PX-760A). First thing I notice is a longer responce time (delay). The big problem is that there are faults while trying to erase or burn DVD media (I mostly use rewritable disks). I love iTunes, but just keep in mind why using upper filters and/or unsigned drivers is a very-very bad idea! The least you can do is to ask the user if he/she wants to install this driver.
    I found my way to uninstall the driver manually. Later I found the uninstaller from Gear Software:
    http://www.gearsoftware.com/cfknowledgebase/articledisplay.cfm?articleid=295
    Now iTunes will alert me that it cannot burn disk on every startup. You know what? I don't care about this future! So don't bother me every startup!

    We know about the large file support issue (though this given version of it looks new to me) and work on it.
    There is no intent to set __GNUC__ for us, nor we recommend users to define __GNUC__ with our compiler.
    However we do have (another) solution for this issue and it will be available in one of the upcoming Sun Studio eXpress releases.
    regards,
    __Fedor.

  • Upgrading to 10.5 causes problem with Entourage

    I have a problem which I believe to be a Mac OS problem even though it affects Entourage v.X. After upgrading the OS from 10.4 Tiger to 10.5.8 on a PowerPC Mac, Entourage crashes when opening mail that contains complex html. This only happens with the main user account and never happened before the upgrade. Email that only contains text and URL links opens OK. Logging out and back in to a new User, I am able to open and view the same emails that caused problems with the main user. 

    Generally when an application crashes in one account but it does in another account that indicates that something in the account where the application crashes is corrupt.
    You have two choices then. You can either find out where the corruption is located and repair it or if that is too bit of job you can switch accounts.
    Allan

  • Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?

    Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
    Using 10.6.8 on MacBook Pro
    Mikeaaa

    I am running Snow Leopard. Transferring the same texts to TextEdit has no problems, so this is a Pages problem, I think.  Corruption of Times New Roman and Arial fonts, I suspect, but where? and what do I do about it? I just need to be pointed to a source of advice, I think.
    Thanks
    Mikeaaa

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

Maybe you are looking for

  • RE: Images not displaying...

    I am a very novice user of RoboHelp and inherited maintenance of the files from a source who left the company.  We use Team Foundation Server to store source files and Harvest to publish the files; however, in the last week I noticed new images added

  • Modeling ProComp in ESR

    Hi, I am new to modeling in ESR and would like to ask a basic question. When I am building a ProComp model, I select a Business Object and subsequently click on the "Operation" icon to model a service operation. At this time, two options appear. They

  • Indesign says file damaged can not be recovered HELP!

    Hello, I just tried to open a very important file and the resultant dialog box says "Can not open file. File damaged. Can not be recovered." the file has all of my important accounting data in it. Does any one have any alternative ways for opening th

  • Deleting or clearing signed application breaks WebStart

    Possible bug -- can anyone confirm/solve? 1. Sign jars for application with Sun's jarsigner. 2. Create .jnlp file (all-permissions); setup MIME type, etc. 3. Download and run app -- get security warning message. 4. After running app one or two times,

  • Script Activity Behavior

    Hello. I am a newcomer to BPM and i have a very simple question: Is it possible to associate data to a specific element within a process data object? I create a script activity and i want define a specific element (for exemple the creator user from a