Java Swing setting JPanel Size

This may not answer your immediate question…but… You set the layout as a GridLayout, but you are using BorderLayout constraints to apply one of the components?? Also, make sure that there are not calls to Test#pack else where in your code, as this will override the values of setSize UPDATED (from changes to question) Remember, … Read more

Return outside method error

From your comment response above, I am going to make the educated guess that you believe that defines a Java method called openingboard. This isn’t the case. Java follows the C paradigm of requiring you to specify your parameters in parentheses, regardless of whether you have any parameters or not. So, the method is a valid … Read more

Queue vs Dequeue in java

Deque is short for “double ended queue”. With an ordinary queue, you add things to one end and take them from the other. With a double ended queue, you can add things to either end, and take them from either end. That makes it a bit more versatile; for example, you could use it as … Read more

How can I set size of a button?

The following bit of code does what you ask for. Just make sure that you assign enough space so that the text on the button becomes visible The X and Y (two first parameters of the GridLayout constructor) specify the number of rows and columns in the grid (respectively). You may leave one of them … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)