swing - Java button/gridbaglayout -
is there way either set max size of button(or non re sizable), or not allow columns in gridbaglayout change size if component grows ?
i.e btn.setmaxsize(); btn.resizable(false); gridbaglayout.lockcolumns();
this not coding trying achieve. provided.
set below 3 properties max value.
btnnewbutton.setmaximumsize(new dimension(10, 10)); btnnewbutton.setminimumsize(new dimension(10, 10)); btnnewbutton.setpreferredsize(new dimension(10, 10));
Comments
Post a Comment