Dave
Dave

Reputation: 21

smartgwt - make window background transparent / no color

we've tried to make the background of a smartgwt window transparent with no success :/ setting a transparent image as backgroundimage yields nor directly setting a custom style class with a transparent background setting yields no success.

is there any possibility to change the default background color : #ffffff or rgb(255,255,255) to transparent?

thank you in advance, dave

Upvotes: 2

Views: 4413

Answers (4)

Simson
Simson

Reputation: 824

Did you try #setBackgroundColor("transparent") ?

E.g.:

Window window = new Window();
window.setBackgroundColor("transparent");

Worked for me...

Upvotes: 0

brovko
brovko

Reputation: 73

I've found solution in [Showcase] - [Forms] - [Custom Picker] (SmartGWT 2.2):

Try to use code like this:

    dialog = new Dialog();
    dialog.setIsModal(true);  
    dialog.setShowModalMask(true);
    dialog.setShowHeader(false);  
    dialog.setShowEdges(false);
    dialog.setEdgeSize(10);
    dialog.setWidth(980);
    dialog.setHeight(700);  
    dialog.setShowToolbar(false);
    dialog.centerInPage();

I think this line disables background - setShowEdges(false).

Upvotes: 0

user514785
user514785

Reputation:

I think I read that this would be a feature of the new Java JDK 7. So if you can't find an answer that might be the problem. I'm not positive though. Good Luck

Upvotes: 0

Tassos Bassoukos
Tassos Bassoukos

Reputation: 16142

I think #setOpacity(int) should do the trick... Also see #setDragOpacity(int).

Upvotes: 1

Related Questions