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?

Comments
Post a Comment