Search:

Type: Posts; User: johnvasgird

Search: Search took 0.56 seconds.

  1. Re: What is the easiest way to change a single character in a string?

    dogs = dogs.replace('o','u');

    This take a specified character and replaces it.
  2. Replies
    3
    Views
    307

    Re: Hi, i have a simple question.

    Alright I see your problem. Your problem is this.

    all your final int (weekday) = number.

    when you put a weekday into a system.out its always going to give a number... because you set it as a...
  3. Replies
    8
    Views
    530

    Re: JPanel new FlowLayout

    Wow okay, I figured out I was doing everything right. I used a conditional statement to compare the classes, and if the classes were the same, it would print something out. I used print() instead of...
  4. Replies
    8
    Views
    530

    Re: JPanel new FlowLayout

    I'm sorry if I didn't make sense. What I meant is I am use to doing stuff like

    MyClass newClass = new MyClass();

    not doing a new inside a parenthesis like this

    newClass.getSomething(new...
  5. Replies
    8
    Views
    530

    Re: JPanel new FlowLayout

    Alright thanks for the reply. I tried the scenario out that I suggested to no success. It said that object layout could not be found because the class did not exist. The only thing I could think of...
  6. Replies
    8
    Views
    530

    Re: JPanel new FlowLayout

    Hey Norm, thanks for the response. Im still a little confused then. According to the code, setLayout is a method right? How does a method take a class an know what to do with it? I mean would the...
  7. Replies
    8
    Views
    530

    JPanel new FlowLayout

    I know how to use layouts and everything, but my questions is, why do I have to do a new on the FlowLayout?
    myPane.setLayout(new FlowLayout());

    I really just need an explanation on why it...
Results 1 to 7 of 7