Search:

Type: Posts; User: javapenguin

Search: Search took 0.42 seconds.

  1. Replies
    18
    Views
    2,686

    Re: Crazy array

    I can't get them to work. I've tried all day. Can't find anything.

    I can't extend JPanel as I need to extend JFrame for other things.
  2. Replies
    18
    Views
    2,686

    Re: Crazy array

    Ok, so far I can add one, but it's too small and doesn't do what I wanted. How do you get it to be the same size as the JPanel?
  3. Replies
    18
    Views
    2,686

    Re: Crazy array

    I meant so I could scroll the JFrame down if I had more buttons than would fit.
  4. Replies
    18
    Views
    2,686

    Re: Crazy array

    Also, how would you add scroll bars to a jframe itself, not just have one in it?
  5. Replies
    18
    Views
    2,686

    Re: Crazy array

    I thought I tried that but it printed

    o
    o
    o
    o
    o
    o
    o
    o
  6. Replies
    18
    Views
    2,686

    Re: Crazy array

    No, that code tells me that it is going to index 4, which doesn't exist. If it does go into an infinite loop, it means the problem is fixed. As of right now, that while keeps it from throwing an...
  7. Replies
    18
    Views
    2,686

    Re: Crazy array

    No, it never prints because for some odd reason it goes up to four, even though the length is 4, and I told it to be less than length.
  8. Replies
    18
    Views
    2,686

    Crazy array

    I'm trying to make an algorithm that'll solve this puzzle:

    0000
    0000
    0000
    0000

    Where you remove just six 0 s and get an even number of 0s in every...
Results 1 to 8 of 8