JScrollPane does its job until I minimize the GUI...

Im adding a JScrollPane onto a JTextArea which works fine and scrolls vertically when there are multiple lines of text. However, when I minimize the GUI, or switch from the current page to another (using some radio buttons), the ScrollPane isnt doing its job as the whole GUI container kind of 'stretches' to accomodate the multiple lines of text. Hope Im making sense!
Im using TableLayout to add the JTextArea to another JPanel and the JScrollPane to that JPanel and onto the JTextArea, as shown below:
panel7.add(dNameInvoiceAddressField, "0, 14, 1, 16, f, b");
panel7.add(new JScrollPane(dNameInvoiceAddressField), "0, 14, 1, 16");
Any help greatly appreciated.
Thanks

any ideas...?

Similar Messages

  • Firefox freezes until I minimize the window, then restore it. Why?

    Each time I use Firefox now I cannot get it to respond to the mouse until I minimize the browser, then restore it. It will then work for a few selections within a window in the browser, then freeze again. I had even thought it might be the mouse, but this does not happen if using IE, or any other application.
    Since this PC is an old, spare, and only has a 15 GB HD with Windows XP Pro upgraded from ME I am using version 3.5.9. Firefox browser. Until I am able to repair my primary PC with a replacement motherboard, I need this one working properly.
    Any suggestions?

    Yeah I'm seeing this as well. A force quit and relaunch seems to solve the problem for a while.
    IMHO the app has just gone downhill in the last few years. Useful tools like browser history from the back button are hidden / rendered useless (click and hold doesn't work so well from a track pad), and it's performance just isn't what it used to be.

  • Why can't we disable auto-reloading without having the nag bar every time it does its job?

    Blocking page reloading (or auto-refresh) and being "warned" about a blocked page reload, should be two, separate items in Prefs, or config. Period. If someone wants to be "alerted" or "warned" every time their settings are acted-upon, so be it, they can choose to be warned. As it stands, the only way to block the annoying auto-refresh, is to choose the annoying nag.
    Where is the logic in that? What next? Maybe we should have an alert every time a new tab or window opens, that says, "Firefox just loaded a page you requested."
    Why not follow the structure, already established, over and over, in Firefox's preferences, whereby a user can make one choice, and then there are sub-items that can also be chosen, or not chosen? (i.e., 1-Accept cookies from sites (check, or no check), a) Accept third-party cookies (select from Always, From-visted, or Never)?

    hello, this is a primarily community-run support forum so it's probably not the right place to request features (we cannot implement any features & devs won't read here).
    please either use https://input.mozilla.org/feedback for general feedback or if you feel that it's a missing feature in the browser file a bug at bugzilla.mozilla.org.

  • Tecra M5 - Toshiba Power Saver not doing its job properly

    Hi,
    After looking for some time for a tool to silence my Tecra M5 I found a seemingly nice app called Toshiba Power Saver. Unfortunately this tool doesn't seem to be working properly. I played with the [Cooling Method slider|http://img200.imageshack.us/img200/8008/powersaver.jpg] (click to see an image) and here is how it works.
    The Cooling Method can be set to one of four options: Battery Optimized, Performance, Maximum Performance, and Cooling Optimized, where the first one is supposed to be the quietest, and the other ones more and more noisy.
    Let's assume that the cpu fan is initially spinning at a high speed and I'm not doing anything on my laptop. I move the slider to Battery Optimized setting, click on Apply and the fan (instantaneously) slows down (yay!). Then I need to do something power hungry for a moment and eventually the fan spins up to the noisy level. I then do nothing at all again but the fan stays like that *forever*. The cpu is as cold as ice, the air being blown out could freeze your fingers, but the fan is spinning like crazy waking up my neighbours across the road.
    Am I really sure the cpu is cool? Yes. Why?
    Because when I move the slider to Performance setting now and click Apply the fan slows down (right away) and stays like that until I start working on something again. Then I stop doing what I was doing and the fan keeps spinning *forever* again.
    So then I change the Cooling Method to Battery Optimized setting back again, click on Apply and the fan slows down.... and so on and so on, stuck in the vicious circle.
    The key to the success here is keeping pressing the Apply button, which the Power Saver application should be doing from time to time and not me, and not forgetting what it's here for.
    What's wrong with that app? Is there any fix available (or an alternative)?
    The version I have is 7.11 and runs under XP Pro SP3.

    Hi Feliks,
    Thank you for your reply. I have a Tecra M5 notebook not a Portege, though.
    Unfortunately I cannot agree with most of what you have said. Either there is something wrong or this software is just useless. It is quite unlikely that there is something wrong as I had exactly the same laptop before and it was as noisy. That to me would be too much of a coincidence.
    Before then I had a dual core notebook with Philips sticker on it (and that was all Philips's input) in even smaller enclosure (12") and no fancy software in it. In that laptop the fan was running once every several minutes while idle and as soon as it cooled down the cpu it stopped - a complete silence. And this is how it should be. I've just read a review of one HP laptop: "During normal use I almost never hear the hard drive or the fan. In fact the fan really only comes on when playing games." I'd like mine to be like that too.
    Here I play music in Winamp at the processor speed set to 1 (out of 6, lower means slower) and cooling set to a quiet setting (after help: "The system is cooled by slowing CPU speed, and the fan is started only when neccesary."), and after the fan starts it then never (I don't exaggerate here) stops spinning and eventually keeps blowing out cool air. The CPU usage varies between 0 and 5%. I mean, that's not normal to me. My phone can do the same job and it doesn't have a fan at all. Not to mention that Intel CPUs will not let themselve get fried. So why?
    I sold the mentioned Philips laptop to move on to some decent brand and I am *very* disappointed. It's a shame, as this particualar model would be perfect for me, I like everything about it, but the noise is just unbearable, it's embarassing to take this machine to a library. And the software... well, I will stop here and wait for some other Tecra M5 users to share their experience.
    In the meantime I'll try with Toshiba support, as you advised.
    Thanks!

  • HT201436 voice mail management is really bad with the newer version of software for my iPhone5  my old version deleted VMs instantly but now my phone freezes up and at times the delete button does not work until i set the phone aside for up to a minute.

    I am having a hard time deleting unwanted voice messages with my new phone and software as compare to my iphone4 which was as easy as clicking on the delete button.  VMs would delete instantly.  with my iPhone 5 7.0.4 software ver the first one or two delete immediately then the phone freezes up for several seconds making the process frustrating.  I am wondering if either I am doing something wrong or if there is a fix out there.  its a giant step backwards for Apple.

    I am having a hard time deleting unwanted voice messages with my new phone and software as compare to my iphone4 which was as easy as clicking on the delete button.  VMs would delete instantly.  with my iPhone 5 7.0.4 software ver the first one or two delete immediately then the phone freezes up for several seconds making the process frustrating.  I am wondering if either I am doing something wrong or if there is a fix out there.  its a giant step backwards for Apple.

  • GROUP BY Not doing its job

    Hey,
    On running the following query
    SELECT a."VISA_COUNTRY" AS "COUNTRY",
    ROUND(((select COUNT("PSA_VISA_INFO"."VISA_EMP_ID") FROM "PSA_VISA_INFO", "PSA_RESOURCE_MANAGER" WHERE "PSA_VISA_INFO"."ACTIVE_FLAG" = 'Y' AND "PSA_RESOURCE_MANAGER"."ACTIVE_FLAG" = 'Y' AND "PSA_RESOURCE_MANAGER"."ROW_ID" = "PSA_VISA_INFO"."VISA_EMP_ID" AND "PSA_RESOURCE_MANAGER"."WORK_GROUP" = 2) /(SELECT COUNT("PSA_RESOURCE_MANAGER"."ROW_ID") FROM "PSA_RESOURCE_MANAGER" WHERE "PSA_RESOURCE_MANAGER"."ACTIVE_FLAG" = 'Y' AND "PSA_RESOURCE_MANAGER"."WORK_GROUP" = 2)*100),2)AS "PERCENT" FROM "PSA_VISA_INFO" a, "PSA_RESOURCE_MANAGER"
    GROUP BY a."VISA_COUNTRY"
    the output I am getting is
    Country Percent
    COUNTRY1 12.23
    COUNTRY2 12.23
    COUNTRY3 12.23
    12.23 is the value that is returned when the query is run without the group by clause. However we need the percentage country wise...
    furthermore this query did not initaill run and kept throwing up the error Invalid GROUP BY.. after adding another GROUP BY condition it started to show this output.. on removing the 2nd group by condition the same out is being given..
    i also tried logging out of the application and logging in.. it is still giving the same output
    Your inputs would prove invaluable right now ..
    Thanks,

    What happens if you make the select an inline view and then group off that? like:
    SELECT country,
           PERCENT
      FROM (SELECT a."VISA_COUNTRY" AS "COUNTRY",
                  ROUND(((SELECT COUNT("PSA_VISA_INFO"."VISA_EMP_ID")
                            FROM "PSA_VISA_INFO",
                                 "PSA_RESOURCE_MANAGER"
                           WHERE "PSA_VISA_INFO"."ACTIVE_FLAG" = 'Y' AND
                                 "PSA_RESOURCE_MANAGER"."ACTIVE_FLAG" = 'Y' AND
                                 "PSA_RESOURCE_MANAGER"."ROW_ID" =
                                 "PSA_VISA_INFO"."VISA_EMP_ID" AND
                                 "PSA_RESOURCE_MANAGER"."WORK_GROUP" = 2) /
                        (SELECT COUNT("PSA_RESOURCE_MANAGER"."ROW_ID")
                            FROM "PSA_RESOURCE_MANAGER"
                           WHERE "PSA_RESOURCE_MANAGER"."ACTIVE_FLAG" = 'Y' AND
                                 "PSA_RESOURCE_MANAGER"."WORK_GROUP" = 2) * 100),
                        2) AS "PERCENT"
             FROM "PSA_VISA_INFO" a,
                  "PSA_RESOURCE_MANAGER")
            GROUP BY countryActually on second thought you really have a cartesian - why is PSA_RESOURCE_MANAGER in the from clause if you aren't joining it?

  • Every since I got my iphone4 out of recovery mode (stuck on screen with  usb and itunes), now everytime i plug up my iphone to computer it asks me to restore (i did several times) but that all its doing, its not even giving me the option to sync my music

    every since i got my iphone out of recovery mode (stuck on screen with itunes and usb cord) by restoring it, NOW every time i plug my iphone it only asks me to restore my iphone (i did this several times). It will not even give me the option to sync my music back...this is extremely frustrating. Please help

    so i cant sync music or apps HELP

  • What is the difference in the System Event triggers: Any queue limit set to zero and System queue reached its job limit

    My co-worker and I are not sure what the difference between Any queue limit set to zero and System queue reached its job limit are in the System Events.

    Hi jlayton,
    System queue limit is the sum of all queue limits you have defined. For example, if you have a system queue limit of, say, 100 -- queue A has 50 jobs active, and queue B also has 50 jobs active, then you will receive an alert System queue reached its job limit since it is set to 100.
    Any queue limit set to zero. Note, this may also include the System queue. For example, if you want to gracefully stop Tidal, you may want to set system queue = 0 so that there are no active jobs. When you do this, you will receive an alert queue limit set to zero.
    BR,
    Derrick Au

  • When opening fox or any program a help pop up for that program keeps popping up until I close the program( fox, internet explore,...AVG etc )....Can anyone help me get rid of this?

    Everytime I turn on my computer a help pop up comes up.When opening any program Fox browser, internet explorer, AVG, etc a help panel opens up. It does not stop until I close the program. I have run AVG and Spybot and it does not fix it.
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)

    Erin I am sorry you are facing difficulty downloading the Creative Cloud software.  It can be frustrating when you do not have access to high speed stable Internet.
    You can attempt to download the base installers and updates by following the directions listed at:
    Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools
    All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    You may want to attempt to utilize some form of download management as the main issue seems to be the stability of your connection.
    There is not currently a method to resume downloads within the Creative Cloud Desktop application.  There is download management included though it may not be enough to compensate for the current Internet connection.  If you are curious you can find additional details on how to resolve download errors at Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.

  • FF 3.6.8 hangs until I move the cursor

    Just upgraded to 3.6.8. Now, when clicking on a link, FF does not respond until I move the cursor away from the link. This happens every time I click on a link or a menu item within FF. Usually I need to move the cursor out of the FF main window into the menu area or switch to another program to get FF to load the new link.
    == This happened ==
    Every time Firefox opened

    Delete ''downloads.sqlite'' (plus ''downloads.rdf'', if it exists) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    See http://kb.mozillazine.org/Unable_to_save_or_download_files#Manually_delete_download_history
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window
    See http://kb.mozillazine.org/Resetting_preferences

  • How to make a method sleep without affecting the responsiveness of the GUI

    Hi,
    I want to make a method sleep for a few second before executing the rest of its body. Apparently Thread.sleep(10000) doesn't do the job as it makes the GUI non-responsive.
    Any advice would be deeply appreciated.
    Thomas

    Here's an example:
    package tjacobs.ui.ex;
    import java.awt.Color;
    import javax.swing.Icon;
    import javax.swing.JLabel;
    import tjacobs.ui.util.WindowUtilities;
    * @author tjacobs
    public class Blink extends JLabel implements Runnable {
         public static final long DEFAULT_TIME_LENGTH = 1000;
         private long mTimeLength = DEFAULT_TIME_LENGTH;
         private String mLabel;
         private Icon mIcon;a
         public void run() {
              mLabel = getText();
              mIcon = getIcon();
              try {               
                   while (true) {
                        Thread.sleep(mTimeLength);
                        String current = getText();
                        if (current.equals(mLabel)) {
                             setText("");
                             setIcon(null);
                        else {
                             setText(mLabel);
                             setIcon(mIcon);
                        repaint();
              catch (InterruptedException ex) {
                   ex.printStackTrace();
              finally {
                   setText(mLabel);
                   setIcon(mIcon);
         public Blink() {
         public Blink(String arg0) {
              super(arg0);
         public Blink(Icon arg0) {
              super(arg0);
         public Blink(String arg0, int arg1) {
              super(arg0, arg1);
         public Blink(Icon arg0, int arg1) {
              super(arg0, arg1);
         public Blink(String arg0, Icon arg1, int arg2) {
              super(arg0, arg1, arg2);
         public void setBlinkTime(long time) {
              mTimeLength = time;
         public long getBlinkTime() {
              return mTimeLength;
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Blink b = new Blink("Hello World");
              b.setBackground(Color.RED);
              WindowUtilities.visualize(b);
              b.setFont(b.getFont().deriveFont(24.0f));
              b.run();
    }

  • Hiding the GUI to system tray or background

    I want to write an alarm scheduler GUI which will continuously run on the system, both Windows and Mac. Here are the tasks I need to accomplish:
    1) When the user clicks on the close window or "X" sign, I simply want to minimize the gui to sys tray in case of Windows, or push it to background in case of Mac (somehow hide the GUI from the screen in both cases).
    2) Another requirement is that if the user starts the program from desktop by clicking on an icon, the program should check to see if an instance of itself is already running, and if so, load the running instance. And what i mean by that is to bring the GUI back to screen. If the program is not already running, start a brand new instance of it.
    Any help would be much appreciated.

    Don't cross post , please!
    Answered here: http://forum.java.sun.com/thread.jspa?threadID=5167315

  • My ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    my ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    - Charge the iPod for half an hour.  Then reset the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - if still not working, connect to your computer. If iTunes sees the iPod, restore the iPod.
    - If still problem, place the iPod in recovery mode and then try to restore the iPod.  For recovery mod see:
    iPhone and iPod touch: Unable to update or restore

  • Does iTunes match need to locate the actual files or just see its record in your library database? I am currently traveling in US and I have US and Australian iTunes accounts. But all my music files are on a hard drive in Australia.

    Does iTunes match need to locate the actual files or just see its record in your library database? I am currently traveling in US and I have US and Australian iTunes accounts. But all my music files are on a hard drive in Australia. Can I start using itunes music match while I am travelling without the actual music files attached to my itunes?

    In your situation I strongly recommend you read over that KB article. The international iTunes Stores are not cross-compatible.
    My understanding of how it would work is that when activating iTunes Match on your US Store account, any songs you have in your iTunes Library that were purchased from the AUS Store account will NOT be matched. As I understand it, those files will be uploaded (which means you need the files on a local HDD). I also do not think it is possible to have iTunes Match active on more than one store ID on the same computer. But since iTunes Match is not available internationally yet, that point is moot for the moment.
    To be honest you might want to wait until the service is available internationally so you can guage how will it will serve you.

  • When I turn on my ipad2 the volume box appears and does not go away until i hit the volume button on the side and the increase volume button does not seem to funtion only the lower section does?

    I need help. I got an ipad 2 for Christmas and the volume box appears every time I turn it on and it won't go away until I hit the side volume button.  I also realized that the upper portion of the volume key does not seem to work properly.  Any solutions?

    i face totally similar problem so i think its a software flaw. but mine got on quite a long time.
    what should i do, i dun like going to the store in exchange for a refurb one

Maybe you are looking for