[sip-comm-dev] problem


#1

I am editing some GUI code stuff to have a better colourful chat
window.....I came across a problem that when i write code to change the back
ground of a panel( say chat conversation panel) it doesn't get changed when
i rebuild and run the program using ant target....I am using eclipse IDE ..
And also i want to know if we editing the code should we have to do any
other things other than ant rebuild and run.....I also like to know how can
i change the existing background of the panels in the chat window( relevant
classes to edit) ..

pls help me..

thank you....


#2

Dear friend,

For the solution of your problem, you have to set property for that specific "background color" property in relevant property file.

Regards,
Jaimin Patel

···

--- On Mon, 7/12/09, nuwan seneviratne <nuwasene@gmail.com> wrote:

From: nuwan seneviratne <nuwasene@gmail.com>

Subject: [sip-comm-dev] problem
To: dev@sip-communicator.dev.java.net
Date: Monday, 7 December, 2009, 9:35 PM

I am editing some GUI code stuff to have a better colourful chat window.....I came across a problem that when i write code to change the back ground of a panel( say chat conversation panel) it doesn't get changed when i rebuild and run the program using ant target....I am using eclipse IDE .. And also i want to know if we editing the code should we have to do any other things other than ant rebuild and run.....I also like to know how can i change the existing background of the panels in the chat window( relevant classes to edit) ..
pls help me..
thank you....

      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


#3

Hi Newan,

More specifically you could have a look at colors.properties (resources/colors) and defaults.properties (resources/config). Almost all frames and dialogs in SIP Communicator extend the SIPCommFrame and SIPCommDialog and they have a custom look configurable through the color properties.

In order to change window background you need to change the following:

# The background color of all windows and dialogs.
service.gui.MAIN_BACKGROUND=4A9BDB

# The end color of the gradient painted in all windows.
service.gui.MAIN_BACKGROUND_GRADIENT=E1F0FD

Some configuration properties could be also interesting for you:

impl.gui.IS_WINDOW_COLOR_BACKGROUND_ENABLED=true
impl.gui.IS_WINDOW_IMAGE_BACKGROUND_ENABLED=false

Cheers,
Yana

···

On Dec 8, 2009, at 7:00 AM, Jaimin Patel wrote:

Dear friend,

For the solution of your problem, you have to set property for that specific "background color" property in relevant property file.

Regards,
Jaimin Patel

--- On Mon, 7/12/09, nuwan seneviratne <nuwasene@gmail.com> wrote:

From: nuwan seneviratne <nuwasene@gmail.com>
Subject: [sip-comm-dev] problem
To: dev@sip-communicator.dev.java.net
Date: Monday, 7 December, 2009, 9:35 PM

I am editing some GUI code stuff to have a better colourful chat window.....I came across a problem that when i write code to change the back ground of a panel( say chat conversation panel) it doesn't get changed when i rebuild and run the program using ant target....I am using eclipse IDE .. And also i want to know if we editing the code should we have to do any other things other than ant rebuild and run.....I also like to know how can i change the existing background of the panels in the chat window( relevant classes to edit) ..

pls help me..

thank you....

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Thanks for the help... another one more thing to ask... If i want to change

the backgrounds of the Chatconversation panel and the chat panel from a new
class how can i do it... I tried ChatPanel.setbackGround(Color c) method
..but it didn't work....

And then i change the SCScrollpanel's background ..it worked but it applied
to every panel that extend the SCScroll panel...So if I want to change only
the background of the chatconversation panel how can i do it?

Thanks........