Search:

Type: Posts; User: digitalsystems

Search: Search took 0.28 seconds.

  1. Re: Issues With Layout And Time Being Display

    I think I have spoken too soon in saying that I have completed this. I have split the code into four different classes as per what my lecturer suggested.

    I have one remaining problem that I would...
  2. Re: Issues With Layout And Time Being Display

    thanks for your help with this question. I did not fully understand what you were suggesting so I went back to the professor for guidance and it turns out that many people were in the same question....
  3. Re: Issues With Layout And Time Being Display

    sorry for not responding, thank you very much for your help.
    I have added another arraylist of JLabels that will hold all the jlabels as they are created in the for loop in the actionPerformed...
  4. Re: Issues With Layout And Time Being Display

    I was using it so that I could use the same reference to the array for when I had multiple selections.

    I have moved the creation of the lists to the constructor, I am thinking that I will also...
  5. Re: Issues With Layout And Time Being Display

    sorry, it does not seem to be working for me. I have created two array lists, one to store the names of the cities selected(I am thinking I may need this when I move onto the other part of the...
  6. Re: Issues With Layout And Time Being Display

    at the moment they are not.
    are you suggesting about adding the individual times to a list as they are generated in the actionPerformed method?
    and then perform the an update on them ie (+1000...
  7. Re: Issues With Layout And Time Being Display

    updated with a main method now...



    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.Date;
    import...
  8. Re: Issues With Layout And Time Being Display

    sorry, haven't created one yet, using BlueJ and just creating new instances of it
  9. Issues With Layout And Time Being Display

    Currently doing an assignment for college that involves displaying multiple "clocks" on screen depending on how many cities are selected from a list.

    I have most of it built I believe but I am...
  10. Replies
    3
    Views
    105

    Re: Problem with lists

    Thanks for the quick reply, seems to have solved the problem for me.
  11. Replies
    3
    Views
    105

    Problem with lists

    I have an assignment for college that involves placing randomly chosen words from a text file into a 2-d array. I have nearly completed ithowever I am having difficulty with a list of string type.
    ...
  12. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Guys, thank you very much for your responses.
    I have taken the commas out of the String alphabet, I had thought that they were needed in a string, have learned my lesson on this.
    I have changed the...
  13. Re: Pangram Question (All the letters of the alphabet in a sentence)

    Yes it does compile, please feel free to try it yourself.

    yes I did test it with "the quick brown fox jumps over a lazy dog" ( for which I got a positive response) and "The quick brown fox jumped...
  14. Re: Pangram Question (All the letters of the alphabet in a sentence)

    okay, made the changes regarding the lower case and the braces for the else if statement.

    Not sure I follow you on the suggestion of the arrays. Are you saying to convert all the characters in the...
  15. Pangram Question (All the letters of the alphabet in a sentence)

    I've searched through the forum to see if this question has been posted previously but I can't find it so apologies in advance if I missed it...

    What I am trying to do is to run the program to...
  16. Replies
    1
    Views
    200

    Phone Number Problem

    In this program we are asked to request the user to enter a phone number in the following format:

    (0xx)xxxxxxxxx

    The first number must be 0 and there can be up to 4 digits inside the brackets...
  17. Replies
    8
    Views
    303

    Re: Java error

    Thanks for the response.

    For example if I input "Hello", I return a value of 10 when I would expect to return a value of 6. Or if I input "Tommy" I get a value of 20 instead of 4. I can't see a...
  18. Replies
    8
    Views
    303

    Java error

    Hi all,

    Have an issue with my code below where it is giving me the wrong output. Essentially the code is to scan a word entered to see if it contains vowels. Each vowel(regardless of location in...
  19. Replies
    5
    Views
    304

    [SOLVED] Re: Basic Java Problem

    Thanks for your help, realised my error shortly after I posted it.
  20. Replies
    5
    Views
    304

    [SOLVED] Re: Basic Java Problem

    Thanks, I will go through the announcement topic now.

    On this code, I am not getting the correct output for this program, for example, if I enter the word "Today", I get a response telling me...
  21. Replies
    5
    Views
    304

    [SOLVED] Basic Java Problem

    Hello all,

    Currently studying java in college for first time and cannot see where my error is in the following code, could some one with a lot more experience help me out?

    import...
Results 1 to 21 of 21