Hi! i tryng to change a Dialog's background keeping the borders rounded. i 
make the following aproach (see image) but remains a white border on top.

its possible to set the color for the whole dialog?

my code is:

        dlg.getContentPane().setUIID("GroupExpanderButtonNaranja");
        dlg.getContentPane().getStyle().setMargin(0, 0, 0, 0);
        dlg.getContentPane().getStyle().setPadding(0, 0, 0, 0);

        Container cntAreaButton = new Container();
        cntAreaButton.setLayout(new BorderLayout());
        Button btnCerrar = new Button();
        btnCerrar.setIcon(statResources.getImage("boton_cerrar.png"));
        btnCerrar.addActionListener((l) ->
        {
            dlg.dispose();
        });
        cntAreaButton.add(BorderLayout.EAST, btnCerrar);
        
        dlg.getContentPane().setLayout(new BorderLayout());
        dlg.add(BorderLayout.NORTH, cntAreaButton);
        dlg.getContentPane().add(BorderLayout.CENTER, parContenido);

        
        dlg.showModeless();




If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3ee9ff10-ed66-433b-8c87-363f46b41bc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to