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

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -