Search:

Type: Posts; User: jocdrew21

Page 1 of 9 1 2 3 4

Search: Search took 0.30 seconds.

  1. Replies
    6
    Views
    147

    Re: gottaCatchEmAll

    Just wondering but what IDK are you using. I know in eclipse there is a way you can have it generate the getter and setters for you, its pretty nice.
  2. Replies
    3
    Views
    78

    Re: Layout Managers

    Just had a lesson on pack that I won't forget... Thanks again, spent hours on this simple task for it to be answered by a simple four lettered word. Another four letter word comes to mind as I wrote...
  3. Replies
    3
    Views
    78

    Layout Managers

    I have read the API and looked at examples but its not answering my question. Which layout would treat a panel as its own entity. Meaning if I made a method that made a matrix of buttons using...
  4. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    141

    Re: HashMap

    I want to take the name and turn it into a integer value 1-22 since my HashMap is size of 22.

    Something like this but I know it does't work...



    int value = (int)name % 22;
  5. Replies
    12
    Views
    188

    Re: List with ArrayList

    I used flowLayout inside the Panel and just resized the Frame in the constructor so the buttons are where I want. I was just thought or hoped there was a better way to make a matrix of buttons.
  6. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    141

    Re: HashMap

    I think this answered my question. Fired at the hip at this one.



    //play with Hash Tables
    void setNames(Node node)
    {
    HashMap<Node, Integer> map = new HashMap<Node, Integer>(22);
    ...
  7. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    141

    Re: HashMap

    I was wondering if I was over looking something and there was a way to just simply send in a name and place it in a hashTable. Perhaps send in a Node and index it by a string value inside of it.
  8. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    141

    HashMap

    When learning HashMaps in C++ I had to create the whole algorithm. In the code I created I could simply place a string into the method and it would store the names for me by turning the string into a...
  9. Replies
    12
    Views
    188

    Re: List with ArrayList

    I am even trying to use BorderLayout and this is my issue. The buttons are huge despite me setting there size. They are the correct size when I use FLowLayout(). However when I try to center them I...
  10. Replies
    12
    Views
    188

    Re: List with ArrayList

    Centering the panel onto the frame... Obviously it's not doing what I thought
  11. Replies
    12
    Views
    188

    Re: List with ArrayList

    I thought about what you said and I changed a few things... Now I am having a different issue as well. I read the API and it appears I am implementing it correctly.


    ...
  12. Replies
    12
    Views
    188

    Re: List with ArrayList

    Ahhhh.. Thank you



    JPanel numberButton(JPanel panel)
    {
    String[] names = {"1","2","3","4","5","6"};
    List<JButton> buttons = new ArrayList<JButton>(6);

    for(int i=0;i<6;i++)
  13. Replies
    12
    Views
    188

    Re: List with ArrayList

    It is a very small program so I will post the whole thing. The error says "Type is not generic" when I take my mouse and put it under the red line that is under List.



    Exception in thread...
  14. Replies
    12
    Views
    188

    List with ArrayList

    I have done this many times before and now I am getting a weird error. Say "Type is not generic", I have all the necessary imports, I do not get it...???



    JPanel numberButton(JPanel panel)
    {...
  15. Re: How to create a program using use Transport Layer Protocol

    Looks like someone was given an assignment for a job interview...
  16. Re: Need help placing mines and another point on a field!!

    Random (Java Platform SE 6)

    Produce random numbers, then assign the variables returned as you see fit.
  17. Replies
    2
    Views
    139

    Re: Rental Management System

    What have you done so far. Post some code and several people will help you think it out.
  18. Replies
    10
    Views
    232

    Re: Hourglass.

    This is the same question you posted a few hours ago. Please continue using that same thread...
  19. Re: Arrays

    This is the same question you just posted but with a different title.
  20. Re: Creating a method

    Please edit your post and wrap your code with code tags:






    YOUR CODE GOES HERE //to make it look like this
  21. Replies
    10
    Views
    232

    Re: HourGlass [Due tonight need help!]

    I threw something together but it doesn't line up perfectly and its just a patch. This might put you on the right track...



    //Top half of hourglass.
    public static void drawTopHalf(int...
  22. Replies
    5
    Views
    165

    Re: MVC Calculator:

    It bugged me all day at work and it just clicked. It was so simple I felt pretty dumb for not thinking of it sooner. It kinda feels like a patch to a poor thought out plan but it is fully...
  23. Replies
    5
    Views
    165

    Re: MVC Calculator:

    I have narrowed down the issue by writing println statements and something odd is happening. The '+' operator is working in the switch statement but the others are not. However in the println...
  24. Replies
    6
    Views
    168

    Re: Need help ASAP

    Create a new instance in the main class of Painting then use its methods accordingly, however look into how to use scanner too...

    Java.util.Scanner.next() Method Example
  25. Replies
    5
    Views
    165

    Re: MVC Calculator:

    @GregBrandon

    Yes I was wondering that as I wrote several else if statements. Once I get the MVC down I will move on. I about narrowed down the issue but it is still doing a few funny things.

    As...
Results 1 to 25 of 222
Page 1 of 9 1 2 3 4