Hi,
I’m really stuck with this: I would like to place JMenuiItems without LayoutManager. My approach was:
JMenuItem jMenuItemZO = new JMenuItem();
ImageIcon image1 = new ImageIcon(“d:\vec25shp\zoomout_up.png”);
jMenuItemZO.setIcon(image1);
getContentPane().setLayout(null);
jMenuItemZO.setBounds(0, 0, 20, 20);
getContentPane.add(jMenuItemZO);
However, this doesn’t seem to work properly: the icon gets disrupted, there’s a gap of some 5 pixels on the left border of the icons and it’s not displayed fully.
So I really wonder how I could place this component correctly.
thanks,
Crest