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.
Type: Posts; User: jocdrew21
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.
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...
Centering the panel onto the frame... Obviously it's not doing what I thought
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.
...
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++)
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...
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)
{...