Search:

Type: Posts; User: jocdrew21

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,231

    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.
  2. Replies
    12
    Views
    1,231

    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...
  3. Replies
    12
    Views
    1,231

    Re: List with ArrayList

    Centering the panel onto the frame... Obviously it's not doing what I thought
  4. Replies
    12
    Views
    1,231

    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.


    ...
  5. Replies
    12
    Views
    1,231

    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++)
  6. Replies
    12
    Views
    1,231

    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...
  7. Replies
    12
    Views
    1,231

    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)
    {...
Results 1 to 7 of 7