HT4113 why isnt this thing working

why isnt this working

Because of the actions of an unsympathetic deity.
Try to ask a sensible question with a clue or two, and us folk might be able to help you. With your present standard of asking, you have no hope.

Similar Messages

  • Why isnt this loop working?

    I am trying to fill an array with the Fibonacci sequence.
    Oh and, I know its very silly to use 'long i' instead of 'int i' as my incrementor in the for loop. But... I have a reason.
    import java.math.*;
    public class euler20{
         public static void main (String arghp[]){
              BigInteger a[]=new BigInteger [1000000];
              a[1]=new BigInteger("1");
              a[2]=new BigInteger("2");
              for(long i=3;i<10;i++)     
                        System.out.println(a[(int)i]);
                        a[(int)i]=new BigInteger(""+a[(int)i-1].add(a[(int)i-2]));
              Tell me I am doing something REALLY stupid..

    uhm well, I imporvised my code a little..
    replace a[(int)i]=new BigInteger(""+a[(int)i-1].add(a[(int)i-2]));with
    a[(int)i]=a[(int)i-1].add(a[(int)i-2]);However, the problem persists.

  • Why isnt this working urgent please help

    why isnt this working im trying to connect a panel to a scrollpane the panel will contain several dozen text fields
    the scrollpane shouls be about 350, 450 , but the pane is 350
    by 1200 the problem now is that the scorllbar isnt created and even when I explictly create it it contains no knob, and it will
    not scroll up or down please someone help this is urgent
    import java.awt.*;
    import com.sun.java.swing.*;
    public class ScrollDemo extends JPanel {
         private Rule columnView;
         private Rule rowView;
         private ScrollablePicture picture;
         class UnitsListener implements ItemListener {
              public void itemStateChanged(ItemEvent e) {
                   if (e.getStateChange() == ItemEvent.SELECTED) {
                        // Turn it to metric.
                        rowView.setIsMetric(true);
                        columnView.setIsMetric(true);
                   } else {
                        // Turn it to inches.
                        rowView.setIsMetric(false);
                        columnView.setIsMetric(false);
                   picture.setMaxUnitIncrement(rowView.getIncrement());
    public ScrollDemo() {
         Two t = new Two(columnView.getIncrement());
              JScrollPane pictureScrollPane = new JScrollPane(t);
              pictureScrollPane.setPreferredSize(new Dimension(300, 250));
              pictureScrollPane.setColumnHeaderView(columnView);
              pictureScrollPane.setRowHeaderView(rowView);
         public static void main(String s[]) {
              JFrame frame = new JFrame("ScrollDemo");
              frame.setContentPane(new ScrollDemo());
              frame.setVisible(true);
    import java.awt.*;
    import com.sun.java.swing.*;
    public class Two extends JPanel implements Scrollable{
    private JPanel ivjJPanel3 = null;
         private JScrollPane ivjJScrollPane1 = null;
         private int maxUnitIncrement = 1;
    public Two(int m)
         getJPanel1();
         maxUnitIncrement = m;
         setSize(300,1200);
    private void getJPanel1() {
                   setLayout(null);
                   setSize(250,1200);
                   add(getJLabel1(), getJLabel1().getName());
    public Dimension getPreferredScrollableViewportSize() {
              return getPreferredSize();
         public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation,
         int direction) {
              if (orientation == SwingConstants.HORIZONTAL)
                   return visibleRect.width - maxUnitIncrement;
              else
                   return visibleRect.height - maxUnitIncrement;
         public boolean getScrollableTracksViewportHeight() {
              return false;
         public boolean getScrollableTracksViewportWidth() {
              return false;
         public int getScrollableUnitIncrement(Rectangle visibleRect,
                                                      int orientation,
                                                      int direction) {
              //Get the current position.
              int currentPosition = 0;
              if (orientation == SwingConstants.HORIZONTAL)
                   currentPosition = visibleRect.x;
              else
                   currentPosition = visibleRect.y;
              //Return the number of pixels between currentPosition
              //and the nearest tick mark in the indicated direction.
              if (direction < 0) {
                   int newPosition = currentPosition -
                                       (currentPosition / maxUnitIncrement) *
                                       maxUnitIncrement;
                   return (newPosition == 0) ? maxUnitIncrement : newPosition;
              } else {
                   return ((currentPosition / maxUnitIncrement) + 1) *
                        maxUnitIncrement - currentPosition;
         public void setMaxUnitIncrement(int pixels) {
              maxUnitIncrement = pixels;

    I personally didn't play with swing components when they were in the com.sun.java.swing state, but I have a strong feeling it is very buggy and could be causing your problem.
    Before posting gui issues, please use a newer API, even jdk1.1 would be fine, anything would be better than what your using.
    you wrote: I dont care if its javax.swing or
    com.sun.java.swing
    I would also gather from this statement that your attitude could be one of your other issues.

  • Why isnt my sound working on my ipod

    why isnt my sound working on my ipod only when i have headphones in

    If you confirmed the headphones are not the problem.
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Why isnt my ringtone working with facetime?

    why isnt my ringtone working with facttime?

    If you confirmed the headphones are not the problem.
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • HT202853 I have many project made in move HD that are not updating to the new iMovie 10 on my new iMac.  Why is this not working as stated?  How do I get my projects back from backup after old iMac crashed?

    I have many projects made in imovie HD that are not updating to iMovie 10 on my new iMac.  Why is this not working as stated on the article HT202853?  How do I get my projects back from backup after old iMac crashed?

    According to:
    Update projects and events from previous versions of iMovie in iMovie (2014) - Apple Support
    you can update from iMovie versions 7, 8 and 9, but iMovie HD is iMovie 6.
    Maybe you can update in two steps, first from iMovie 6 to iMovie 7, 8 or 9 then to iMovie 10. 
    Geoff.

  • Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?

    Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
    Depending on the system version, and Office Word version:
    - a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
    - other kind of links where the text under display is not a URL, never work!
    I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
    I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
    This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • Why isnt Voice Text working

    Why is this form so compliacated to nagiveate?
    what a piece of trash apple!
    I paid 600 dollar for a phone that doesnt work
    The Voice Text isnt working at alll
    I speak it does the 3 dots then nothing
    Nothing is working here. Fix this PLEASE

    this is a user forum, apple does not offer fixes through this medium.  Other users can help you out if you will give us more details.
    What country are you in?
    Who is your carrier?
    Are you indeed using the iphone 4s?
    have you attempted using the speech to text feature with wifi, or only using cellular data?
    How long has this problem been present?  Was it working any time before?
    thanks

  • Why is this thing so hot?

    So i just got a macbook pro...I love it, yes it is my first good laptop.
    It has it bugs that i wish apple would fix (Like the whine) but i can deal with that.
    My question is why is this think so hot..I almost burned my self. i mean i dont really use it on my lap. but manif i wanted to i better get like a peice of wood first haha..who knows.
    I just want to know that being so hot that it wont like overheat or hurt ne thing inside.
    please let me know.
    thanks.

    This is a hard question to answer, because as far as I know, there is no spec from Apple on "what the right temperature is" and even if there was, there currently is no accurate way of measuring it. Some of us, including myself, are able to only get a temp from one part, and that is the hard drive using the widget you can get from the Apple site.
    My MBP is hot, but it is not "excessive". Having said that, I can tell you that I don't use it on my lap at all, and I can touch it without my screaming in agony! If you have one that is "that" hot, then I suggest having Apple look at it.
    By the way, for anyone interested, last night, my temp of the hard drive was 109F. I took a professional meat thermometer I have (the kind that is an instant read out wherever you put the probe) and it read 104 on the top of left hand side of the keyboard, 97 on the right hand side, 102 where the hard drive is (and where I was getting 109) and 94 on the front right side. I'm not too worried about any of those temps....
    Bob

  • I recently updraded the oporating system on my 4S phone and now I can't get my email.  I've rebooted several times to no avail. What should I do to get this thing working again?

    I recently upgraded my phone software to iOS 6 and now my email will not download.  I have tried to reboot the phone to no avail.  Anyone have any suggestions as to how I can get this phone working again?

    You can't merge the backups, you'll have to delete the backup of your old phone.  If it says it's currently in use when you try, that will normally clear up on its own but may take 3-5 days to do so.  Give it a few days and try deleting the old backup again.
    In the meantime, you can create a manual backup of your new phone on your computer by connecting it to your computer, opening iTunes, clicking on the name of your phone in iTuens, going to the Summary tab of your iTunes sync settings and clicking Back Up Now.  Also go to File>Devices>Transfer Purchases.  Then you'll be safe until you can start backup up to iCloud again.

  • Hard drive caddy - T61 - How does this thing work?

    I have a 200gig hard drive on my T61.  Since my computer has died twice in a year I want to have a cloned hard drive handy to insert and not miss a beat and not fuss with reinstalling everything.
    When I bought the machine I also bouht a hard drive caddy...
    http://shop.lenovo.com/SEUILibrary/controller/e/we​b/LenovoPortal/en_US/catalog.workflow:item.detail?​...
    I bought a SATA 500 gig hard drive and inserted this into the hard drive caddy.
    I inserted the caddy into the CD drive area.
    Now what? 
    When I click on "My Computer" I do not see the drive listed?
    Do I need special software to make a clone of my hard drive on here?   Recommendations?
    I thought Lenovo had one that came with it, but I do not see anything?
    Should "My Computer" see this drive with the caddy?
    All advice greatly appreciated!!

    Good advice, same as the Lenovo Tech support.  Unfortunately it does not see the new drive there either...
    Right clicked My Computer
    Manage
    Disk  Management
    (Only C: drive shows)
    This is the way to initialize drives, a step before cloning apparently to set up a new drive.
    I ordered a SATA to USB cable from Amazon for $28.  Hopefully this will work were yet another Lenovo periferal has failed.
    Very frustrated with Lenovo, definitely my last one.  After buying 3 in a year from Lenovo even with a warranty all I get is attitude from customer service.  One guy told me that backing up was the same as cloning.
    For anyone with the same problem trying to clone, I believe you will need a 3rd party software to make a clone.
    Norton Ghost - $70
    CloneZilla - Free
    1. Get Hard Drive
    2. Connect new hard drive
    3. Initialize new hard drive
    4. Get third party software
    5. Clone

  • Why isnt this  working

    After a big loss of out-pulled hair here is the code:
    setInterval() calls getNewMess function but it happens
    nothing with onNewMess function.
    Instead, if i click refresh-button, it gives me result
    correctly.

    evt.target._parent
    is just using the event argument that is dispatched to and
    therefore received by your listener function. It is dispatched/sent
    by your button component instance. The event object from components
    - in as2 - normally contains at least two properties. A type
    property... in this case that's "click" , because its a click event
    and a target property. The target property is a reference to the
    component instance from which the event originated. It can be
    particularly useful if you have one listener handling events from
    many sources. So.....
    evt.target._parent is referring to the container clip of the
    instance that sent the event. i.e. The _parent of the button in
    this case.
    That's why I replaced it with t (=this) which is a reference
    to the timeline that the button is running in. Now it doesn't need
    to get that reference from checking the _parent of the evt.target
    property from the evt argument. Which means the argument that the
    newMess function receives can be ignored and its no longer reliant
    on it. Sounds confusing but once you "get" it, it all makes sense.
    Eventually, lol.
    And of couse you don't need to have a button if you don't
    want one.

  • Why doesn't this thing work

    I inherited my wife's shuffle as I bought her a nano, well after "inheriting" it for about a week with use on and off, the battery died. As normal, I put the thing on the dock to charge and to load songs, and it did absoloutly nothing, it wouldn't get recognized by the computer, and subsequently wouldn't charge. I suppose what my real question here is, do I have an $80 dollar trinket, or does this fall under the 1 year limited warranty. Any and all help on this matter would be greatly appreciated.
    Thank You

    The post here has links to a troubleshooting document for the Officejet 4620.  If the steps there do not resolve the issue please contact HP Support, even if the printer is no longer under warranty.   If the above does not give satisfactory results then please post back here after contacting HP. 

  • HT204380 Why isnt this working

    I have an Ipad2, every single time i facetime with someone using a iphone 4s, i can hear what they are saying but they can't hear what i am saying.how do i fix this?...i enjoy having to write down what i think on paper, but i would rather talk =)

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
    I saw one post where a user said dust got inside the small microphone hole. Using a vacuum cleaner removed the dust and restored the audio.
     Cheers, Tom

  • Why isnt this working? add container to frame..

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MortgageCalcFrame {
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("Mortgage calculator");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // Add's a container in the frame
            Container content = new Container();
            frame.getContentPane().add(content, BorderLayout.SOUTH);
            JButton btn = new JButton("test");
            content.add(btn, BorderLayout.EAST);
            JTextField input = new JTextField(5);
            frame.getContentPane().add(input, BorderLayout.CENTER);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    Well the problem you got is that the layout of a Container is null. You've got several options here.
    1. You set a layout for your container like this
        Container content = new Container();
        content.setLayout(new FlowLayout());2. You use a different container that inherits from container like Panel or JPanel since this one already got a FlowLayout set.
    Panel content = new Panel();or
    JPanel content = new JPanel(); //better since you're currently mixing Swing components and AWT.

Maybe you are looking for

  • JDBC Sender Communication Channel Error

    Hi, We are facing the below error in Sender JDBC communication channels: The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced.' We are getting this erro

  • Generic extractor on kna1

    I am trying to build a view on certain customer master tables for an extraction requirement and have these questions: How do I create a view on KNA1 and text tables such as t005u, t151t, tvv2t etc.what is the key to tie these tables? Also, how do I t

  • Setting value in cookie using ABAP code

    Hai All, Is it possible to set value in a cookie using ABAP code. Regards, H.K.Hayath Basha.

  • Won't Save, Not Enough RAM

    I have an 8GB RAM Macbook Pro Retina 13 inch. Recently, my photoshop cc won't save files that are only 100mb because it says I don't have enough RAM. I have 8GB of RAM and it has never done this even when I run all the suite at once.

  • Everytime I quit Firefox it re-starts and opens again

    Every time I quit and close down Firefox it restarts and opens again after a few seconds. I then close down the second instance of Firefox and it stays closed. This has been happening forever and I can't seem to find a solution for it anywhere.