Skip to content

setting the background color of UIButton has no effect #539

@fls-indinf

Description

@fls-indinf

Hi JVx-Engineering Team!

We recently noticed, that applying a background-color on a UIButton in Java has no effect in React.

In Java Swing it does look like that:

Image

In React sadly not:
Image

public class SimpleWorkScreen extends DataSourceWorkScreen {
  private static final long serialVersionUID = 1L;

  public SimpleWorkScreen(IWorkScreenApplication pApplication, AbstractConnection pConnection) throws Throwable {
    super(pApplication, pConnection, null);

    UIButton b = new UIButton("this button is red");
    b.setBackground(UIColor.red);
    add(b);

  }

}

It does seem to at least transfer the property to the React-Side

Image

Thank you for your awesome support 👍

Have a nice day,
Florian

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions