R
Ryan Stewart
I have two JButtons on a JPanel that uses BoxLayout.Y_AXIS, and I'd like to
make them the same size. I've tried setSize(Dimension d), setSize(int width,
int height) and setPreferredSize(Dimension d). The only one that did
anything was the setPreferredSize. It didn't do a thing to the buttons, but
it made the JPanel (which is the West part of a BorderLayout) wider. How can
I specify a size for these buttons?
make them the same size. I've tried setSize(Dimension d), setSize(int width,
int height) and setPreferredSize(Dimension d). The only one that did
anything was the setPreferredSize. It didn't do a thing to the buttons, but
it made the JPanel (which is the West part of a BorderLayout) wider. How can
I specify a size for these buttons?