hi,
i want to display icons with buttons.screen width is 240.so i have 5 icons of 48*44.if i set focus to false then it looks fine but when i am setting focus it not looks consistent.
below is my code.
for(int i=0;i<imageButton.length;i++)
{
images[i]=Image.createImage("/tab_"+i+".png");
resizedImages[i]=images[i].scaled(48,44);
imageButton[i]=new Button(resizedImages[i]);

//set margin
imageButton[i].getStyle().setMargin(Component.LEFT,0);
imageButton[i].getStyle().setMargin(Component.RIGHT,0);
imageButton[i].getStyle().setMargin(Component.TOP,0);
imageButton[i].getStyle().setMargin(Component.BOTTOM,0);

//set padding
imageButton[i].getStyle().setPadding(Component.LEFT,0);
imageButton[i].getStyle().setPadding(Component.RIGHT,0);
imageButton[i].getStyle().setPadding(Component.TOP,0);
imageButton[i].getStyle().setPadding(Component.BOTTOM,0);
imageButton[i].setFocusable(false);

//imageButton[i].setPressedIcon(Image.createImage("/tab_"+i+"_s.png"));
addComponent(imageButton[i]);


can anyone tell me how can i manage the focus so that my ui wont affect.

thankx