0

The following code isn't working, I would appreciate some help.

HorizontalFieldManager hfm = new HorizontalFieldManager();
hfm.setBackground(BackgroundFactory.createSolidTransparentBackground(Color.BLACK, 0));
Gareth Latty
  • 86,389
  • 17
  • 178
  • 183
Amrit
  • 38
  • 1
  • 5

1 Answers1

1

You are using 0 as alpha value on createSolidTransparentBackground(int color, int alpha).

It will create a fully transparent background (not visible). Check the range of the alpha value in documentation.

It says, alpha - 0 (clear) to 255 (opaque). Try other values for alpha, e.g. 127.

Rupak
  • 3,674
  • 15
  • 23