473,507 Members | 9,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help to get client's system colour

22 New Member
Hi All!!

We are doing a POC currently wherein we need to get the System colours in the JSP file.
Example: If user has set a specific theme, we want to be able to get the theme details through API's on the JSP.
Based on these we want to apply colours to some custom display components.

All we are getting is AWT related classes. And that too is the server system colours and not the client's.

We need help in knowing if we can get this info by not using AWT? Is it feasible?

Thanks in advance!
Leena
Aug 27 '07 #1
1 1316
dmjpro
2,476 Top Contributor
Hi All!!

We are doing a POC currently wherein we need to get the System colours in the JSP file.
Example: If user has set a specific theme, we want to be able to get the theme details through API's on the JSP.
Based on these we want to apply colours to some custom display components.

All we are getting is AWT related classes. And that too is the server system colours and not the client's.

We need help in knowing if we can get this info by not using AWT? Is it feasible?

Thanks in advance!
Leena
If you want to use AWT then you need to specify the color in JAVA code but if you want to generate the view from server side components means JSP or Servlet or something else then you need to specify the color in, which mark up lang u use to render the page.
You can use it using Javascript or simply specify the color code in your view.

Kind regards,
Dmjpro.
Aug 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
386
by: Supra | last post by:
: error BC30311: Value of type 'System.Drawing.Color' cannot be converted to 'Integer'. Function doColor(ByVal rtb As RichTextBox, ByVal a As String, Optional ByVal f As Integer = 0, Optional...
25
4297
by: madsgormlarsen | last post by:
Hi I am making a tab menu with css, and the tabs changes color depending on wich tab is current. 1. I could load a different css file for each tab/color. 2. I could do some inline css only...
3
10606
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
2
1402
by: Alvo von Cossel I | last post by:
hi, i have a richtextbox in a form and its backcolor property is set a system color (i cannot remember the name) which varies according to the windows xp style e.g. olive green. when the textbox...
4
1468
by: Adam Maltby | last post by:
Hi, I need to do a transparent label but with a difference. I have drawn on my form a custom background using CreateGraphics as I needed an ellipse looking fill in a rectangle - so the actual...
4
2727
by: Supra | last post by:
value of type "Integer" cannot be convert to system.color Public Sub APIHighlight2(ByVal BgColour As Integer, ByVal FgColour As Integer) SelectionHighlightBackColour(BgColour) Dim rtb As New...
3
1242
by: ..:: Kevin ::.. | last post by:
Hello, Is it possible to pick up the colour values used in the XP themes from within .net? I am wanting to set the back colour of one of my forms to the light shade of the theme I am using. ...
2
5364
by: flaper87 | last post by:
Hi everybody!!!! I am developing an aplication, and i want it to stay on the system tray, i found out how to put the icon, but i can minimize it there, What do i have to do?, I'm using python(of...
20
3136
by: Chor Lit | last post by:
Hi, I asked Bjarne Stroustrup about the idea of adding colour standard for C++, and he said that it is very difficult for compiler vendors to change their IDE. But do you think it is possible ? ...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.