posted 21 years ago
hi all,
I have an array of buttons and I add all buttons to Horizontal Box. Then I add Box to JPanel which is BorderLayout. But sizes of all buttons vary according to their text.
I tried setPreferredsize, setMaximumsize,setMininmumsie. but no use.
As BorderLayout doesnt respect preferred component size, I also tried the same with FlowLayout manager. still doesnt work.
ne idea how can i make all buttons of the same size?