Hi Vlado, This is a known issue: https://www.canoo.com/jira/browse/UBA-6810.
There are two problems: 1. ULC does not treat LnF Resource Color separately. 2. ULC does not update background color changes (due to editable and enabled state) to the server. This is not possible because it can happen only in the next round trip and by that time it is already too late. You can find a workaround for the resource color problem in the above mentioned issue link. Basically you need an extension of TextField in order to set resource color as background. Thanks and regards, Janak ----------------------------------------- Janak Mulani email: [EMAIL PROTECTED] url: http://www.canoo.com Beyond AJAX - Java Rich Internet Applications http://www.canoo.com/ulc ----------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vyvojava Sent: Monday, May 19, 2008 9:56 AM To: [EMAIL PROTECTED] Subject: [ULC-developer] seEditable() after setBackground() issue Hi I have a problem with look after this sequence in ULC/Swing: ULCTextField field = ... JTextField field = .... .. field.setBackground(Color.yellow); .. field.setBackground(ClientContext.getColor("TextField.background")); field.setBackground(UIManager.getDefaults().getColor("TextField.background ") ); .. field.setEditable(false) In ULC, the field is white as a result of the sequence above In Swing, the field is gray (default background color of not editable textfield) Attached ULC application log of sequence: background after setBackground(): Color: red = 255, green = 255, blue = 0, alpha = 255 background after setBackground(): Color: red = 255, green = 255, blue = 255, alpha = 255 background after setEditable(false): Color: red = 255, green = 255, blue = 255, alpha = 255 Attached Swing application log of sequence: background after setBackground(): java.awt.Color[r=255,g=255,b=0] background after setBackground(): javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] background after setEditable(false): javax.swing.plaf.ColorUIResource[r=238,g=238,b=238] how can I achieve the Swing behaviour in ULC? Regards Vlado -------------------------------------------------------------------------- Tato sprava a vsetky pripojene subory su doverne a urcene vyhradne osobam alebo organizaciam, ktorym boli adresovane. Ak ste dostali tento e-mail omylom, prosim, upovedomte Chemosvit, a.s. ([EMAIL PROTECTED]). This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify Chemosvit, a.s. ([EMAIL PROTECTED]). -------------------------------------------------------------------------- - _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
