I was hoping I wouldn't have to do this but I can't get it to work by doing the set dimensions. I'm posting it all below here. I commented above the line where I was trying to set the dimensions of...
Type: Posts; User: syregnar86
I was hoping I wouldn't have to do this but I can't get it to work by doing the set dimensions. I'm posting it all below here. I commented above the line where I was trying to set the dimensions of...
//This is where I am creating my mainPanel1 and mainPanel2 layout and borders.
Border lineBorder = new LineBorder(Color.BLUE, 2);
mainPanel1 = new JPanel(new GridLayout(4,1));
...
My two buttons "Calculate" and "Translate" is taking up the entire portion of their respected panel when added. How can I shrink the size of the button so it looks normal?
2279