Slowness in repainting and scrolling

OK. I probably know everything about repainting and paint that you know. Just trust me there :). so this isn't a newbie "why is my redraw slow" question. I am interested to hear from anyone who has noticed this or who, after reading this, notices that it explains their situation.
First I'll give you the symptom, then I'll give you the cure for the symptom then I'll ask about the disease, then present some evidence that it's not such a simple problem.
Symptom- very slow redrawing and scrolling.
Cure- stop running certain other programs which are essentially non-malware TSRs (Terminate and Stay Resident) programs. In my particular case, its FastStone's capture utility but I am pretty sure it's not specific to that program.
The disease- it only manifests itself while doing plain old launches from the development environment - in other words, write any simple GUI app in your development environment and launch it while running the TSR, as opposed to say, java programs like IntelliJ or Netbeans which have full installers etc. It does effect FreeMind however.
Some clues:
I have to say it's not the amount of memory, since the smallest GUI tester program run via a PSVM (public static void main) will elicit the effect and anyways my machine has a disgusting amount of RAM.
The effect of closing (or opening the TSR) is instantaneous. There's a clear cause and effect at work.
It does not effect Netbeans that I can tell nor IntelliJ (just to stay concrete). It devastates FreeMind and any stupid little GUI tester, as I said.
It does not effect non- Java programs.
So here is my thinking. Suppose there's something that windows programs can tap into- some resource, function call, whatever, that has the side effect (MS would never do this deliberately) of really undermining the Java VM in some way or forcing resources away from it.. it feels like a resource starvation scenario of some sort-- either CPU or RAM or thread priority or whatever.
On top of the why does this happen question, there's the why are some Java programs immune question. It makes me think there's something about the way those programs are installed or launched that's different from the plain old PSVM that makes them immune. AFAIK, PSVM is how things are ultimately launched in Java, period, after all the scripts and whatever have run.
So I am asking
does anyone notice this themselves?
is this a well known problem that other people know the solution to and understand?
now that I've described it in the way I have, does it shed light on any mysteries that anyone else has?
Really just trying to spark a discussion / line of investigation.
many thanks.

So here is my thinking. Suppose there's something that windows programs can tap into- some resource, function call, whatever, that has the side effect (MS would never do this deliberately) of really undermining the Java VM in some way or forcing resources away from it.. it feels like a resource starvation scenario of some sort-- either CPU or RAM or thread priority or whatever.
I love a good conspiracy theory as much as anyone, and MS being the butt of the folly makes it even better, but I don't think so. I have not noticed that my Java applications over the last 10 years have been affected any more or less than any "native code application" (such as those developed in C/C++ or .Net and compiled specifically for the MS environment.
On top of the why does this happen question, there's the why are some Java programs immune question. It makes me think there's something about the way those programs are installed or launched that's different from the plain old PSVM that makes them immune. AFAIK, PSVM is how things are ultimately launched in Java, period, after all the scripts and whatever have run.
I would have to say, some Java applications are immune probably because their structure is better for that specific environment.
So I am asking
does anyone notice this themselves?
My system degradations seem to be non-discriminatory and even several of the MS products suffer way more than any of the Java based applications.
is this a well known problem that other people know the solution to and understand?
now that I've described it in the way I have, does it shed light on any mysteries that anyone else has?
Not really, the MS bloat-ware that I run seem to suffer the symptoms you have described too. As do other companies' products equally.
I had part of the problem explained to me one time by a Senior Engineer from Digital, concerning OLE: You have a cooperative interface standard that asks one company to expose their proprietary interfaces so other companies can gain from their use. Not everyone will share nor will what they share always be totally accurate. It's just not viewed as being in their best interest to give it all away.

Similar Messages

  • Contacts are slow to load and scroll, 5 second delay or longer!

    Contacts are slow to load and scroll, 5 second delay or longer! Im very frustrated with my iphone 3g! Contacts are so slow I cant believe it. Also the time it takes to go from contacts to the home screen is slow. Whats the fix? HELP~!

    I've also seen the delay - ever since I got my 3G phone. Update 2.0.1 was said to help this, but I think it's more affected by apps on the system, and how often you turn the phone off. Still not enough to really bother me, but wish it was faster. Hopefully another update will help. I'm sure it doesn't help that I have 2 different email accounts (1 is pretty big, lots of data ) and the fact I have almost 1000 contacts in mine.

  • MBP 2013 slow after Yosemite and scrolling delayed?

    Hi all,
    My MBP is has been slow since updating to Yosemite and along with that there is a lag whenI scroll through anything. Any help please?
    Problem description:
    MBP 2013 slow after yosemite
    EtreCheck version: 2.1.2 (105)
    Report generated 13 December 2014 08:27:07 GMT
    Hardware Information: ℹ️
      MacBook Pro (Retina, 13-inch, Late 2013) (Verified)
      MacBook Pro - model: MacBookPro11,1
      1 2.4 GHz Intel Core i5 CPU: 2-core
      8 GB RAM Not upgradeable
      BANK 0/DIMM0
      4 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      4 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en0: 802.11 a/b/g/n/ac
    Video Information: ℹ️
      Intel Iris -
      Color LCD spdisplays_2560x1600Retina
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 25 days 3:58:17
    Disk Information: ℹ️
      APPLE SSD SM0256F disk0 : (251 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 249.77 GB (160.33 GB free)
      Encrypted AES-XTS Unlocked
      Core Storage: disk0s2 250.14 GB Online
    USB Information: ℹ️
      Apple Internal Memory Card Reader
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/VirtualBox
      [loaded] org.virtualbox.kext.VBoxDrv (4.3.14) [Support]
      [loaded] org.virtualbox.kext.VBoxNetAdp (4.3.14) [Support]
      [loaded] org.virtualbox.kext.VBoxNetFlt (4.3.14) [Support]
      [loaded] org.virtualbox.kext.VBoxUSB (4.3.14) [Support]
      /System/Library/Extensions
      [not loaded] com.devguru.driver.SamsungComposite (1.4.20 - SDK 10.6) [Support]
      /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
      [not loaded] com.devguru.driver.SamsungACMControl (1.4.20 - SDK 10.6) [Support]
      [not loaded] com.devguru.driver.SamsungACMData (1.4.20 - SDK 10.6) [Support]
      [not loaded] com.devguru.driver.SamsungMTP (1.4.20 - SDK 10.5) [Support]
      [not loaded] com.devguru.driver.SamsungSerial (1.4.20 - SDK 10.6) [Support]
    Launch Agents: ℹ️
      [running] com.oracle.java.Java-Updater.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.ea.origin.ESHelper.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
      [loaded] com.oracle.java.JavaUpdateHelper.plist [Support]
      [not loaded] org.virtualbox.startup.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.google.keystone.agent.plist [Support]
      [invalid?] org.virtualbox.vboxwebsrv.plist [Support]
    User Login Items: ℹ️
      uHD-Agent UNKNOWN (missing value)
      uHD-Agent UNKNOWN (missing value)
      CheatSheet UNKNOWN (missing value)
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      BetterSnapTool Application (/Applications/BetterSnapTool.app)
      Google Drive UNKNOWN (missing value)
      BACKUPMAC UNKNOWN (missing value)
      Facebook UNKNOWN (missing value)
      Google Chrome ApplicationHidden (/Applications/Google Chrome.app)
      uTorrent Application (/Applications/uTorrent.app)
      Plex Media Server Application (/Applications/Plex Media Server.app)
      fuspredownloader ApplicationHidden (/Users/[redacted]/Library/Application Support/.FUS/fuspredownloader.app)
      KiesAgent UNKNOWNHidden (missing value)
    Internet Plug-ins: ℹ️
      FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
      QuickTime Plugin: Version: 7.7.3
      Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
      Default Browser: Version: 600 - SDK 10.10
      SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 [Support]
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Support]
      JavaAppletPlugin: Version: Java 7 Update 60 Check version
    User internet Plug-ins: ℹ️
      BlueStacks Install Detector: Version: Unknown
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
      Java  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 249.77 GB Disk used: 89.44 GB
      Destinations:
      BACKUP [Local]
      Total size: 28.67 GB
      Total number of backups: 0
      Oldest backup: -
      Last backup: -
      Size of backup disk: Too small
      Backup size 28.67 GB < (Disk used 89.44 GB X 3)
    Top Processes by CPU: ℹ️
          3% WindowServer
          1% fontd
          0% Plex Media Server
          0% AppleSpell
          0% launchd
    Top Processes by Memory: ℹ️
      172 MB Finder
      155 MB softwareupdated
      146 MB Google Chrome
      112 MB installd
      103 MB mds_stores
    Virtual Memory Information: ℹ️
      1.60 GB Free RAM
      4.45 GB Active RAM
      582 MB Inactive RAM
      1.34 GB Wired RAM
      229.77 GB Page-ins
      114 MB Page-outs
    Diagnostics Information: ℹ️

      3.47 GB Page-outs
    You are over working your RAM. Your machine should be able to take more RAM.
    The 2 places I’ve seen recommended most to buy reliable RAM are below. I have purchased RAM several times from Other World Computing and have always been very satisfied with the product and service. They have on-line instructions on how to replace the RAM. OWC has also tested RAM above what Apple states is the maximum. I now have 6GB installed on a machine supposedly limited to 4 GB.
    Crucial
    Other World Computing
    Activity Monitor - Mavericks  also Yosemite
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy

  • After web page finish, mouse movement and scroll up down very slow.

    After web page finish loading,both mouse movement and scrolling that page is very slow.
    I compare the same page on MS internet explorer and have no problem.
    p.s. I'm using intel core 2 dual on 4gb ddr3 windows vista 32bit.
    == URL of affected sites ==
    http://www.sanook.com

    Thanks for both of these answers. I am finding that I do not
    like the totally manual method all that much (but it does work).
    Using the PrintScreen-before-and-after-each-action method seems a
    little better for me. Either method requires way too much editing
    for a simple "let me show you" movie. I have moved on to version 3
    since it seems to behave a little better.
    I think it is odd how sometimes Captivate puts an action
    (like a mouse click) on a background from *two* slides previous.
    Why would it ever go backward - especially skipping over the
    previous slide to get an even older screen. If I have forced a
    screen capture, you would think it would stay with that.
    I realize that I am not using Captivate where its strengths
    seem to be (eLearning) but there must be a lot of people capturing
    demos of web-based material. Does everyone have this
    problem?

  • Since I've updated my iPad to iOS 6 it's running a lot slower especially when I scroll up and down and takes ages to load up on the App Store I know they got glitches but are they gonna be sorting this out as well ?

    Since I've updated my iPad to iOS 6 it's running a lot slower especially when I scroll up and down and takes ages to load up on the App Store I know they got glitches but are they gonna be sorting this out as well ?

    Hi!
    I am also having issues with the device since updating to IOs 6. The time between clicking an icon, i.e. a picture, and the load of that picture takes longer enough to notice it. It did not happen before the update.
    I am also having problems with some applications, specially the Facebook application. When I click on my picture in the right bar of the app, it promps a window that ask me for share my location, etc.. and get freeze there.
    Regarding reseting the device, already done. It did not helped.
    Also, SIRI is very nice, but sometimes it stop working and I have to re-start the device in order to being able to use SIRI again. When it happens, it looks like SIRI is sending the information, but does not do anything after.
    It is understandable that they require some time to get the new IOs version working properly, but I dont like to be a Beta tester.

  • Problem with window repaint and scrollbars in edit mode (LabVIEW 8.0.1)

    I am running LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I ran into a strange problem about 5 months ago.  The front panel window - in both edit mode and run mode - stopped repainting itself on the right side which is most visible when you scroll up and down, but also visible with overlapping windows.  Coincident with the repaint problem, both scrollbars look disabled with greyed-out arrows and no boxes in the bars that you can click and drag to scroll the window.  The scrollbars still partially work if you hover the mouse over them and roll the mouse wheel but clicking and dragging doesn't work. 
    The front panel has lots of controls and indicators including tab-control containers and is larger in the horizontal and vertical directions so both scrollbars should be active.  But I deleted all elements on the front panel and everything in the block diagram and the problem persists.  So the problem is not directly related to some control/indicator display.
    I saved the simple VI with this problem (using a wide text line and a tall rounded box to test), then created a new VI and copied the two elements to the new VI.  This new VI does not have the repaint and scrollbar problem.  The two VIs differ slightly in memory usage and in revision number (the bad one is revision 1785 and the good one is revision 3), but otherwise the two VIs are identical.  I attached both VIs to this posting.  When you first open the bad VI, you'll see the disabled scrollbars whereas the good VI has active scrollbars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's fine when you first open the VI, click on another window, then click back on the VI window and try the mouse wheel again.  This clicking-away-and-back always causes the repaint problem for me.  I tried the VIs on two different computers both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.
    Here's what I discovered from troubleshooting with the simple VIs:
    * scrollbars always disabled
    * repaint problem in main window for window widths larger then 680 pixels
    * repaint problem in main window menu toolbar for widths larger than 646 pixels
    * entire window becomes disabled for window widths larger than 1348 pixels
    * can repaint window by minimizing and restoring, but only repaints that one time
    * scrollbar boxes sometimes flicker into view but then disappear
    * scroll left and right by hovering mouse over horizontal scrollbar and using mouse wheel
    I found something similar on this forum (thread: Problem with front panel refresh) - it might be related to the CAR about the panel being offset internally.  I don't have access to LabVIEW 8.5 or later and don't plan to upgrade - I haven't tried the trial version as that user did.  I could try to copy and paste my entire block diagram to a new VI but the VI is so large I'm afraid something would break, plus I don't want this to happen again in a few months.  The problem seemed to occur after a certain number of saves (or revision number).  I save backup copies often and when the problem first happened, I was able to go back to a previous version, make the missing changes and save it with no problems, but this only delayed the problem and it came up later.  So maybe it's the revision number.  It didn't seem related to a particular addition or modification in the front panel or diagram.
    The image attached shows the repaint and scrollbar problems in the bad VI.
    This brings up a question I have - if this problem is a bug and was fixed in 8.5 and later, is there a way to apply bug fixes to earlier versions?  Or do I have to pay for an upgrade to fix such bugs?
    Solved!
    Go to Solution.
    Attachments:
    RepaintTest_Bad.gif ‏27 KB
    Test Repaint - From Bad VI, scrollbar and repaint problems.vi ‏7 KB
    Test Repaint - From Blank VI, no problems.vi ‏5 KB

    Seems something got corrupted with this VI. Copy things over to a fresh VI and things should be OK.
    See also this recent report of a similar issue.
    LabVIEW Champion . Do more with less code and in less time .

  • JEditorPane slow HTML parsing and GUI lockup

    Hi,
    I use a JEditorPane to display HTML page. If the page is relatively small, everything is ok, but with big pages (about 1 Mb) it takes a huge amount of time to load (actually, to parse) the page. And the main problem is that user interface locks and doesn't even repaint unitl page is loaded. Is there any workaround to this problem? I use JDK 1.5.0_2 std. edition.

    Try loading a 1Mb plain text file and you will find
    that loading is slow. So it will only be slower with
    the additional parsing required for an HTML file.Really? The following is the text loading code, which is run in a separate thread:
                        BufferedInputStream in = new BufferedInputStream(con.getInputStream());
                        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
                        String line;
                        if(type.startsWith("text/plain")||type.startsWith("text/xml")) // It's not an HTML page
                            jEditorPane1.setContentType("text/plain");
                            jEditorPane1.setFont(new Font("Monospaced",Font.PLAIN,14));               
                            page=new StringBuilder();
                            Document ed_doc=jEditorPane1.getDocument();
                            while ( ( line = reader.readLine()) != null )
                                line=line.concat("\n");
                                page.append(line);
                                ed_doc.insertString(ed_doc.getLength(),line,null);
                        jEditorPane1.getDocument().putProperty(HTMLDocument.StreamDescriptionProperty, u);Yes, it takes some time to load a big page, but no, it does not block GUI repainting and does not block any events such as mouse, etc.
    I'm not an HTML
    expert but I believe if you have, for example, a
    large table structure then the table won't be painted
    until the parser knows how many columns is in the
    table and how wide to make each column. It can't
    determine column width until all the data is read.The files I use for testing don't have tables, etc. See this: http://www.lib.ru/ADAMS/liff.txt (Though it ends with .txt, it is html file - almost plain text with some HTML formatting tags). So, again, the problem is not that parsing is slow; the problem is that parsing blocks any gui events, and I'd like to know why and how to cope this problem. Running setPage() in separate thread doesn't change anything.

  • Compare Bluray and Dvd Chapters and Scrolling still text

    Question 1:
    Using PremierePro CS5 to set some Encore-Markers and DynamicLink to Encore to create menu:
    Using the same project, the behaviour is quite different:
    for Dvd : Encore-markers behave like Chapters, so I can use the player remote control to go to next chapter (even it is not defined in the menu)
                   that is very handly function.
    for Bluray : Encore-markes behave like Titles and not Chapters, so I cannot use the player remote control to jump to next Encore-markers
    I just looking for references to understand and do the correct ajustments.
    Thanks
    tt
    Question 2:
    Using PremierePro CS5 to add a still picture and scroll it up in slow motion:
    Using the same project, I understand that Bluray is far better than DVD:
    for Bluray : the scrolling of the still picture is smooth (it's very pleasant with texts too)
    for Dvd : the scrolling is jumpy (texts are dizzy and not readable)
    Is there any fix for that (.....something like PremierePro option to smooth it out a little (result little burry) or ... something like ...deinterlacing ?)
    Thanks
    tt

    POINT 1:
    I will skip DynamicLink for circumventing some issues for sure, but it is so handy and makes me lazy to do things fast.
    So far I am using DynamicLink for updating still images in menu with Photoshop and it's working fine.
    Also I have tried sucessfully modifying some assets using AfterEffect. Yes, there are ressources demanding since I have a skinny 12 Gigs RAM.
    POINT 2:
    I have to be more specific in comparing Encore-Bluray and Encore-Dvd (I am not comparing HD with SD).
    I just want to see the big picture comparison (equivalent between Encore-Bluray and Encore-Dvd) instead of "TRY-AND-SEE"
    Let me explain:
    1. Encore-Marker set in PremierePro-CS5 is consider as Chapter in Encore-Dvd)
    2. The final DVD created: I can use the remote control to jump to next Chapter even the Chapter is not referenced anywhere in Encore-Dvd
    3. Encore-Marker set in PremierePro-CS5 is consider as Title in Encore-Bluray) (the same Encore-Marker)
    4. The final Bluray created: I cannot use the remote to jump because there is only one Chapters but many Titles.
    When I am on the last step, of Encore-CS5-Build-Dvd or Encore-CS5-Build-Bluray, i expect to get the same result when playing the Bluray of Dvd
    with the Player (Home DVD Player or Home Bluray Player and absolutely no PC )
    WHAT ELSE IS DIFFERENT BETWEEN THOSE TWO FORMATS? for the same project in ENCORE-CS5
    (I need that information to explain to the end users)
    for now, I just try-and-see and take notes.
    tt

  • Need help with JTextArea and Scrolling

    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class MORT_RETRY extends JFrame implements ActionListener
    private JPanel keypad;
    private JPanel buttons;
    private JTextField lcdLoanAmt;
    private JTextField lcdInterestRate;
    private JTextField lcdTerm;
    private JTextField lcdMonthlyPmt;
    private JTextArea displayArea;
    private JButton CalculateBtn;
    private JButton ClrBtn;
    private JButton CloseBtn;
    private JButton Amortize;
    private JScrollPane scroll;
    private DecimalFormat calcPattern = new DecimalFormat("$###,###.00");
    private String[] rateTerm = {"", "7years @ 5.35%", "15years @ 5.5%", "30years @ 5.75%"};
    private JComboBox rateTermList;
    double interest[] = {5.35, 5.5, 5.75};
    int term[] = {7, 15, 30};
    double balance, interestAmt, monthlyInterest, monthlyPayment, monPmtInt, monPmtPrin;
    int termInMonths, month, termLoop, monthLoop;
    public MORT_RETRY()
    Container pane = getContentPane();
    lcdLoanAmt = new JTextField();
    lcdMonthlyPmt = new JTextField();
    displayArea = new JTextArea();//DEFINE COMBOBOX AND SCROLL
    rateTermList = new JComboBox(rateTerm);
    scroll = new JScrollPane(displayArea);
    scroll.setSize(600,170);
    scroll.setLocation(150,270);//DEFINE BUTTONS
    CalculateBtn = new JButton("Calculate");
    ClrBtn = new JButton("Clear Fields");
    CloseBtn = new JButton("Close");
    Amortize = new JButton("Amortize");//DEFINE PANEL(S)
    keypad = new JPanel();
    buttons = new JPanel();//DEFINE KEYPAD PANEL LAYOUT
    keypad.setLayout(new GridLayout( 4, 2, 5, 5));//SET CONTROLS ON KEYPAD PANEL
    keypad.add(new JLabel("Loan Amount$ : "));
    keypad.add(lcdLoanAmt);
    keypad.add(new JLabel("Term of loan and Interest Rate: "));
    keypad.add(rateTermList);
    keypad.add(new JLabel("Monthly Payment : "));
    keypad.add(lcdMonthlyPmt);
    lcdMonthlyPmt.setEditable(false);
    keypad.add(new JLabel("Amortize Table:"));
    keypad.add(displayArea);
    displayArea.setEditable(false);//DEFINE BUTTONS PANEL LAYOUT
    buttons.setLayout(new GridLayout( 1, 3, 5, 5));//SET CONTROLS ON BUTTONS PANEL
    buttons.add(CalculateBtn);
    buttons.add(Amortize);
    buttons.add(ClrBtn);
    buttons.add(CloseBtn);//ADD ACTION LISTENER
    CalculateBtn.addActionListener(this);
    ClrBtn.addActionListener(this);
    CloseBtn.addActionListener(this);
    Amortize.addActionListener(this);
    rateTermList.addActionListener(this);//ADD PANELS
    pane.add(keypad, BorderLayout.NORTH);
    pane.add(buttons, BorderLayout.SOUTH);
    pane.add(scroll, BorderLayout.CENTER);
    addWindowListener( new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    String arg = lcdLoanAmt.getText();
    int combined = Integer.parseInt(arg);
    if (e.getSource() == CalculateBtn)
    try
    JOptionPane.showMessageDialog(null, "Got try here", "Error", JOptionPane.ERROR_MESSAGE);
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Got here", "Error", JOptionPane.ERROR_MESSAGE);
    if ((e.getSource() == CalculateBtn) && (arg != null))
    try{
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 1))
    monthlyInterest = interest[0] / (12 * 100);
    termInMonths = term[0] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 2))
    monthlyInterest = interest[1] / (12 * 100);
    termInMonths = term[1] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 3))
    monthlyInterest = interest[2] / (12 * 100);
    termInMonths = term[2] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Invalid Entry!\nPlease Try Again", "Error", JOptionPane.ERROR_MESSAGE);
    }                    //IF STATEMENTS FOR AMORTIZATION
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 1))
    loopy(7, 5.35);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 2))
    loopy(15, 5.5);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 3))
    loopy(30, 5.75);
    if (e.getSource() == ClrBtn)
    rateTermList.setSelectedIndex(0);
    lcdLoanAmt.setText(null);
    lcdMonthlyPmt.setText(null);
    displayArea.setText(null);
    if (e.getSource() == CloseBtn)
    System.exit(0);
    private void loopy(int lTerm,double lInterest)
    double total, monthly, monthlyrate, monthint, monthprin, balance, lastint, paid;
    int amount, months, termloop, monthloop;
    String lcd2 = lcdLoanAmt.getText();
    amount = Integer.parseInt(lcd2);
    termloop = 1;
    paid = 0.00;
    monthlyrate = lInterest / (12 * 100);
    months = lTerm * 12;
    monthly = amount *(monthlyrate/(1-Math.pow(1+monthlyrate,-months)));
    total = months * monthly;
    balance = amount;
    while (termloop <= lTerm)
    displayArea.setCaretPosition(0);
    displayArea.append("\n");
    displayArea.append("Year " + termloop + " of " + lTerm + ": payments\n");
    displayArea.append("\n");
    displayArea.append("Month\tMonthly\tPrinciple\tInterest\tBalance\n");
    monthloop = 1;
    while (monthloop <= 12)
    monthint = balance * monthlyrate;
    monthprin = monthly - monthint;
    balance -= monthprin;
    paid += monthly;
    displayArea.setCaretPosition(0);
    displayArea.append(monthloop + "\t" + calcPattern.format(monthly) + "\t" + calcPattern.format(monthprin) + "\t");
    displayArea.append(calcPattern.format(monthint) + "\t" + calcPattern.format(balance) + "\n");
    monthloop ++;
    termloop ++;
    public static void main(String args[])
    MORT_RETRY f = new MORT_RETRY();
    f.setTitle("MORTGAGE PAYMENT CALCULATOR");
    f.setBounds(600, 600, 500, 500);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    }need help with displaying the textarea correctly and the scroll bar please.
    Message was edited by:
    new2this2020

    What's the problem you're having ???
    PS.

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    There is nothing wrong with your Dell, it will work fine with any MacbookPro. I have been using Dell displays for over 12 years with many different Mac models. I have two 21" Ultra Sharp displays working side by side to design a Keynote presentation right now.
    The issue your having is with the way Keynote  takes control of the video output to both displays, it sends the presentation signal to one and the presenter display to the other, this is set up in;
    Keynote preferences > Presenter display.
    If you want to show a wesite or another app on  either display,  use application switcher:
    press the the  command key on the keyboard, then the tab key; a row of applications will show what applications are running, choose which one you want to show. Use command  > tab to return to Keynote.

  • Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.

    Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.
    The above is what the bar says. It's been a while and wondered, maybe Apple changed the format for forums. Then got this nice big blank canvas to air my concerns. Went to school for Computer Science, BSEE, even worked at Analog Devices in Newton Massachusetts, where they make something for apple. 
    The bottom line is fast CPU = more FPU = more headroom and still can't figure out why the more cores= the slower it gets unless it's to get us in to a 6 core then come out with faster cores down the road or a newer Mac that uses the GPU. Also. Few. I'm the guy who said a few years ago Mac has an FCP that looks like iMovie on Steroids. Having said that I called the campus one day to ask them something and while I used to work for Apple, I think she thought I still did as she asked me, "HOW ARE THE 32 CORES/1DYE COMING ALONG? Not wanting to embarrass her I said fine, fine and then hung up.  Makes the most sense as I never quite got the 2,6,12 cores when for years everything from memory to CPU's have been, in sets of 2 to the 2nd power.  2,4,8,16,32,64,120,256,512, 1024, 2048,4196,8192, 72,768.  Wow. W-O-W and will be using whatever I get with Apollo Quad. 
    Peace to all and hope someone can point us in THE RIGHT DIRECTION.  THANK YOU

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • Open and Save Dialogs Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become very slow to open and populate since installing Snow Leopard, when the machine is connected to a Windows server. Disconnecting from the server solves the problem; reconnecting causes it to reappear.
    This only happens on some of my machines, and not others
    Any thoughts on what this could be. The delay is significant (about 10 seconds in all).

    Roy,
    I've got the same problem. I've been charting the slowness, i.e. the time until the app responds and opens the save dialog box, and most apps hover around 2 minutes of waiting.
    My home network consists of a belkin n+ router (running only with the N radio, and WPA2 security), one ethernet-connected powerbook with a USB-connected hard disk (640GB+), and my MBP connecting by wireless. The USB HD is used as a Time Machine backup disk, and the backups are extremely slow, on the order of 2 GB's per hour at most.
    That said, I called up Apple Tech Support and they had me flash my PRAM, restart the machine, and Reset Safari (since that was the app I called about). These efforts, unfortunately, did not fix the issue.
    I will be passing on the fact that Tech Support's efforts did not solve the problem--maybe they'll get back to me on the issue. If so, I'll post it here.

  • Safari is slow to open and close. It also slows down other apps while running. Should I reload safari and if so, how do I do so?

    Safari is slow to open and close. It also slows down other apps while it is running. How can I resolve this issue?

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. That will revert its settings to the defaults.
    If there's no improvement, continue as follows.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

  • Open and Save Dialogs Very Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become +very slow+ to open and populate since installing Snow Leapoard.
    This only happens on one of my machines, and not others. (I've unmounted all connected drives, just to eliminate that possibility.)
    Any thoughts on what this could be. The delay is significant (and feels like the old days of Windows, which I thought I'd left behind).

    The problem now appears to have gone away. The only change I've made is that I replaced an external drive that had recently died with a new one and gave it the same name as the failed drive.
    Could a the dead drive have left something behind (or failed to leave something behind) that is stumbled over (or looked for and not found) each time the file system was accessed, and that got cleaned up (or re-created) when the new drive was connected and renamed?

Maybe you are looking for

  • How can I restore my iphone 4?

    When I try to restore my iphone 4 I am presented with an error 2001 or 2006. Here's what happend. - Picked up my phone and the screen was Black - Tried the usual to get some response - Eventually the phone turned back on, prompting me to configure iO

  • By default view the last instance for a specific report

    Hello, if you went to CMC->Applications->Infoview->Properties the last property is Default Viewing Action on Listing Page: View the object View the latest successful instance of the object this will apply over all the reports in the system there is n

  • Modal window

    Hi,      In my application dynamically create the window component using "popUpmanager" with "non modal" but when i click the button how to change the "modal" window component . EX: import mx.managers.PopUpManager import mx.containers.Window win = Po

  • Illustrator cc 2014 extremely slow

    We have been using Illustrator cc with acceptable speed. But with cc 2014, the Illustrator becomes very slow. This does not happen with Photoshop cc 2014. We finally have to remove the illustrator cc 2014. Meanwhile, Photoshop cc 2014 is normal. Anyo

  • RGetting error while installing jdevstudio11123

    I have Installed WLS 10.3.6 separately and when I tried to use the existing WLS 10.3.6 Middleware home while installing jdevstudio11123. I'm getting the below error "The product maintenance level of the current installer (Weblogic Server: 10.3.5.0) i