How can i apply different color for each cell in jlist component?
hi guys i need your help and sorry if my english is very bad..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..
Edited by: ryrene on Mar 21, 2010 12:13 AM
ryrene wrote:
hi guys i need your help and sorry if my english is very bad.
..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..I'll see your tnx, and raise you dve bmbrs & nplm.
Similar Messages
-
How can i do different colors for the category in business graphics
Hi everybody,
i have a business graphics and i need different colors for the category. my business graphics is a gantt.
for example
category1
category2
category2
and so on.
Is there a solution for this? How can i do it?
Best regards,
MarkusSorry.
In my opinion, this requirement can not be resolved.
Generally, we use Business Graphic with Category, we just follow:
DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
lr_graph = cl_wd_business_graphics=>new_business_graphics(
bind_series_source = 'NODE_DYN'
chart_type = cl_wd_business_graphics=>e_chart_type-BARS
height = 340
width = 750
* BIND_TOOLTIP = 'GRAPH.TT'
id = 'GRAPH' ).
DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
lr_bgr_cs = cl_wd_category=>new_category(
view = wd_this->mr_view
bind_description = 'NODE_DYN.CATEGORY').
lr_graph->set_category( lr_bgr_cs ).
If we go to SE24, to check the class "CL_WD_CATEGORY", we cannot find any method or attribute about how to manipulate the "Category Font Color"...
Maybe,any other expert can give you fantastic solution, hope. Best wishes. -
If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
ThanksSorry you get only one notification sound for all email accounts. you can send a suggestion to apple here http://www.apple.com/feedback/
-
Messenger classic: how can I give different colors to the conversati​on
In my old bold messenger I had different colors for the received messages (light blue) and the sent messages (white) of the chat. Now they are both on white. How can I change that?
ThanksThis is probably possible in the "conversation" mode that you can activate in the messages options (hit the blackberry menu key when in the messages window).
There, you can also assign different colors to each account.
Hope this helps
Please don't forget to mark as "solved" if your question is replied and to "like" a useful reply to your post ;-) -
How can i use this color for my Application Background ?? Screen Shot Attached
Hi ,
I can find only plain colors on to Color Picker , but this is line mixed color
How can use this attached Color for my Applications Background Color .
Please find the Screen Shot attached .
please see the background colorAre you trying to apply a gradient background?
In Flex 3 in Application tag:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="#666666"
backgroundGradientColors="[#333333, #666666]">
</mx:Application>
In Flex 4 you need to set the backgroundColor and apply a skin for the gradient:
-------------- mySkins/MyAppSkin.mxml -------------
<?xml version="1.0" encoding="utf-8"?>
<!-- containers\application\mySkins\MyAppSkin.mxml -->
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Metadata>
[HostComponent("spark.components.Application")]
</fx:Metadata>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<!-- fill -->
<s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:entries>
<s:GradientEntry color="0x333333" ratio="0" alpha="1"/>
<s:GradientEntry color="0x666666" ratio=".66" alpha="1"/>
</s:entries>
</s:LinearGradient>
</s:fill>
</s:Rect>
<s:Group id="contentGroup" left="10" right="10" top="10" bottom="10">
<s:layout>
<s:VerticalLayout/>
</s:layout>
</s:Group>
</s:Skin>
-------------- test.mxml -------------
<?xml version="1.0"?>
<!-- controls\button\PopUpButtonMenu.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
height="100%" width="100%">
<s:SkinnableContainer skinClass="mySkins.MyAppSkin"
width="100%" height="100%"/>
</s:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.chikaradev.com
Adobe Flex Development and Support Services -
How to use the different class for each screen as well as function.
Hi Experts,
How to use the different class for each screen as well as function.
With BestRegards,
M.Thippa Reddy.Hi ThippaReddy,
see this sample code
Public Class ClsMenInBlack
#Region "Declarations"
'Class objects
'UI and Di objects
Dim objForm As SAPbouiCOM.Form
'Variables
Dim strQuery As String
#End Region
#Region "Methods"
Private Function GeRate() As Double
Return Double
End Function
#End Region
Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
If pVal.MenuUID = "ENV_Menu_MIB" Then
End If
Else ' Before Action False
End If
End Sub
#End Region
End Class
End Class
Rgds
Micheal
Vasu Anna Regional Feeling a???? Just Kidding
Edited by: micheal willis on Jul 27, 2009 5:49 PM
Edited by: micheal willis on Jul 27, 2009 5:50 PM -
HOw can i change the color of a cell
How can I change the color of a cell when it is selected. I select the cell by pressing enter, then I want the text in the cell to change color to red, but all the cells in the table change color. Please I would be grateful for some help
Subclass DefaultTableCellRenderer.
public class MyCellRenderer extends DefaultTableCellRenderer
Override
public Componet getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
JLabel lab = new JLabel(String)value);
lab.setOpaque(true);
return lab;
if(isSelected)
lab.setBackground(Color.red);
else
lab.setBackground(Color.white);
Set the columns in your table:
table.getCoulumModel.getColumn(0).setCellRenderer(new myCellRenderer());
table.getCoulumModel.getColumn(1).setCellRenderer(new myCellRenderer());
etc. for each column in your table. -
Different link for each cell on table item
hello..,
I have one table item on my WAD template.
I created Characteristic Structure/Selection for rows and Key Figure Structure/Selection for columns.
There is a requirement to jump to different report for each cell on that table.
Is it possible?
I try to created class "ZCL_MYCLASS" with superclass of "CL_RSR_WWW_MODIFY_TABLE".
And put some code on HTML as below:
<P><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER"/>
<param name="MODIFY_CLASS" value="ZCL_MYCLASS"/>
ITEM: TABLE
</object></P>
For testing purpose, I put coding on CHARACTERISTIC_CELL method:
if I_CHAVL = 'Revenue'. "This is selection description
c_cell_content = 'R_e_v_e_n_u_e'.
endif.
But, it seems that it doesn't work.
The question:
1. How do I create simple MODIFY_CLASS, just for testing purpose that what I modify in class is already correct.
2. How to debug class on WAD?
Thanks in advanceNot statically, but you can do this in code:
That's a method on the left and a property on the right.
I don't know if this will work as you expect (it should change the tip strip, but I don't know if it will appear like you want it to), so you can also implement this yourself by having a string indicator which you show and move around using its properties.
Try to take over the world! -
Can we change the color of each cell in TableView in HTMLB
Hi
I want to change the cell color in TableView dynamically.
Can we change the color of each cell in TableView in HTMLB?
If yes, give the exact solution.
Regards,
NithyaHi Nithya,
You would have to implement your own ICellRenderer, see http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/table/ICellRenderer.html and then use http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/table/TableView.html#setCellRenderer(com.sapportals.htmlb.table.ICellRenderer)
Also see TableView Cellls and how to add colors to table cells
Hope it helps
Detlev -
A quick way to set different color for certain items in JList?
is there a quick way of setting different color for certain items in JList?
Either use HTML strings as the values in your JList (quickest, but may not be the most convenient, especially if your model isn't just text), or create your own ListCellRenderer (e.g. extend DefaultListCellRenderer).
There is no such thing as "list.setItemForeground(int index, Color c)". You'll have to use one of the methods above. -
How to set up different realms for each server ?
I am using weblogic 6 sp1.I have a domain with several servers. i want to assoicate or use different custom security realm for each server.However -on weblogic console- there is no 'Target' tab in the Security node ,and no way to set up multiple Security nodes.How ca i do this (or can i)?
Main reason why is this:
Imagine situation I have 2 servers A and B both of them bellongs to domain SomeDomain.
Server A is as WebServer and server B hosts all EJBs. And server A is outside
firewall (does not have DB access). But i would like to use RDBMS realm so what
to do in this situation. Place both servers in different domains and in server
A install proxy realm for RDBS realm ?
"Tom Moreau" <[email protected]> wrote:
>
You can't have a different realm for each
server. There is only one realm for all
servers - think of it as there is only
one set of authentication & authorization
information (that is users/groups/permissions)
and it applies to all servers.
Why do you want each server to have its
own realm? If someone tries to log in,
do you want WLS to automatically route
them to a server who is capable of logging
them in? I'm having trouble understanding
why you want this feature.
Thanks,
-Tom Moreau
Rachel <[email protected]> wrote:
I am using weblogic 6 sp1.I have a domain with several servers. i want
to assoicate or use different custom security realm for each server.However
-on weblogic console- there is no 'Target' tab in the Security node
,and no way to set up multiple Security nodes.How ca i do this (or can
i)? -
I have multiple emails, how do I add different signatures for each email address
I have multiple emails for different companies I work for, how do I add a different signature for each one, it seems like I have to use the same one for all of them
Thanks. I think I'm on the right track. I added the email address to my contacts and double clicked the image icon to change it, but it only lets me snap a new picture or select an image from another location. What is the folder location of the stock icons that come with Mac OSX?
-
Using a different color for each event in a calendar?
I don't know if this is possible. If I have a calendar that is green. Every event I set up in that calendar is green. So if you have a full day of events each day on the calendar just looks like this mass of green.
Is there any way (as I've seen in other calendar apps.) to change the color for each event so that they stand out more.
I see references on the net to an iCal plugin called iCalibrate which seems to do this but it also doesn't seem to be available any more? But it said...
" iCalibrate 1.3 can now change any color, anywhere in any of your calendars"
That's pretty much what I'd like to be able to do.
Pat.Ok I found a similar question on this forum that was answered and helped. If anyone comes across this wondering the same thing, copy and paste your SpryMenuBarHorizontal.css file and rename the copy to something like "(Title_Of_Page)SpryMenuBarHorizontal.css" and then replace "SpryMenuBarHorizontal.css" in your code to <link href="../SpryAssets/(Title_Of_Page)SpryMenuBarHorizontal.css" and then you are good to go.
-
How do you make a SpryMenuBar a different color for each page?
Hey everyone. I'm new to web design and dreamweaver is definitly kicking my butt. Anyway, I'm trying to create a simple website for a foundation and I want to make each page have a different color Sprymenubar to match the color theme of the different pages. The site will only have about 6 color themes max so this shouldn't be a huge undertaking. The trouble I'm having is I have created the home page (the color green) and right now I'm working on the second page (the color blue). When I added a new sprymenubar and changed the CSS Rule to make the color of the menu blue and the hover color light blue it then changes the color of the menu on the home page from Green to Blue. How annoying! I even tried starting from scratch and inserting another horizontal sprymenubar but I can't seem to make another horizontal sprymenubar with a whole new set of rules independent from the first one. What can I do? Do I have to make an editable region or am I just not clicking a certain button to make the new menubar independent from the first one?
Examples
First this
Then this
And then this happens
Let me know!!Ok I found a similar question on this forum that was answered and helped. If anyone comes across this wondering the same thing, copy and paste your SpryMenuBarHorizontal.css file and rename the copy to something like "(Title_Of_Page)SpryMenuBarHorizontal.css" and then replace "SpryMenuBarHorizontal.css" in your code to <link href="../SpryAssets/(Title_Of_Page)SpryMenuBarHorizontal.css" and then you are good to go.
-
TabBar - different color for each tab. How To?
(Flex3)
Fairly simple requirement: I have a TabBar and I want each tab to have a different color.
Seems like there should be a simple way to do this?
I thought I found an answer here, but I can't find it. Had something to do with retrieving each Tab instance from the TabBar and setting styles on it.
Thanx.... woohoo!! got it by playing around (per usual)
var tab:Tab = tabBar.getChildAt();
tab.setStyle("backgroundColor", ); // sets the color when the tab is selected.
tab.setStyle("fillColors", [, ]); // sets the unselected fill
tab.setStyle("fillAlphas",[, ]); // optional
Maybe you are looking for
-
Stories and GOPs - Open or Closed
Hi All, I'm currently working on a DVD which is going to make use of stories to play different versions of the main feature (one version playing a concert with interceding documentary sequences and one where the docs are skipped). I have been trying
-
Do i need to jailbreak my phone just to update from the latest software?
I purchase 4S from retails shop here in UAE my network carrier is Etisalat when i connect to Wifi it shows update software i want to update it but i have a doubt. a doubt maybe it will hang or it will not work do i need to jailbreak the phone or no n
-
Restriction to access schema objects
Hi, Is it possible to give restriction that connect with the user in oracle but can not view any object. And if we will run the query select count(*) from user_objects; will give "0" but if we write a query for user created table, we can access the t
-
HI Experts, How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows :Code : for condition 2, it wil show :Company : I mean it should be dinamic. Thanks. Khan.
-
Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.