Help with GMAIL in Mail Program....

Hi,
I am using the Apple Mail Program in Leopard and just picked up a Gmail account. I want to set up my Gmail account on 4 different computers work/home/laptop) that I access all the time and am hoping I can set it up so that wherever I check my mail it looks more or less like it does on Gmail.com with respect to the emails:
1. All mail that I've deleted on another computer is gone from all the other computers when checking mail on those other computers. Is that possible??? Currently, I use a bellsouth.net account and a .mac account, and when I log on to any of the computers via the mail program, it gives me all of my 'new mail', whether or not it was deleted on another computer.
2. Sent mail. Is there any way to send it on one computer's Mail program and have it show up in my Sent box on the other computers?
3. Ditto on Trash and other folders
I did try to set it up my Gmail account using IMAP but I thendeleted the account on Mail because it looked 'weird'. I had a Mailbox in my Inbox for the Gmail account and then also another whole separate, duplicate Gmail account (with All Mail, Drafts, Sent Mail, Spam, Starred, and Trash Folders) further down the left side of mail. In testing an email to gmail account from my .mac account, the mail ended up in two places in my Mail and deleting one did not delete the others.
If this cannot work, I can just go to gmail.com. BUT, I so love MAIL that I am hoping there is a fix to all this.
Thanks in advance for any help you can provide.

My recollection is that unless you are a paid Hotmail account member, you cannot use Mail. Do a search within the discussion group, as I am not an expert, but I recall not getting Hotmail for that very reason.
Perhaps give gmail a try.....
That said....I still need some help with my posting! So please and thank you.

Similar Messages

  • Help with gmail and mail

    Hi new to the mac when i put my gmail account into mail it keeps trying to download all my old mail as new, is there anyway I can stop it and just get the mail from now on in the app?

    If you are accessing Gmail via IMAP: no. If you are accessing it via POP, then
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP"
    4) select the option "Enable POP for *mail that arrives from now on*"
    Good computing.
    floba
    (MN547)

  • Need help with Rules for mail accounts

    Today I deleted a rule for a mail account and now I cant receive mail in 4 of 8 accounts. I'm not experienced with Mac's Mail program. Id there something you have to do for multiple accounts to recieve all mail? I can send but not receive.
    Help!
    ~ Tammy

    It's hard to believe that deleting a rule could have a bearing on the ability to receive messages from any account... unless that rule did something that prevented subsequent rules to process the messages that you apparently can't receive now.
    That is, either having deleted the rule has absolutely no bearing on your problem, or the problem is that those messages are now being processed in an unexpected way by some of your other rules.
    What type of accounts are these (POP, IMAP, .Mac)? What does "I cant receive mail in 4 of 8 accounts" mean?

  • Problems with built-in mail program

    Hi there, I am using the built-in mail program with my Yahoo mail account and for a few days now I cannot access my mails anymore. It always asks me for my password, I type it in and then it asks me again although I clicked on "save". Just to make sure: the password is correct and everything was working a week ago.
    Regards.

    Hello itohan_edos, 
    Welcome to the forums. 
    Have a look at this article which should help you with your issue. 
    Yahoo! email account may prompt to re-enter the account password on the BlackBerry PlayBook
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Help with Gmail IMAP in Mac Mall: Folders transfered from Exchange server

    I'm in the process of migrating a mail account from an Exchange server over to Goggle Apps. I've transfered all old mail and the existing Exchange folder structure over to Gmail. Gmail doesn't recognize folders but instead reads the folder structure as Labels. When the account is subsequently imported into Mac Mail it appears that the orgiginal Exhange folder structure holds on the other side, which was my intent. These folders appear in Mail within the Mailboxes>Inbox.
    However, there doesn't seem to be a way to insert a new folder into the Gmail IMAP account within the Inbox folder structure. I have successfully created a new "Mailbox" in Mail, but this appears to get inserted into the local version of the Gmail account much lower on the left hand side bar. It seems that I can pick up the "Mailbox" once it is created and move it up into the intended location, but only as a sub-folder. I am not able to promote it to the desired heirarchy or intended location.
    Does anyone have any history with this or possibly a fix or suggestion?
    Thanks!

    My recollection is that unless you are a paid Hotmail account member, you cannot use Mail. Do a search within the discussion group, as I am not an expert, but I recall not getting Hotmail for that very reason.
    Perhaps give gmail a try.....
    That said....I still need some help with my posting! So please and thank you.

  • Connection failures with GMail in Mail 6.0

    After upgrading to Mountain Lion, Mail transferred my accounts to the new format and since then I have been having connection issues with my GMail accounts. The strange thing is that they connect fine as soon as I open / restart Mail, but fail to connect after some time, with no apparrent solution. I've triple checked all settings, which worked fine under Lion and still work fine initially. I've never seen a problem like this where the accounts stop working after a certain time, so I'm stumped. Any help would be appreciated!

    Thank You iPatA
    You solved my problem! 
    I just wanted to add a second option for people who find this thread but want to keep their 2 step verification with gmail & upgraded Mountain Lion - Mail6.0.
    From other thread...
    Found solution, Yeay!   Mail 6.0,  Mountain Lion (osx 10.8, upgraded) is not compatible with Gmail if one has 2-step verification set up on their gmail security settings.
    There are 2 options to solving problem
    1)   https://discussions.apple.com/message/19109209#19109209)
    This will take you through the process to disable 2-step security feature on gmail security page. Thank You  iPatA.
    2)   http://support.google.com/accounts/bin/answer.py?hl=en&ctx=ch_b/0/SmsAuthConfig& answer=185833
    This will take you through the process of assigning an "application specific password" to upgraded Mail 6.0 for successful communication between Mail 6.0 Mountain Lion while Keeping a 2 step verification process if you prefer.
    A looking for way I can give you "This solved my question" check & points.  Let me know if you know how I can do this.   Option not popping up in thread.
    You Rock
    My original post:
    Upgraded to Mountain Lion a week ago suddenly unable to receive incoming emails from Mail.6
    https://discussions.apple.com/message/19210733#19210733
    Message was edited by: Laila

  • Help with OSX server mail setup

    Please if anyone can tell me what I am doing wrong, I would be very grateful.  I have a company with an externaly hosted website and an an internally hosted email (OSX server).  I have everything kind of working, but some things don't seem quite right.  I'll explain below:
    I have a purchased domain: mycompany.com hosted by godaddy.
    I am using Godaddy name servers: ns65.domaincontrol.com and ns66.domaincontrol.com
    The external godaddy DNS has an a name entry for my mail server: mail pointing to 123.123.123.123 (which is my companies external static IP address).
    There is also a null (@) a name record for my website hosting service (squarespace) pointing to 456.456.456.456
    There is a cName record www pointing to the squarespace domain "www.squarespace6.com"  (know this is unusual, but it is how squarespace asks this to be set up and does not work otherwise)
    There is an MX record with priority 10 and host name @ pointing to mail.mycompany.com
    I have a airport extreme router with the appropriate ports forwarded to the OSX server.
    The DNS servers on the router are pointed to the internal IP address of the OSX server
    I did not change the domain name on the router (mistake?) it is currently san.rr.com
    On the OSX server I have set up host name to be mycompany.comDNS is set up with primary zone being mycompany.com
    Primary Zone entries include
    nameserver = mycompany.com
    machine record host name is mycompany.com and the IP address is the internal IP address of the OSX server
    another machine record with host name "mail" and IP address is the internal IP address of the OSX server.
    Finally, there is a mail exchanger record with mail server "mail.mycompany.com" and priority 10
    There are 2 entries autocreated in the Reverse zone
    Mail is setup and running on the OSX server providing mail for "mail.mycompany.com"
    Users are setup with email address: [email protected] (note: without the mail subdomain - I think this is OK?)
    I am using self signed certificate.
    In my clients (windows Thunderbird, Mac Mail, iOS mail), the settings are for the incoming mail server host name to be "mail.mycompany.com" and the outgoing also to be "mail.mycompany.com"
    I woud have expected this to be imap.mycompany.com and smtp.mycompany.com respectively, but it doesn't work when I input these values and works with the former.  Have I set this up wrong??  imap seems to require SSL on port 993 and SMTP seems to require TLS on port 587.Outlook on PC gives me an error that after googling appears to be a problem with not recognizing a fuly qualified hostname form the SMTP client.  I see the fix, but wanted to know if that meant that my server didn't have a fully qualified host name and whether I should change that rather than just remove that restriction???
    The final problem is that my outgoing emails seem to be getting caught up in other people's spam filters too frequently.  What is the main reason for this?  Is it because I have set something up wrong and it brings up flags or is it simply because I am not a huge hosting company, or somethign else althogether?
    If you've gotten this far, big thanks!  If you can help me, even more thanks!

    Well, actually they are both getting caught up in spam filters and bounced back.  I actually realized that part of the problem is that I have a dynamic IP address, but it doesn't change.  Regardless, on the bounce back it looks like hotmail and other domains are rejecting email from my IP and recognize it as dynamic.  This was a test server that i would by physically taking to my business where there is a static business IP address (Cox).
    Sorry for the very long original message, but it seems that most people don't post enough information for the problem to be solved in their original posts and I was hoping to provide as much detail as possible.
    The other is the question of "are things set up right?"  It seems strange to me that both my outgoing and incoming servers are "mail.mycompany.com" and not imap.mycompany.com and smtp.mycompany.com and I wonder if this is going to cause me to have problems?
    Is it a problem that my email addresses are [email protected] and not [email protected]?
    Was I supposed to change the domain name on the router?
    Also is it going to be a problem that I am using a self signed certificate?

  • Safari won't open web page on my domain with apple e-mail program open

    Mail Version 3.2
    Imac 2.4 ghz 3 gig ram
    Mac OS x 10.5.2 up to date
    After installing Safari 3.1, I have had an issue that I thought was going to drive me mad. If I have the mail program open, I cannot access any webpage on my domain. Lets say my domain was vvv.com. If I have the mail program open I cannot access www.vvv.com, no any subdomains on there. If I close the mail program and then just refresh the page in the browser, it works just fine. I have searched thru the forums, but cannot identify a solution. If anyone has an idea for me to try, I would appreciate any feedback and helpful hints. Yes, I know that I can just close the email program, but I am in the process of starting up a business website and having to remember to open my email program every so often is something I don't need.
    And by the way, the problem also affects firefox also.
    Thanks in advanced..

    This forum is for troubleshooting compatibility issues between Macs and Windows, not Safari.
    You may want to re-post your question in the Safari discussions:
    http://discussions.apple.com/category.jspa?categoryID=169

  • Help with setting up Mail on 2 Macs?

    I'm switching from Mailsmith to Apple Mail. I have exported all my Mailsmith mailboxes and successfully imported them into Mail on the desktop Mac, then recreated each in the On My Mac section and dragged all the pertinent messages from the imported boxes to the newly created ones.
    This is my first experience with IMAP and Mail and while I like the fact of being able to access all my incoming mail on both Macs - the G4MDD and the MBP - they run different versions of Mail as the G4 has Leopard 10.5.8 installed while the MBP runs Snow Leopard 10.6.8 with its later version of the Mail app.
    What I would like to do is have the same mailboxes on both Macs. Is there any way of exporting or moving the database of the On My Mac mailboxes from Mail on the G4MDD to Mail on the MBP?
    I'm not sure how this is supposed to work, but I imagine one keeps the active online version's Inbox etc. fairly lean and archives messages to the appropriate mailboxes in the On My Mac section, but unless one does it on both Macs, one no longer would have access to the archived messages on the other machine. Or does one create all the mailboxes in the online/upper portion of Mail so they will all be online and thus always available to all Macs? But if something happens (server messups do happen, even to Apple) one would then risk losing all past history, since the reference Mail is the online version and not the local ones.
    Colour me confused. Newbie to Mail so I would appreciate any advice.
    Thanks

    Worries
    Ok, I've read another article where it says, similarly to the Help bit you quoted:
    "In Mail, you can simply drag one or more mail-boxes from your mailbox list onto the icon representing your IMAP server. Mail copies the mailboxes (even nested ones) and their contents to the server, creating new mailboxes as needed."
    I can't find any icon representing my IMAP server in the Mail window. Nor do I see any IMAP accounts in that window. I see Inboxes for my various accounts (as well as Sent and Trash) but nothing as described in the above quote. Dragging or Option dragging a Mailbox I had created from the On My Mac section to the upper one dosn't work. Sigh. What am I missing?

  • Help with setting up mail

    i want to use the mac mail application...i cant figure out how to set it up...i have a hotmail account...if hotmail doesnt work please tell me how to use gmail or yahoo accounts please....i am not very good with figuring out things on the computer so step-by-step directions would be nice!!...you know what just tell me how to step up all three...

    I know you can do it with Gmail.
    Here's what Google says:
    https://gmail.google.com/support/bin/answer.py?answer=13275
    I'm just passing this along as I have never done it myself.
    Regards,
    Steve M.

  • Please help with structure of my program

    I am hoping someone can help me with a motor control program that I am
    writing.  The program is too large to post here, but I attached a
    rough outline of the program.  I think the problem is with the
    higher level logic, so hopefully that will provide the necessary
    information. 
    I have a front panel with lots of buttons to control the motors (eg:
    power, stop, start).  There is an event structure that contains
    most of those buttons (power, start, etc), but if that structure is
    exectuting, the other buttons won't work.  I need to be able to
    stop the motors and exit at any time (for safety), so I made another
    event structure that contains the stop and exit buttons.  Is this
    the right way to do this?
    Also, I want all the loops in the program to run continually until the
    exit button is pressed.  Since the exit button actually calls
    exit.vi and closes the whole program, I just wired a F constant to the
    stop on the while loops so they never stop.  Could this be causing
    my problems? 
    Hopefully I provided enough information here, but if not, please write back and let me know.
    Thanks,
    Kasey
    PS. In case anyone wonders why the whole thing is in a sequence, I need
    it for other aspects of the program (safety lights, etc...).  I
    doubt it makes a difference, but I wanted to include it.
    Attachments:
    screenshot.jpg ‏258 KB

    This is the first time I have seen a case where it is useful to have two or more event structures in one program.  Since they are in separate parallel loops, I would think there would not be a problem.  I like the idea that the program can be stopped in the middle of an event, for safety reasons.  Great structure, Kasey.  The only thing I would add is to make sure that your exit vi gracefully shuts down the program.  Like if files or references are open, they get closed before terminating the vi.  Just be on the look out for race conditions since you have 3 events that can happen at one time.  One event might affect some indicator that is being handled by another event.  Also, instead of wiring a false to the other loops, maybe you could use local variables of one general stop boolean.  Since your exit vi stops all execution, it may not make much of a difference.
    - tbob
    Inventor of the WORM Global

  • Help with a Word Counting Program..

    I need some help with a program I am trying to write
    The program is being written in BlueJ.
    Im just starting the program and am completely confused on how I should write this...
    But here is what I have to do..
    I have to use a scanner to scan a Text file and count the # of Words the number of Vowels (including Y when it is) and the # of Palindromes (Word spelled same forward and Back) as well as which Palindromes are being used.
    It would be good to have a class to clean the text and a seperate class for the tasks...
    I do not want to use anything other than "If" statements and while loops (no "for" loops) and only use Printwriter as the output file writer.
    Thnx to anyone in advance

    I have a basic Vowel coding that doeswnt work...
    public class vowel{
    String word = "heyyou";
    String vowels = "aeiouy";
    int[] countv = new int[vowels.length()];
    int countv2;
    int i=0;
    if(i<word.length();) { i++ {
    if (int j=0 && j<vowels.length()) {
    return j++;
    if (word.charAt(i)==vowels.charAt(j)) {
    countV[j]++; countV2++;
    for (int i=0; i<vowels.length(); i++) {
    System.out.println("Vowel "vowels.charAt(i)" = "+vcnt);
    System.out.println("Consonants = "+(word.length()-vtot)); }
    I also have a basic Palindrome code that works as a boolean but I need to make it return what the palindromes are and how many of them are there. I wanna know how I would do this.
    public class Palindrome{
    public static boolean isPalindrome(String word) {
    int left = 0;
    int right = word.length() -1;
    while (left < right) {       
    if (word.charAt(left) != word.charAt(right)) {
    return false;
    left++;
    right--;
    return true;
    I would also like to know how to actually start writing the word counter.

  • Help with Rock, Paper, Scissors Program

    I need some help with my program, I got understand writing each of the methods I have to do but then i don't understand how to piece it together to make the program work. in the main method...I didn't complete the scrolling message method I just wanted to get the game itself working first then I was going to complete that method. I just need to know if I'm heading in the right direction or if i did something completly wrong
    import javax.swing.*;
    public class RockPaperScissors
         public static void displayScrollingMessage (String list)
              String header = "Game #\tUser\tComputer\tWinner\t";
         public static void getUserChoice ( )
              int game = 1;
              for ( game = 1; game > 0 ; game ++)
                   String input = JOptionPane.showInputDialog ("Choose Rock, Paper, or Scissors\n Enter\n 1 for Rock" +
                                                                                              "\n2 for Paper\n3 for Scissors\n4 to Exit");
                   String list = "   ";
                   int option = Interger.parseInt (input);
                   switch (option)
                        case 1:
                                  int userChoice = 1;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "/t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);
                                  return userChoice;
                                  break;
                        case 2:
                                  userChoice = 2;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "\t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);
                                  return userChoice;
                                  break;
                        case 3:
                                  userChoice = 3;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "\t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);                              
                                  return userChoice;
                                  break;
                        case 4:
                                  break;
                        default:
                             JOptionPane.showMessageDialog (null, "Error!! Please enter a valid option!"
                                                                                              , JOptionPane.WARNING_MESSAGE);
                        break;
         public static int getComputersChoice ()
              int computersChoice = (int) (3 * Math.random() + 1);
              return computersChoice;
         public static String itemName (int userChoice)
              if (userChoice == 1)
                   String itemName = Rock;
              else
                   if (userChoice == 2)
                        String itemName = Paper;
                   else
                        if (userChoice == 3)
                             String itemName = Scissors;
              return itemName;
              public static string itemName2 (int computersChoice)
              if (computersChoice == 1)
                   String itemName2 = Rock;
              else
                   if (computersChoice == 2)
                        String itemName2 = Paper;
                   else
                        if (computersChoice == 3)
                             String itemName2 = Scissors;
              return itemName2;
         public static string winlose (int winner)
              if (winner == 1)
                   winlose = "You Win!!!";
              else
              if (winner == 2)
                   winlose = "You Lose!!";
              else
              if (winner == 3)
                   winlose = "Its a Tie!!";
         return winlose;
         public static string winnerName (int winner)
              if (winner == 1)
                   String winnerName = "User";
              else
              if (winner == 2)
                   String winnerName = "Computer";
              else
              if (winner == 2)
                   String winnerName = "Tie";
              return winnerName;
         public static void whoWins (int computersChoice, int userChoice)
              if (userChoice == 1 && computersChoice == 1)
                   int winner = 3;
              else
              if (userChoice == 1 && computersChoice == 2)
                   int winner = 2;
              else
              if (userChoice == 1 && computersChoice == 3)
                   int winner = 1;
              else
              if (userChoice == 2 && computersChoice == 1)
                   int winner = 1;
              else
              if (userChoice == 2 && computersChoice == 2)
                   int winner = 3;
              else
              if (userChoice == 2 && computersChoice == 3)
                   int winner = 2;
              else
              if (userChoice == 3 && computersChoice == 1)
                   int winner = 2;
              else {
              if (userChoice == 3 && computersChoice == 2)
                   int winner = 1;
              else
              if (userChoice == 3 && computersChoice == 3)
                   int winner = 3;
              return winner;
         public static void main (String args [])
              getUserChoice ( );
              System.exit (0);
    }

    Here's something to compare to
    import javax.swing.*;
    public class RockPaperScissors
      public RockPaperScissors()
        String[] pick = {"Rock","Paper","Scissors","Exit"};
        int user = 0, computer = 0;
        String result = "", output = "";
        while(user < 3)
          user = JOptionPane.showOptionDialog(null,"Which do you want?",
                               "Rock-Paper-Scissors",-1,-1,null,pick,"");
          if(user == 3) break;
          computer = (int)(3*Math.random());
          result = getWinner(user,computer);
          output = "You chose "+pick[user] + "\nComputer chose " + pick[computer]+
                   "\n\nResult:- " + result;
          JOptionPane.showMessageDialog(null,output);        
        System.exit(0);
      public String getWinner(int player, int comp)
        if(Math.abs(player - comp) > 1)
          if(player == 2) player = -1;
          if(comp == 2) comp = -1;
        return player > comp? "You win.":player < comp? "Computer wins.":"Tie.";
      public static void main(String[] args){new RockPaperScissors();}
    }

  • Help with 7 segment led program

    hey, I need some help with my program. The program is supposed to make digital numbers display randomly with a possible decimal point in it. If the decimal # has a leading zero, then the zero needs to be not displayed. also, when you click the change color button, the numbers and decimal point are supposed to change to one of three preset colors. I've got the numbers changing colors, but I can't get the decimal point to change color, nor can I get the numbers to change randomly.
    package led7segment;
    import java.awt.event.*;
    import javax.swing.*;
    * Robert Lundahl
    * cs1410-002
    * @author Matthew Lohmeyer
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) throws InterruptedException {
            // TODO code application logic here
            JFrame.setDefaultLookAndFeelDecorated(true);
            MyJFrame mjf = new MyJFrame();
            while (true) {
                int deci = (int)(Math.random() * 3);
                int num = (int)(Math.random() * 1000);
                Digit.DisplayNumber(num, deci);
                Thread.sleep(4000);
    package led7segment;
    import java.awt.Color;
    import java.awt.event.*;
    import javax.swing.*;
    * Robert Lundahl
    * cs1410-002
    * @author Matthew Lohmeyer
    public class MyJFrame extends JFrame implements ActionListener{
        private JButton jb1, jb2, jb3;
        Digit d1, d2, d3;
        Oval deci;
        Color c;
        Oval o1, o2, o3;
        public MyJFrame()
            super("LED Display");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setBounds(50, 50, 500, 320);
            setVisible(true);
            setLayout(null);
    //        jb1 = new JButton("Down");
    //        jb1.setBounds(10,225, 75, 50);
    //        add(jb1);
    //        jb1.addActionListener(this);
            jb2 = new JButton("Change Color");
            jb2.setBounds(10,225, 200, 50);
            add(jb2);
            jb2.addActionListener(this);
            jb3 = new JButton("Exit");
            jb3.setBounds(250,225, 100, 50);
            add(jb3);
            jb3.addActionListener(this);
            d1 =new Digit(7);
            add(d1);
            d1.setBounds(10,10,120,190);
            d1.setVisible(true);
            d2 =new Digit(7);
            d2.setBounds(150,10,120,190);
            add(d2);
            d2.setVisible(true);
            d3 =new Digit(7);
            d3.setBounds(300,10,120,190);
            add(d3);
            d3.setVisible(true);
            o1 = new Oval(125, 160, 15, 15);
            o1.setVisible(true);
            add(o1, 0);
            o2 = new Oval(275, 160, 15, 15);
            o2.setVisible(true);
            add(o2, 0);
            o3 = new Oval(425, 160, 15, 15);
            o3.setVisible(true);
            add(o3, 0);
            repaint();
        public void actionPerformed(ActionEvent e) {
            Object j = e.getSource();
    //        if(j==jb1)
    //            d1.incDown();
    //            d2.incDown();
    //            d3.incDown();
            if(j==jb2)
                d1.changeColor();
                d2.changeColor();
                d3.changeColor();
                o1.changeColor();
            else if(j==jb3)
                d1.incUp();
                d2.incUp();
                d3.incUp();
    package led7segment;
    import java.awt.Color;
    import java.awt.event.*;
    import javax.swing.*;
    * Robert Lundahl
    * cs1410-002
    * @author Matthew Lohmeyer
    public class Digit extends JComponent{
        Rectangle rect[] = new Rectangle[7];
        Oval o1[] = new Oval[7];
        private boolean decimal;
        private Color mycolor[] = new Color[]{Color.RED, Color.GREEN,  Color.BLUE};
        private int cindex = 0;
        private int increment =8;
        private Rectangle topRectangle = new Rectangle(23, 10, 66, 20);
        private Rectangle leftTopRectangle = new Rectangle(0, 13, 20, 76);
        private Rectangle leftBottomRectangle = new Rectangle(0, 92, 20, 76);
        private Rectangle bottomRectangle = new Rectangle(23, 151, 66, 20);
        private Rectangle rightBottomRectangle = new Rectangle(92, 92, 20, 76);
        private Rectangle rightTopRectangle = new Rectangle(92, 13, 20, 76);
        private Rectangle midRectangle = new Rectangle(23, 82, 66, 20);
        public Digit(int n)
            super();
            rect[0] = topRectangle;
            rect[1] = leftTopRectangle;
            rect[2] = midRectangle;
            rect[3] = leftBottomRectangle;
            rect[4] = bottomRectangle;
            rect[5] = rightTopRectangle;
            rect[6] = rightBottomRectangle;
            for (int i = 0; i<7; i++)
                add(rect);
    setVisible(true);
    public void HideDigit(){
    for (int i = 0; i<7; i++)
    rect[i].setVisible(false);
    void changeColor() {
    if(cindex==3)
    cindex=0;
    for (int i = 0; i < rect.length; i++) {
    rect[i].setBackground(mycolor[cindex]);
    //o1[i].setBackground(mycolor[cindex]);
    cindex++;
    void DisplayNumber(int n, int decimals)
    n=increment;
    switch(increment)
    case 0:
    displayzero();
    break;
    case 1:
    displayone();
    break;
    case 2:
    displaytwo();
    break;
    case 3:
    displaythree();
    break;
    case 4:
    displayfour();
    break;
    case 5:
    displayfive();
    break;
    case 6:
    displaysix();
    break;
    case 7:
    displayseven();
    break;
    case 8:
    displayeight();
    break;
    case 9:
    displaynine();
    break;
    public void SetDecimal(boolean flag)
    decimal = flag;
    o1.setVisible(decimal);
    // void incDown() {
    // if(increment==0)
    // increment=10;
    // increment--;
    // switch(increment)
    // case 0:
    // displayzero();
    // break;
    // case 1:
    // displayone();
    // break;
    // case 2:
    // displaytwo();
    // break;
    // case 3:
    // displaythree();
    // break;
    // case 4:
    // displayfour();
    // break;
    // case 5:
    // displayfive();
    // break;
    // case 6:
    // displaysix();
    // break;
    // case 7:
    // displayseven();
    // break;
    // case 8:
    // displayeight();
    // break;
    // case 9:
    // displaynine();
    // break;
    void incUp() {
    System.exit(WIDTH);
    // if(increment==9)
    // increment=-1;
    // increment++;
    // switch(increment)
    // case 0:
    // displayzero();
    // break;
    // case 1:
    // displayone();
    // break;
    // case 2:
    // displaytwo();
    // break;
    // case 3:
    // displaythree();
    // break;
    // case 4:
    // displayfour();
    // break;
    // case 5:
    // displayfive();
    // break;
    // case 6:
    // displaysix();
    // break;
    // case 7:
    // displayseven();
    // break;
    // case 8:
    // displayeight();
    // break;
    // case 9:
    // displaynine();
    // break;
    void displayzero()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(false);
    leftBottomRectangle.setVisible(true);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displayone()
    topRectangle.setVisible(false);
    leftTopRectangle.setVisible(false);
    midRectangle.setVisible(false);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(false);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displaytwo()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(false);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(true);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(false);
    void displaythree()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(false);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displayfour()
    topRectangle.setVisible(false);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(false);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displayfive()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(false);
    rightBottomRectangle.setVisible(true);
    void displaysix()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(true);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(false);
    rightBottomRectangle.setVisible(true);
    void displayseven()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(false);
    midRectangle.setVisible(false);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(false);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displayeight()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(true);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    void displaynine()
    topRectangle.setVisible(true);
    leftTopRectangle.setVisible(true);
    midRectangle.setVisible(true);
    leftBottomRectangle.setVisible(false);
    bottomRectangle.setVisible(true);
    rightTopRectangle.setVisible(true);
    rightBottomRectangle.setVisible(true);
    package led7segment;
    import javax.swing.*;
    import java.awt.*;
    /** Oval Supplier Class
    * Robert Lundahl
    * cs1410-002
    * @author Matthew Lohmeyer
    public class Oval extends JComponent {
    private Color mycolor[] = new Color[]{Color.RED, Color.GREEN,  Color.BLUE};
    private int cindex = 0;
    Oval o1[] = new Oval[0];
    /** post: getX() == x and getY() == y
    * and getWidth() == w and getHeight() == h
    * and getBackground() == Color.black
         public Oval(int x, int y, int w, int h) {
    super();
    setBounds(x, y, w, h);
    setBackground(Color.black);
    /** post: this method draws a filled Oval
    * and the upper left corner of the bounding rectangle is (getX(), getY())
    * and the oval's dimensions are getWidth() and getHeight()
    * and the oval's color is getBackground()
    @Override
    public void paint(Graphics g) {
    g.setColor( getBackground() );
    g.fillOval(0, 0, getWidth()-1, getHeight()-1);
    paintChildren(g);
    void changeColor() {
    if(cindex==3)
    cindex=0;
    for (int i = 0; i < o1.length; i++) {
    //rect[i].setBackground(mycolor[cindex]);
    o1[i].setBackground(mycolor[cindex]);
    cindex++;
    package led7segment;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.event.*;
    import javax.swing.*;
    * Robert Lundahl
    * cs1410-002
    * @author Matthew Lohmeyer
    public class Rectangle extends JComponent
    public Rectangle(int x, int y, int w, int h) {
    super();
         setBounds(x, y, w, h);
    setBackground(Color.black);
    @Override
    public void paint(Graphics g) {
    g.setColor( getBackground() );
    g.fillRect(0, 0, getWidth()-1, getHeight()-1);
    paintChildren(g);
    Edited by: matttheskibum7 on Feb 9, 2008 8:22 PM
    Edited by: matttheskibum7 on Feb 9, 2008 8:27 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Your code does not compile.
    EDIT:
    for instance your Main class alone has a several glaring problems that suggest that you are foundering here. Please see comments in code below:
    public class Main {
        public static void main(String[] args) throws InterruptedException {
            JFrame.setDefaultLookAndFeelDecorated(true);
            MyJFrame mjf = new MyJFrame();
            // why use "while (true)"??? Swing is supposed to be event driven and doesn't need loops like this.
            // do you need to use a Swing Timer instead?
            while (true) {
                int deci = (int)(Math.random() * 3);
                int num = (int)(Math.random() * 1000);
                // why is the method below being called as if it were a
                // static method when it's not?  This is not a legal
                // expression
                Digit.DisplayNumber(num, deci);
                // why is the method below putting the event dispatch thread
                // (the EDT) to sleep.  While this is legal, it's not a smart
                // thing to do
                Thread.sleep(4000);
    }Edited by: Encephalopathic on Feb 9, 2008 10:15 PM

  • Help with implementing two different programs

    I need help with a couple of Java programs that I downloaded. I hope someone can help me. They work great if they're on their own, but if they are both on the same page, the 2nd one works, and the 1st one stops working. I'm pretty new to Java, so I don't know how to debug it too well.. Here's the 1st program:
    Conveyor belt slideshow script-
    ? Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
    //Specify the slider's width (in pixels)
    var sliderwidth="250px"
    //Specify the slider's height
    var sliderheight="19px"
    //Specify the slider's slide speed (larger is faster 1-10)
    var slidespeed=2
    //configure background color:
    slidebgcolor=""
    //Specify the slider's images
    var leftrightslide=new Array()
    var finalslide=''
    leftrightslide[0]='<img src="images/movingwords.gif">'
    ////NO NEED TO EDIT BELOW THIS LINE////////////
    var copyspeed=slidespeed
    leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
    var iedom=document.all||document.getElementById
    if (iedom)
    //Next line edited for readability
    document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">
    '+leftrightslide+'</span>')
    var actualwidth=''
    var cross_slide, ns_slide
    function fillup(){
    if (iedom){
    cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
    cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
    cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
    actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
    cross_slide2.style.left=actualwidth+20+"px"
    else if (document.layers){
    ns_slide=document.ns_slidemenu.document.ns_slidemenu2
    ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
    ns_slide.document.write(leftrightslide)
    ns_slide.document.close()
    actualwidth=ns_slide.document.width
    ns_slide2.left=actualwidth+20
    ns_slide2.document.write(leftrightslide)
    ns_slide2.document.close()
    lefttime=setInterval("slideleft()",30)
    window.onload=fillup
    function slideleft(){
    if (iedom){
    if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
    cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
    else
    cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30+"px"
    if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
    cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
    else
    cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30+"px"
    else if (document.layers){
    if (ns_slide.left>(actualwidth*(-1)+8))
    ns_slide.left-=copyspeed
    else
    ns_slide.left=ns_slide2.left+actualwidth+30
    if (ns_slide2.left>(actualwidth*(-1)+8))
    ns_slide2.left-=copyspeed
    else
    ns_slide2.left=ns_slide.left+actualwidth+30
    if (iedom||document.layers){
    with (document){
    document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
    if (iedom){
    write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
    //Next line edited for readability
    write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';
    background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
    write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
    write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
    write('</div></div>')
    else if (document.layers){
    write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
    write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
    write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
    write('</ilayer>')
    document.write('</td></table>')
    }Here's the 2nd program:
    //Fade-in image slideshow- By Dynamic Drive
    //For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
    //This credit MUST stay intact for use
    var slideshow_width='305px' //SET IMAGE WIDTH
    var slideshow_height='152px' //SET IMAGE HEIGHT
    var pause=5000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]="images/Computer Retail Store.jpg"
    fadeimages[1]="images/Computer S&S ad.jpg"
    fadeimages[2]="images/Computer S&S ad 2.jpg"
    fadeimages[3]="images/Phone S&S ad.jpg"
    ////NO need to edit beyond here/////////////
    var preloadedimages=new Array()
    for (p=0;p<fadeimages.length;p++){
    preloadedimages[p]=new Image()
    preloadedimages[p].src=fadeimages[p]
    var ie4=document.all
    var dom=document.getElementById
    if (ie4||dom)
    //Next line edited for readability
    document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden">
    <div  id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:
    alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';
    height:'+slideshow_height+';top:0;left:0;filter:
    alpha(opacity=10);-moz-opacity:10"></div></div>')
    else
    document.write('<img name="defaultslide" src="'+fadeimages[0]+'">')
    var curpos=10
    var degree=10
    var curcanvas="canvas0"
    var curimageindex=0
    var nextimageindex=1
    function fadepic(){
    if (curpos<100){
    curpos+=10
    if (tempobj.filters)
    tempobj.filters.alpha.opacity=curpos
    else if (tempobj.style.MozOpacity)
    tempobj.style.MozOpacity=curpos/100
    else{
    clearInterval(dropslide)
    nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
    tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
    tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'">'
    nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
    setTimeout("rotateimage()",pause)
    function rotateimage(){
    if (ie4||dom){
    resetit(curcanvas)
    var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.style.zIndex++
    var temp='setInterval("fadepic()",50)'
    dropslide=eval(temp)
    curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
    else
    document.images.defaultslide.src=fadeimages[curimageindex]
    curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
    function resetit(what){
    curpos=10
    var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
    if (crossobj.filters)
    crossobj.filters.alpha.opacity=curpos
    else if (crossobj.style.MozOpacity)
    crossobj.style.MozOpacity=curpos/100
    function startit(){
    var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
    rotateimage()
    if (ie4||dom)
    window.onload=startit
    else
    setInterval("rotateimage()",pause)Like I said, if the 2nd program is put the same page with the 1st, the 1st program stops working. Any ideas? I would really like to implement both of these programs.

    The code you post is javascript, NOT java ! ... but either way, maybe the scripts have variables in conflict, so if you pack each piece of code in diferent functions and then you call the functions it may work.

Maybe you are looking for

  • How can i transfer large video from my iphone

    I have a large video on my iphone 4s that will not transfer by E-mail, Facebook, Utube, text or USB. When I plug in the USB to my computer it will upload everything except my video it remains on my phone. I really need this video for a student is the

  • Server rebooting due to JAVA  error.

    Hi I am sukrut and I have been experiencing some problem on my Fire V880 system.Actually from last day's my server is rebooting auotomatically and when I am trying to investigate the error I am getting following output. BAD TRAP: type=31 rp=2a1026247

  • Attaching USB drive with iTunes library to TC

    Ok, so I've gotten Time Capsule working properly and I'm ready to move my USB drive, which contains my iTunes library, to TC. I tried it this morning, mounted the drive from my MacBook Pro, changed my library location in iTunes preferences, and iTune

  • Reg posting of inspstock

    Dear Gajesh and all, Please advice regarding while doing  usage decision in insplot stock , we want to post some material to control sample and chane the text of unrestricted to Available stock, how to do this Please give step by step Thanks in advan

  • Is Direct Annotation on frames in real-time available in Premiere?

    I received this in my email, wondered if Adobe has something comparable: FASTER. EASIER. AND SLIGHTLY ADDICTING. Email is so old school. With Ci, your production team and clients can comment and annotate directly on frames in real-time. You can then