Search:

Type: Posts; User: Farkuldi

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    1,015

    Re: Help with JButtons in a GridLayout?

    SWT allows you to change this default behavior of a gridlayout with GridData objects and the boolean grabExcessVerticalSpace field. As I am new to Swing, I was only wondering if it offered a similar...
  2. Replies
    3
    Views
    1,015

    Help with JButtons in a GridLayout?

    Hi,

    I am building a game in which I have a few buttons set in a JPanel with a GridLayout. This panel is put on the East side of another JPanel which has a BorderLayout. When done this way, the...
  3. Replies
    11
    Views
    1,327

    Re: Help me understand this code?

    Thank you. I understand now. :)
  4. Replies
    11
    Views
    1,327

    Re: Help me understand this code?

    Okay, it says it is zero. But why is it zero? I do not mean to belabor the point, but if 1 is shifted right one place, I do not see how that would produce zero unless there are more rules than have...
  5. Replies
    11
    Views
    1,327

    Re: Help me understand this code?

    Hi,

    I am sorry I did not respond on Sunday.

    I do see the way 1000 shifted right 1, 2, and 3 places becomes 0100, 0010, and 0001, thank you. That makes sense. I guess what I still do not...
  6. Replies
    11
    Views
    1,327

    Re: Help me understand this code?

    Thanks again. I don't seem to be getting anywhere, though. I am trying to see what the code does by putting the println() statements in as you suggested, but when I write

    ...
  7. Replies
    11
    Views
    1,327

    Re: Help me understand this code?

    Thank you. I am trying to make sense of it with some println() statements. I am using Integer.toBinaryString(int i), but it does not return the leading zeros. Doesn't Java have a way to show all the...
  8. Replies
    11
    Views
    1,327

    Help me understand this code?

    Hi,

    This is my first post here. I have have some code that prints out the possible 2-set combinations of numbers in a list, with some numbers on the right side and the rest of the numbers on the...
Results 1 to 8 of 8