I wanted to change button size in JMenu. I've been trying to make it with setPreferredSize(new Dimension()) method, but it does work only in horizontal way. I was looking for thread with this problem but i couldn't find anything. Woluld you help me?
and the fragment of code:
JMenuBar menubar = new JMenuBar();
JButton jcolor = new JButton();
jcolor.setBackground(Shapes.color);
jcolor.setPreferredSize(new Dimension(100, 100));
menubar.add(jcolor);
setJMenuBar(menubar);