Search:

Type: Posts; User: johnvasgird

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,665

    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...
  2. Replies
    8
    Views
    1,665

    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...
  3. Replies
    8
    Views
    1,665

    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...
  4. Replies
    8
    Views
    1,665

    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...
  5. Replies
    8
    Views
    1,665

    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 5 of 5