Hi,
I have added image in a button in my j2me project using lwuit.My problem is that the image appeared at the corner of the button and it is not center aligned .kindly tell me how to align the image in center.
Hi,
I have added image in a button in my j2me project using lwuit.My problem is that the image appeared at the corner of the button and it is not center aligned .kindly tell me how to align the image in center.
Hi,
you will need to set component alignment...like as:
Image image = Image.createImage("/res/abc.png");
Label text = new Label(image);
text.setAlignment(Component.CENTER);
....................................