Search:

Type: Posts; User: jocdrew21

Page 1 of 10 1 2 3 4

Search: Search took 0.50 seconds.

  1. [SOLVED] Re: getting a char at a location in a string:

    Got it figured it out thank you!
  2. [SOLVED] Re: getting a char at a location in a string:

    Main Question:
    Trying to get rid of a space at a certain location or get rid of the first space found and keep the rest in a file.

    Secondary Question:
    I couldn't help to but to think as I got...
  3. [SOLVED] getting a char at a location in a string:

    I found a fun program online and something so simple is giving me an issue. I c++ it is pretty simple fix, I can just call the strings location like an array. In java this is not the case. So far i...
  4. [SOLVED] Play Framework giving me Action not found in the browser:

    I am self teaching myself Play framework and purchased "Play for Java" from Manning. I following their directions how since the book has been published there has been some updates (naturally). I am...
  5. Replies
    2
    Views
    121

    Re: Java and HTML

    I know how to do this with PHP and HTML, that is quite easy. I am only familiar with JavaEE but I am no expect on the mater, however I study independently daily. I just get pull in several directions...
  6. Replies
    2
    Views
    121

    Java and HTML

    I would like to make a database using HTML and Java. I already made something like this using swing and someone asked me why I choose such a hard way to handle this. I am just looking for some...
  7. Replies
    3
    Views
    74

    Re: Digit separation

    What have you done so far?
  8. Replies
    6
    Views
    138

    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.
  9. Replies
    3
    Views
    75

    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...
  10. Replies
    3
    Views
    75

    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...
  11. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    149

    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;
  12. Replies
    12
    Views
    200

    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.
  13. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    149

    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);
    ...
  14. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    149

    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.
  15. Thread: HashMap

    by jocdrew21
    Replies
    9
    Views
    149

    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...
  16. Replies
    12
    Views
    200

    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...
  17. Replies
    12
    Views
    200

    Re: List with ArrayList

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

    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.


    ...
  19. Replies
    12
    Views
    200

    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++)
  20. Replies
    12
    Views
    200

    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...
  21. Replies
    12
    Views
    200

    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)
    {...
  22. Re: How to create a program using use Transport Layer Protocol

    Looks like someone was given an assignment for a job interview...
  23. 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.
  24. Replies
    2
    Views
    144

    Re: Rental Management System

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

    Re: Hourglass.

    This is the same question you posted a few hours ago. Please continue using that same thread...
Results 1 to 25 of 229
Page 1 of 10 1 2 3 4