java - how do i make a JButton fill out two spaces in a gridlayout? -


i have jpanel set gridlayout this:

rightpane = new jpanel(new gridlayout(0,2)); 

in gridlayout, have bunch of jbuttons, how can make 1 of buttons take 2 columns , 1 row, rather 1 row , 1 column?

you need gridbaglayout in case instead of gridlayout.

have @ how use gridbaglayout explained in details along sample code of below snapshot.

is want?

enter image description here


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -