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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -