The ANE library is compiled to MacOS, but does not compile on Windows.

ANE lbrary FPHockeyApp http://flashpress.ru/blog/contents/ane/hockeyapp/FPHockeyApp-6.1.ane
Application:
package
    import flash.display.Sprite;
    import ru.flashpress.hockeyapp.FPHockeyApp;
    import ru.flashpress.hockeyapp.ns.haIOS;
    public class TestHockeyApp extends Sprite
        public function TestHockeyApp()
            super();
            use namespace haIOS;
            var APP_ID:String = 'you app id';
            FPHockeyApp.manager.configureWithIdentifier(APP_ID);
            FPHockeyApp.manager.startManager();
            FPHockeyApp.manager.authenticator.authenticateInstallation();
Compiled in MacOS, but does not compile on Windows:
Why so?

Windows 64-bit.
On a single MacBookPro installed OSX and Windows(not virtual).

Similar Messages

  • Windows xp runs java application but does not compile it - urgent please

    Hi
    My new PC(portable) does not compile my java progran:
    'javac' is not recognized as an internal or external command, operatable program or batch file.
    If you have any suggestion, please let me know!
    Aria

    Thanks anyhow;
    The following information is sent to beginners site.
    I have talked to british, belgian and others regarding this problem. They said it is very expensive and we laughed.
    Hi,
    Windows XP runs java application but does not compile it. I get following message:
    'javac' is not recognized as an internal or external command, operatable program or batch file.
    MS-DOS does not exists but a command line edits autoexec.nt having allinformation regarding installed jdk5. I run my java applicat
    ion from here. But no compilation.
    Environment variables has following information.
    JAVA_HOME C:\jdk5.0
    CLASSPATH C:\jdk5.0\myPrograms
    path %JAVA_HOME%bin
    All information in autoexec.nt exists as windows 98 and I run it from command line.
    Would you please tell me what is wrong?
    Thanks
    Aria

  • The Power Supply Fan is still working, but does not appear to respond to increased loads, and its speed cannot be increased using SMCFanControl. Any suggestions?

    Hi all - My mac pro 1,1 has an enigmatic problem. It's quad-core, 3Ghz, running OS X 10.7.5. The problem began some months back, when running HD video conferences, HD streaming videos and some other graphics-moderate (I won't say intense) uses, such as slide shows in Just Looking. My machine has an ATY, RadeonX1900 card and 2 monitors - both Apple displays, one being 30 inch 2560x1600, the other being 24 inch 1920x1200.
    When I start those types of graphics-moderate apps, after about 5 minutes, something would crash (the monitors making a noise as it did) and the displays would both go black. The power did not appear to be fully cut off from the monitors. I think that the underlying applications, however, did not crash. So, I could still hear and speak to people during video conferences, and I could hear the sound tracks of videos.
    Attempts to restart the computer and get the monitors back did not immediately work to undo the problem, if done straight away. The only way to correct the problem (so as to have the monitors work) was to wait for a few minutes and then restart.
    After a lot of puzzled looking at console logs (and I confess that I am not an expert), I ran into a blank.
    But, because of the timing of the crashes (after ~5minutes use) and restarts (after some minutes wait), I reasoned that the problem might be temperature related.
    Once on that path of thought, I found this article:
    http://worldtv.com/blog/guides_tutorials/fixing_an_overheating_mac_pro_no_expens e_required.php
    I installed both Temperature Monitor and SMCFanControl. And I experimented, and got interesting results:
    Now to the puzzling bit: SMCFanControl shows that the speed of the Power Supply Fan doesn't vary much, even if I use SMCFanControl to ramp fan speeds right up. All of the other fans react to SMCFanControl, going up to and above 2500rpm when commanded. But the Power Supply Fan does not.  Having watched it for a few days now, the Power Supply Fan, according to AFCFanControl, never varies outside of a range from about 600-640 rpm, regardless of what I do with AFCFanControl.
    Also (and not surprisingly), whenever the graphics-moderate apps run, when I ramp all the fan speeds up using SMCFanControl, Temperature Monitor shows that the all of the temperatures within the machine plummet, except in the power supply locations. Power Supply Location 2 is the worst affected. Because the Power Supply Fan does not react as the other fans do, the "crashes" still occur.
    I could post some screen shots of the read outs of SMCFanControl and Temperature Monitor, although I think I have covered the key points in this post.
    It seems that the Power Supply Fan is still working, but does not respond to increased loads.
    Instinctively, I'm worried that if that's right, it might be a hard problem to fix. Any suggestions? Help! I would really appreciate them!
    Cheers
    P

    Thanks for your response Grant. I had already read about, and I think excluded, dust in graphics card/fan/assembly as a cause. The entire inside of the computer, including the graphics card/fan/assembly, is as clean as a whistle. It looks clean. I've cleaned the dust out every now and then (including a few days ago). Also, my undersanding (derived from the article, linked in my first post) is that I might expect to see high temperatures in the Northbridge and memory module B if the graphics card was overheating. According to Temperature Monitor, however, locations do not increase in temperature when I run the relevant apps. Finally, the graphics card/assembly does not feel too hot to touch.
    It is strange that SMCFanControl lists the Power Supply Fan as being software controllable, if that fan is not. Still, your comments are consistent with my observations, as the fan simply does not respond to software control.
    There are two upsides: First, I've something of a work-around. I've worked out what temperature must be achieved in Power Supply Location 2 for a crash to occur, and I can watch that location in Temperature Monitor, terminating the process before that treshold is reached. Of course, that's not ideal. Second, ramping all the other fans up does significantly delay the onset of the problem, and makes recovery time much quicker.
    Is there any donwside to peridically ramping up the other fans when running the relevant apps? Given that it causes all of the other locations to cool significantly, could this lessesn the life expecancy of the mahcine? (I don't want to run the fans up all the time - that's like sitting next to a jet ready for take off!)
    Also, a correction to my first post: Yesterday, with all the other fans running on full and running an HD streaming video, the Power Supply Fan did, eventually, slowly, come up to ~740rpm, which is much higher than the ~640rpm maximum I had previously seen, and this may have aided delaying the onset of the problem. 
    I'm not sure where this leaves me? The problem might now be able managed. Well, sort-of. But it's not eliminated.

  • The invoice & excise Invoce s are genrated but  does not diplay in Sales Re

    Dear Team,
    The invoice & excise Invoce s are genrated but  does not diplay in Sales Report.(ZMSR ) . then i have go throught the VF02 & enter the invoice no & click the Relese to Accounting the flag but problem is not solve. pl give the correct solution.;

    Dear friend
    i think there is no problem in releasing to accounts ,
    the problem is in accounting document settings.
    to solve this first go to pricing procedure , and check all account keys are maintained or not
    go to 'VKOA' check g.l a/c assignments for account key.

  • TS2551 In order to print from Iphoto 11 , it ask for a theme , but does not supply a window in which to make a theme.

    I need to print from Iphoto , but it ask for a theme , but does not supply a window or a way to apply the theme.

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • When i connect my ipod nano 2nd gen, it charges but does not appear in windows or itunes.  I tried the reset but it didn't work.  how can i fix this?

    I bough a 4g Ipod nano 2nd gen for my cousins birthday.  When i plug it into my computer it charges but does not show up in windows or itunes.  I tried reseting it, reinstalling itunes, everything the site said but it didn't help. I am trying to sync songs to it for my cousin, but it won't work with it not connecting.  Could the wire have something to do with it or is there a bigger problem here?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with             
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • In IPhoto, after I submit my book to the Apple store, it shows it uploading, but does not finish the process.

    after I submit my book to the Apple store in I photo, it shows that it assembles and uploads, but does not finish the process.  I cannot use the cancel button and have to force quit IPhoto to get out of the process.

    Assuming you're referring to iPhoto on your Mac here are some potential fixes you can try:
    1 -
    Go to the System/Sharing preference pane and make sure Remote Apple Events is checked. If it is, uncheck it and then recheck and try ordering again.
    2 -
    Quit iPhoto.
    From the Finder menu bar, choose Go > Utilities to access your Utilities folder (or press Shift-Command-U).
    In your Utilities folder, open Keychain Access.
    Find the "NetServices" entry in your Keychain Access window.
    Select the "NetServices" entry and press the delete key.
    Reopen iPhoto and attempt to place your order again.
    You should be prompted to enter your account information if you deleted the Keychain entry successfully.
    After entering your account information, you should be able to complete your order.
    3 -
    Boot into Safe Mode, Mac OS X: Starting up in Safe Mode, and try ordering from there.
    Note:  Create a proof pdf file of the book as described in this Apple document, iPhoto, Aperture: Previewing an order in iPhoto or Aperture, before ordering the book and keep the pdf file to compare with the printed copy when it arrives.

  • When I use full screen, the top menu is supposed to disappear but does not, why?

    Firefox ver. 3.6.8: A friend was using my computer on the web on Firefox. It was already set in "full screen" mode [F11]. She did something, doesn't know what, but now when I go into full screen mode [F11] the top menu does NOT disappear as it should. You know, you hit F11 and when it goes into full screen mode, the last thing that happens is the top menu "disappears" and NOW it doesn't. Iv'e checked configurations and can't figure out what went wrong or is wrong.
    Can anyone help, PLEASE!!!
    Ellen

    See http://kb.mozillazine.org/browser.fullscreen.autohide
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the <i>"Enter"</i> key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • I plug my iPod touch into my new macbook pro and the iPod icon shows up in iTunes, but does not show up anywhere in the finder or on my desktop...?

    I need to transfer the music off of my ipod onto my mac but i cannot do that when my macbook will not recognize my ipod touch in the finder.

    This is correct.  It will not show in finder.  It is not an external storage device.
    The music sync is one way - computer to ipod.  The only exception is itunes purchases.  Open itunes connect ipod, do not sync, click File>Transfer Purchases

  • I can't register my new nano. The online form asks for serial number but does not supply a box in which to insert it

    I can't register my new nano. The online form asks for the serial number but there is no box in
    which to insert the number.

    Have you tried restarting your computer?
    Register by phone:  Apple Customer Relations 1-800-767-2775

  • Firefox quits unexpectedly when I am in the middle of composing an email message but does not generate a crash report.

    This happens periodically, either when I'm in my email client application or in a web mail program. Sometimes Firefox quits within 10 seconds of my composing a message, sometimes a minute or two later. There's no warning and no error message. I'm just kicked out and have to restart Firefox and start over with the message.

    You will have set the mailto option to use Firefox. For details on fixing it see https://support.mozilla.com/kb/Firefox+keeps+opening+many+tabs+or+windows

  • ITunes installs but does not run on Windows 7 64-bit

    I've spent a couple hours going over advice on this forum as well as elsewhere on the Internet to resolve this. iTunes installs without a problem but when we run it, nothing appears. iTunes.exe *32 and iTunesHelper.exe *32 appear in the Windows Task Manager but there is no other evidence that iTunes is running.
    I've tried installing and reinstalling. I've tried a number of different compatibility settings. Surely there must be an easy way to resolve this.
    Frustrated,
    Andy

    The problem, as it turns out, is Bonjour. See http://discussions.apple.com/thread.jspa?threadID=2408851&tstart=0 for ideas on how to fix....

  • Creative cloud launches but does not load - using windows 7 PC

    I have uninstalled and reinstalled several times but when Creative cloud launches, the wheel turns and stops and it remains blank. Can anyone help please.
    Since asking this I opened Acrobat and it asked me to sign in which I did and now Creative Cloud launches and loads.
    New Question - How do I get Creative Cloud to recognise me when it loads?
    Message was edited by: Chocat123

    Branching this to a new discussion.
    NPotter.UK please make sure you are using version 1.2.1.260 or later of the Creative Cloud desktop application.  You can find more details at Creative Cloud desktop missing text | Windows 8.1 - http://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-missing-text.html.

  • When the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently.but in fact,when the app in background ,the app need data update to make the

    when the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of  trajectory replay come ture。in fact, we have added function when the app  is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when  the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
    the blow is the content of the review team email:
    We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
    We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
    It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
    For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
    If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
    "Continued use of GPS running in the background can dramatically decrease battery life."
    Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
    We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
    - complete details of your rejection issue(s)
    - screenshots
    - steps to reproduce the issue(s)
    - symbolicated crash logs - if your issue results in a crash log
    If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

    Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.

  • Compiles but does not execute as expected????

    Here is my code. I can compile and execute but does not perform as expected What do I need to change?
    import java.io.;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.math.*;
    public class CalcTest extends JFrame implements ActionListener, ItemListener
    public JMenuBar createMenuBar()
            JMenuBar mnuBar = new JMenuBar();
            setJMenuBar(mnuBar);
                //Create File & add Exit
            JMenu mnuFile = new JMenu("File", true);
            mnuFile.setMnemonic(KeyEvent.VK_F);
            mnuFile.setDisplayedMnemonicIndex(0);
            mnuBar.add(mnuFile);
            JMenuItem mnuFileExit = new JMenuItem("Exit");
            mnuFileExit.setMnemonic(KeyEvent.VK_F);
            mnuFileExit.setDisplayedMnemonicIndex(1);
            mnuFile.add(mnuFileExit);
            mnuFileExit.setActionCommand("Exit");
            mnuFileExit.addActionListener(this);
            JMenu mnuFunction = new JMenu("Function", true);
            mnuFunction.setMnemonic(KeyEvent.VK_F);
            mnuFunction.setDisplayedMnemonicIndex(0);
            mnuBar.add(mnuFunction);
           JMenuItem mnuFunctionClear = new JMenuItem("Clear");
           mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
           mnuFunctionClear.setDisplayedMnemonicIndex(1);
           mnuFunction.add(mnuFunctionClear);
           mnuFunctionClear.setActionCommand("Clear");
           mnuFunctionClear.addActionListener(this);
            // Fields for Principle 
      JPanel row1 = new JPanel();
      JLabel dollar = new JLabel("How much are you borrowing?"); 
      JTextField money = new JTextField("", 15);
            // Fields for Term and Rate
       JPanel row2 = new JPanel();
       JLabel choice = new JLabel("Select Year & Rate:");
       JCheckBox altchoice = new JCheckBox("Alt. Method");
       JTextField YR = new JTextField("", 4);
       JTextField RT = new JTextField("", 4);
           //Jcombobox R=rate,Y=year
       String[] RY =  {   
            "7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "  
      JComboBox mortgage = new JComboBox(RY);
                // Fields for Payment   
        JPanel row3 = new JPanel(); 
        JLabel payment = new JLabel("Your monthly payment will be:");
        JTextField owe = new JTextField(" ", 15); 
              //Scroll Pane and Text Area
       JPanel row4 = new JPanel();
       JLabel amortization = new JLabel("Amortization:");
       JTextArea chart = new JTextArea(" ", 7, 22); 
       JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,  
                                               JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);  
        StringBuffer amt = new StringBuffer();
        Container pane = getContentPane(); 
        FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
        JButton Cal = new JButton("Calculate"); 
        NumberFormat currency = NumberFormat.getCurrencyInstance();  
      public CalcTest() 
               // Title and Exit of JFrame  
         super("Mortgage and Amortization Calculator"); 
         setSize(475, 328);  
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
                //JFrame layout      
         pane.setLayout(flow);     
               //Input output fields added to JFrame  
         row1.add(dollar);    
         row1.add(money);   
         pane.add(row1);    
         mortgage.setSelectedIndex(3);   
         mortgage.addActionListener(this);    
         mortgage.setActionCommand("mortgage");
         row2.add(altchoice);     
         altchoice.addItemListener(this);  
         row2.add(choice);     
         YR.setEditable(false);    
         RT.setEditable(false);     
         row2.add(YR);     
         row2.add(RT);      
         row2.add(mortgage);    
         pane.add(row2);     
         row3.add(payment);   
         row3.add(owe);       
         pane.add(row3);      
         owe.setEditable(false);  
                 //Scroll Pane added to JFrame     
          row4.add(amortization);      
          chart.setEditable(false); 
          row4.add(scroll);   
          pane.add(row4);     
                //Executable Button- Clear,Exit, Calculate 
          JPanel row5 = new JPanel();
          JButton clear = new JButton("Clear");  
          clear.addActionListener(this);     
          row5.add(clear); 
          pane.add(row5); 
          JButton exit = new JButton("Exit"); 
          exit.addActionListener(this);    
          row5.add(exit);      
          Cal.setEnabled(false);  
          Cal.addActionListener(this); 
          row5.add(Cal);       
          pane.add(row5);   
          setContentPane(pane);   
          setVisible(true); 
      }                    //End of constructor   
        private void calculate()
          String loanAmount = money.getText(); 
             if(loanAmount.equals(""))      
               return;      
               double P = Double.parseDouble(loanAmount);     
               int y;     
               double r;    
             if(altchoice.isSelected())   
              if(YR.getText().equals("") || RT.getText().equals(""))  
                 return;        
               y = Integer.parseInt(YR.getText());     
                r = Double.parseDouble(RT.getText());   
               else     
                  int index = mortgage.getSelectedIndex();  
                  if(index == 3)         
                  return;          
                  int[] terms = { 7, 15, 30 };     
                  double[] rates = { 5.5, 5.35, 5.75 }; 
                  y = terms[index];  
                  r = rates[index];  
                  double In = r / (100 * 12.0);  
                  double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
                  owe.setText(currency.format(M));      
                         //Column Titles for Text Area     
           chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");  
         for (int i = 0; i < y * 12; i++)     
      {            double interestAccrued = P * In;     
                   double principalPaid = M - interestAccrued;          
                   chart.append(i + 1 + "\t" + currency.format(principalPaid)           
                                    + "\t" + currency.format(interestAccrued)     
                                          + "\t" + currency.format(P) + "\n");      
                    P = P + interestAccrued - M;   
         public void itemStateChanged(ItemEvent ie) 
      {        int status = ie.getStateChange();    
           if (status == ItemEvent.SELECTED)     
               mortgage.setEnabled(false);  
               YR.setEditable(true); 
               RT.setEditable(true);   
               Cal.setEnabled(true);  
            else 
            mortgage.setEnabled(true); 
            YR.setEditable(false);    
            RT.setEditable(false);     
           Cal.setEnabled(false);     
      public void actionPerformed(ActionEvent ae)//Calculations and Button executions
          String command = ae.getActionCommand();  
                  // Exit program      
           if (command.equals("Exit"))   
            System.exit(0);
                  // Cal button 
          if (command.equals("Calculate") || command.equals("mortgage")) 
              calculate();      
                 // Clear fields  
          if (command.equals("Clear")) 
             money.setText(null);
             mortgage.setSelectedIndex(3); 
             owe.setText(null);   
             chart.setText(null); 
    }             //End actionPerformed 
       public static void main(String args[]) throws IOException
               new CalcTest();
    [/Code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here is the code again
    import java.io.;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.math.*;
    public class CalcTest extends JFrame implements ActionListener, ItemListener
    public JMenuBar createMenuBar()
            JMenuBar mnuBar = new JMenuBar();
            setJMenuBar(mnuBar);
                //Create File & add Exit
            JMenu mnuFile = new JMenu("File", true);
            mnuFile.setMnemonic(KeyEvent.VK_F);
            mnuFile.setDisplayedMnemonicIndex(0);
            mnuBar.add(mnuFile);
            JMenuItem mnuFileExit = new JMenuItem("Exit");
            mnuFileExit.setMnemonic(KeyEvent.VK_F);
            mnuFileExit.setDisplayedMnemonicIndex(1);
            mnuFile.add(mnuFileExit);
            mnuFileExit.setActionCommand("Exit");
            mnuFileExit.addActionListener(this);
            JMenu mnuFunction = new JMenu("Function", true);
            mnuFunction.setMnemonic(KeyEvent.VK_F);
            mnuFunction.setDisplayedMnemonicIndex(0);
            mnuBar.add(mnuFunction);
           JMenuItem mnuFunctionClear = new JMenuItem("Clear");
           mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
           mnuFunctionClear.setDisplayedMnemonicIndex(1);
           mnuFunction.add(mnuFunctionClear);
           mnuFunctionClear.setActionCommand("Clear");
           mnuFunctionClear.addActionListener(this);
            // Fields for Principle 
      JPanel row1 = new JPanel();
      JLabel dollar = new JLabel("How much are you borrowing?"); 
      JTextField money = new JTextField("", 15);
            // Fields for Term and Rate
       JPanel row2 = new JPanel();
       JLabel choice = new JLabel("Select Year & Rate:");
       JCheckBox altchoice = new JCheckBox("Alt. Method");
       JTextField YR = new JTextField("", 4);
       JTextField RT = new JTextField("", 4);
           //Jcombobox R=rate,Y=year
       String[] RY =  {   
            "7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "  
      JComboBox mortgage = new JComboBox(RY);
                // Fields for Payment   
        JPanel row3 = new JPanel(); 
        JLabel payment = new JLabel("Your monthly payment will be:");
        JTextField owe = new JTextField(" ", 15); 
              //Scroll Pane and Text Area
       JPanel row4 = new JPanel();
       JLabel amortization = new JLabel("Amortization:");
       JTextArea chart = new JTextArea(" ", 7, 22); 
       JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,  
                                               JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);  
        StringBuffer amt = new StringBuffer();
        Container pane = getContentPane(); 
        FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
        JButton Cal = new JButton("Calculate"); 
        NumberFormat currency = NumberFormat.getCurrencyInstance();  
      public CalcTest() 
               // Title and Exit of JFrame  
         super("Mortgage and Amortization Calculator"); 
         setSize(475, 328);  
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
                //JFrame layout      
         pane.setLayout(flow);     
               //Input output fields added to JFrame  
         row1.add(dollar);    
         row1.add(money);   
         pane.add(row1);    
         mortgage.setSelectedIndex(3);   
         mortgage.addActionListener(this);    
         mortgage.setActionCommand("mortgage");
         row2.add(altchoice);     
         altchoice.addItemListener(this);  
         row2.add(choice);     
         YR.setEditable(false);    
         RT.setEditable(false);     
         row2.add(YR);     
         row2.add(RT);      
         row2.add(mortgage);    
         pane.add(row2);     
         row3.add(payment);   
         row3.add(owe);       
         pane.add(row3);      
         owe.setEditable(false);  
                 //Scroll Pane added to JFrame     
          row4.add(amortization);      
          chart.setEditable(false); 
          row4.add(scroll);   
          pane.add(row4);     
                //Executable Button- Clear,Exit, Calculate 
          JPanel row5 = new JPanel();
          JButton clear = new JButton("Clear");  
          clear.addActionListener(this);     
          row5.add(clear); 
          pane.add(row5); 
          JButton exit = new JButton("Exit"); 
          exit.addActionListener(this);    
          row5.add(exit);      
          Cal.setEnabled(false);  
          Cal.addActionListener(this); 
          row5.add(Cal);       
          pane.add(row5);   
          setContentPane(pane);   
          setVisible(true); 
      }                    //End of constructor   
        private void calculate()
          String loanAmount = money.getText(); 
             if(loanAmount.equals(""))      
               return;      
               double P = Double.parseDouble(loanAmount);     
               int y;     
               double r;    
             if(altchoice.isSelected())   
              if(YR.getText().equals("") || RT.getText().equals(""))  
                 return;        
               y = Integer.parseInt(YR.getText());     
                r = Double.parseDouble(RT.getText());   
               else     
                  int index = mortgage.getSelectedIndex();  
                  if(index == 3)         
                  return;          
                  int[] terms = { 7, 15, 30 };     
                  double[] rates = { 5.5, 5.35, 5.75 }; 
                  y = terms[index];  
                  r = rates[index];  
                  double In = r / (100 * 12.0);  
                  double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
                  owe.setText(currency.format(M));      
                         //Column Titles for Text Area     
           chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");  
         for (int i = 0; i < y * 12; i++)     
      {            double interestAccrued = P * In;     
                   double principalPaid = M - interestAccrued;          
                   chart.append(i + 1 + "\t" + currency.format(principalPaid)           
                                    + "\t" + currency.format(interestAccrued)     
                                          + "\t" + currency.format(P) + "\n");      
                    P = P + interestAccrued - M;   
         public void itemStateChanged(ItemEvent ie) 
      {        int status = ie.getStateChange();    
           if (status == ItemEvent.SELECTED)     
               mortgage.setEnabled(false);  
               YR.setEditable(true); 
               RT.setEditable(true);   
               Cal.setEnabled(true);  
            else 
            mortgage.setEnabled(true); 
            YR.setEditable(false);    
            RT.setEditable(false);     
           Cal.setEnabled(false);     
      public void actionPerformed(ActionEvent ae)//Calculations and Button executions
          String command = ae.getActionCommand();  
                  // Exit program      
           if (command.equals("Exit"))   
            System.exit(0);
                  // Cal button 
          if (command.equals("Calculate") || command.equals("mortgage")) 
              calculate();      
                 // Clear fields  
          if (command.equals("Clear")) 
             money.setText(null);
             mortgage.setSelectedIndex(3); 
             owe.setText(null);   
             chart.setText(null); 
    }             //End actionPerformed 
       public static void main(String args[]) throws IOException
               new CalcTest();

Maybe you are looking for

  • How can I get the link not to override my style sheet formatting?

    I have an html page with text that has a style sheet applied to it. When I insert a link into parts of the formatted text, the style sheet formatting is lost in the linked text (the text for mylars, shapes and number shapes becomes smaller: see code

  • Problem to open VISIO in workflow table

    Hi All, I opened the workflow table by getting by going to view -> select table-> workflow as i was not able to open it in drop down list. Once opening the workflow when I am trying to open the Visio document in workflow field, i cannot open I got th

  • Work or Not

    Hello All,, i am a PHP programmer,, i am build a program in PHP but i want let my program work with oracle,, is this possible,,, my program connect to xml file and get information and do some process ,, and output result in HTML,, is possible to let

  • Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Sales Group then add to Distribution list based on Region

    Hey Scripting Guys, I have been in and out of Powershell last few years, not that great at it tbh !!! I'm looking for advice on how I can as in Title, Create a Powershell script to Scan Active Directory Attributes for Country and Department ,Then add

  • Get Mail button location in toolbar

    Can someone explain to me why my Get Mail button appears in different places on the toolbar on my two Macs even though I am running the same version of mail.app (3.2, Build 919/919.2)? On my G5 the button is at the far left. On my G4 PowerBook it is