How to change the line's color?
In a linechart, if the backgroundColor of
Application is not "#ffffff",there will be some white
horizontal lines in the linechart. how to change the
line's color?? thanks
Hi, I hope this is what you are looking for:
http://blog.flexexamples.com/2007/11/15/customizing-the-horizontal-grid-lines-in-a-flex-li nechart-control/
Similar Messages
-
How to change the line item storage location during the sales order creatio
How to change the line item storage location during the sales order creatio
Hi Kumar,
I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
Regards,
Rachel -
How to change the selection background color of the selected item in the popup menu of the choice box ?
By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
ThanksThe id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
Example:
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ChoiceBoxTest extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("Example 2");
final ChoiceBox<String> choiceBox = new ChoiceBox<>();
List<String> tempResult = new ArrayList<String>();
for (int i = 0; i < 10; i++) {
tempResult.add("Item " + i);
choiceBox.getItems().setAll(tempResult);
VBox root = new VBox();
root.getChildren().add(choiceBox);
final Scene scene = new Scene(root, 300, 250);
scene.getStylesheets().add("choiceBox.css");
primaryStage.setScene(scene);
primaryStage.show();
public static void main(String[] args) {
launch(args);
choiceBox.css:
@CHARSET "UTF-8";
#choice-box-menu-item:focused {
-fx-background-color: yellow ;
#choice-box-menu-item .label {
-fx-text-fill: black ;
Message was edited by: James_D -
How to change the lines in a standard report
Hello experts, i would like to change the line limits in some ot the standard repoorts, ie RFGSRRCUA and RFBILA00 how do i go about please help step by step?
Tatenda Chaibvain the top of the Report..
REPORT RFBILA00 MESSAGE-ID FR
<i><b> LINE-SIZE 132</b></i>
NO STANDARD PAGE HEADING.
adjust this as per your need.
A. -
How to change the Hyper links color in the XML form
HI SDNs
Do u have any idea how to change the hyperlink color in the xml form. My requirement is as follows.I have created xml form by using xml template and i displayed this xml form by using Km document iview. I need tochange the hyper link color in the xml form content. I dont want to go for manual process by editing the xml form. because i have several hundreds of xml forms.
Appreciate if you give suggestion.
Thanks
RamanaHi Ramana,
The most convenient way to change the hyper links is by using the Theme Editor. Go to System Administration --> Portal Display --> Select Theme --> Component-Specific Styles --> Links --> Function/Result Link.
Hope this helps.
Kind regards,
Joost -
How to change the caret/selection color of text input controls?
Hello JavaFX Community,
i'm new to JavaFX. I'm using it since i saw the huge steps forward with version 2.0.
I have the task to migrate a software from Swing to JavaFX. As a part of our corporate design, we used a special color for the caret and text selection. I couldn't find any information about changing the caret color in JavaFX 2, so i'd like to ask you and i'd be very thankful for an advise.
There is a cross-post at StackOverflow:
http://stackoverflow.com/questions/10057989/how-to-change-the-caret-color-in-javafx-2-0
Thanks and best regards.This might be possible, but it is not trivial. You cannot do it with a standard API at this time, you will have to look into creating a skin that allows for these properties to be controlled.
For example, the color of the caret is currently controlled in the TextFieldSkin (look for the "caretPath" property). Just forcing a color change in a subclassed skin is not so hard. Something like this:
public class MyTextFieldSkin extends TextFieldSkin {
public MyTextFieldSkin() {
this.caretPath.fillProperty().unbind();
this.caretPath.fillProperty().set(Color.RED);
}However, it gets trickier if this color must be dynamic and if you want other things to be changed as well. It is a place to start though.
Many of the skins methods and properties are 'protected' though, so atleast in Skin subclasses you have a lot of options to introduce new features and behaviour. -
How to change the Find highlight color
I am trying to find out if there is a way to change the Find Highlight color in office 2013.
Every time I search for a word or anything it uses a light yallow to highlight that line or word, and I woudl like to replace the yellow with like a teal or a green or some other color that I'm not using already in my Word document. This way I can find out
were it is telling me It is because I have a lot of stuff already highlighted yallow, and when I click find and search for something in the Navigation window and it finds it. It also puts it as a lighter yellow and it confuses me.Hi,
As far as I know, we can't change the highlight color when using Find in Word. The highlight color is fixed.
As a workaround, you can try to use Advanced Find instead which will show the search result with a different color.
Best Regards,
Steve Fan
TechNet Community Support -
[i]How to change the[/i] background color in a webdynpro?
Does somebody know how I can simpley change the background color in a webdynpro?
You need to use external CSS..via the sap-ep-themeroot or sap-cssurl.
For downloading and changing CSS. pls refer to
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8
Note: as stated in the documentation for a external CSS, that is just placing it in /SAP/PUBLIC Folder, <b>did not work</b> for me....
Do following it works..
Create a BSP application, ZCUSTOMTHEME. GO to MIME Repository and create a folder zmytheme under ZCUSTOMTHEME
open SE38 and execute BSP_UPDATE_MIMEREPOS and upload ur custom theme under this folder.. /sap/bc/bsp/sap/ZCUSTOMTHEME/zmytheme
While calling ur WD application....append following at end of URL
sap-ep-themeroot = /sap/bc/bsp/ZCUSTOMTHEME/zmytheme' -
How to change the disabled value color of messageTextInput
Hi,
I have a requirement to change the value color of messageTextInput. And I had apply custom look and feel. For normal messageTextInput, I can change its color, but for disabled messageTextInput, the value is always gray out. I can't change its color.
Could anyone tell me how to change it?
Thanks,
EileenEileen,
This is the code u need to use in process request:
OAMessageTextInputBean x = (OAMessageTextInputBean)webBean.findChildRecursive("<item id of message text input which have to disable>");
//If item id of the next message text input is XXX, on which
//u wanna set focus when user clicks on ur disables message text input
x.setOnFocus("javascript:XXX.focus();");
Now u can set CSS class.The above code will automatically set focus on field with item id XXX, when user clicks on it, thus not allowing user to enter anything in that message text input.
I hope this helps.
--Mukul -
How to change the selected row color in an alv grid display ?
Hello ,
I WANT TO CHANGE THE COLOR OF THE SELECTED RECORDS IN AN ALV GRID DISPLAY ?
ITS URGENT..
WILL BE REWARDED...hai Ssnagh Samala
EXicut This report >
Hope It Will Meet U r Requirement.
If Found Helpfull Reward.
REPORT zcuitest_alv_07.
Use of colours in ALV grid (cell, line and column) *
Table
TABLES : mara.
Type
TYPES : BEGIN OF ty_mara,
matnr LIKE mara-matnr,
matkl LIKE mara-matkl,
counter(4) TYPE n,
free_text(15) TYPE c,
color_line(4) TYPE c, " Line color
color_cell TYPE lvc_t_scol, " Cell color
END OF ty_mara.
Structures
DATA : wa_mara TYPE ty_mara,
wa_fieldcat TYPE lvc_s_fcat,
is_layout TYPE lvc_s_layo,
wa_color TYPE lvc_s_scol.
Internal table
DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
it_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,
it_color TYPE TABLE OF lvc_s_scol.
Variables
DATA : okcode LIKE sy-ucomm,
w_alv_grid TYPE REF TO cl_gui_alv_grid,
w_docking_container TYPE REF TO cl_gui_docking_container.
PARAMETERS : p_column AS CHECKBOX,
p_line AS CHECKBOX,
p_cell AS CHECKBOX.
START-OF-SELECTION.
PERFORM get_data.
END-OF-SELECTION.
PERFORM fill_catalog.
PERFORM fill_layout.
CALL SCREEN 2000.
*& Module status_2000 OUTPUT
text
MODULE status_2000 OUTPUT.
SET PF-STATUS '2000'.
ENDMODULE. " status_2000 OUTPUT
*& Module user_command_2000 INPUT
text
MODULE user_command_2000 INPUT.
DATA : w_okcode LIKE sy-ucomm.
MOVE okcode TO w_okcode.
CLEAR okcode.
CASE w_okcode.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " user_command_2000 INPUT
*& Module alv_grid OUTPUT
text
MODULE alv_grid OUTPUT.
IF w_docking_container IS INITIAL.
PERFORM create_objects.
PERFORM display_alv_grid.
ENDIF.
ENDMODULE. " alv_grid OUTPUT
*& Form create_objects
text
--> p1 text
<-- p2 text
FORM create_objects.
Ratio must be included in http://5..95
CREATE OBJECT w_docking_container
EXPORTING
ratio = 95
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6.
CREATE OBJECT w_alv_grid
EXPORTING
i_parent = w_docking_container.
ENDFORM. " create_objects
*& Form display_alv_grid
text
--> p1 text
<-- p2 text
FORM display_alv_grid.
CALL METHOD w_alv_grid->set_table_for_first_display
EXPORTING
is_layout = is_layout
CHANGING
it_outtab = it_mara
it_fieldcatalog = it_fieldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
ENDFORM. " display_alv_grid
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data.
SELECT * FROM mara UP TO 5 ROWS.
CLEAR : wa_mara-color_line, wa_mara-color_cell.
MOVE-CORRESPONDING mara TO wa_mara.
ADD 1 TO wa_mara-counter.
MOVE 'Blabla' TO wa_mara-free_text.
IF wa_mara-counter = '0002'
AND p_line = 'X'.
Color line
MOVE 'C410' TO wa_mara-color_line.
ELSEIF wa_mara-counter = '0004'
AND p_cell = 'X'.
Color cell
MOVE 'FREE_TEXT' TO wa_color-fname.
MOVE '5' TO wa_color-color-col.
MOVE '1' TO wa_color-color-int.
MOVE '1' TO wa_color-color-inv.
APPEND wa_color TO it_color.
wa_mara-color_cell] = it_color[.
ENDIF.
APPEND wa_mara TO it_mara.
ENDSELECT.
ENDFORM. " get_data
*& Form fill_catalog
text
--> p1 text
<-- p2 text
FORM fill_catalog.
Colour code : *
Colour is a 4-char field where : *
- 1st char = C (color property) *
- 2nd char = color code (from 0 to 7) *
0 = background color *
1 = blue *
2 = gray *
3 = yellow *
4 = blue/gray *
5 = green *
6 = red *
7 = orange *
- 3rd char = intensified (0=off, 1=on) *
- 4th char = inverse display (0=off, 1=on) *
Colour overwriting priority : *
1. Line *
2. Cell *
3. Column *
DATA : w_position TYPE i VALUE '1'.
CLEAR wa_fieldcat.
MOVE w_position TO wa_fieldcat-col_pos.
MOVE 'MATNR' TO wa_fieldcat-fieldname.
MOVE 'MARA' TO wa_fieldcat-ref_table.
MOVE 'MATNR' TO wa_fieldcat-ref_field.
APPEND wa_fieldcat TO it_fieldcat.
ADD 1 TO w_position.
CLEAR wa_fieldcat.
MOVE w_position TO wa_fieldcat-col_pos.
MOVE 'MATKL' TO wa_fieldcat-fieldname.
MOVE 'MARA' TO wa_fieldcat-ref_table.
MOVE 'MATKL' TO wa_fieldcat-ref_field.
Color column
IF p_column = 'X'.
MOVE 'C610' TO wa_fieldcat-emphasize.
ENDIF.
APPEND wa_fieldcat TO it_fieldcat.
ADD 1 TO w_position.
CLEAR wa_fieldcat.
MOVE w_position TO wa_fieldcat-col_pos.
MOVE 'COUNTER' TO wa_fieldcat-fieldname.
MOVE 'N' TO wa_fieldcat-inttype.
MOVE '4' TO wa_fieldcat-intlen.
MOVE 'Counter' TO wa_fieldcat-coltext.
APPEND wa_fieldcat TO it_fieldcat.
ADD 1 TO w_position.
CLEAR wa_fieldcat.
MOVE w_position TO wa_fieldcat-col_pos.
MOVE 'FREE_TEXT' TO wa_fieldcat-fieldname.
MOVE 'C' TO wa_fieldcat-inttype.
MOVE '20' TO wa_fieldcat-intlen.
MOVE 'Text' TO wa_fieldcat-coltext.
APPEND wa_fieldcat TO it_fieldcat.
ENDFORM. " fill_catalog
*& Form fill_layout
text
--> p1 text
<-- p2 text
FORM fill_layout.
Field that identify color line in internal table
MOVE 'COLOR_LINE' TO is_layout-info_fname.
Field that identify cell color in inetrnal table
MOVE 'COLOR_CELL' TO is_layout-ctab_fname.
ENDFORM. " fill_layout
Regards.
Eshwar. -
How to chang the row's color in the Jtable?
I have a table and many rows,I want chang the rows color,like row one's color is red,row tow's color is write,row three's color is green.How can do it? And if i want chang row 3,coloum 2's color.How can do it?
thanks.hi,
I use jdbtable to view data,I want them to chang row color when some cells equal the value.But interface getTableCellRendererComponent not run.I don't know why!
jdbtable is extend jtable ,it made in borland jbuilder.
//1 class
package errorreport;
import java.awt.Component;
import java.awt.Color;
import javax.swing.table.DefaultTableCellRenderer;
import com.borland.dbswing.*;
public class rowcolor extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent
(JdbTable table, Object value, boolean isSelected,
boolean hasFocus, int row, int column)
Component cell = super.getTableCellRendererComponent
(table, value, isSelected, hasFocus, row, column);
int iColcount = 0;
iColcount = table.getColumnCount();
if( value instanceof String )
String strAlmlev = (String)value;
if(strAlmlev.trim().equals("C1"))
cell.setBackground( Color.red );
// You can also customize the Font and Foreground this way
// cell.setForeground();
// cell.setFont();
else
if(strAlmlev.trim().equals("C2"))
cell.setBackground( Color.orange );
else
if(strAlmlev.trim().equals("C3"))
cell.setBackground( Color.yellow );
else
if(strAlmlev.trim().equals("ERR"))
cell.setBackground( Color.green );
return cell;
//2 class
JdbTable jdbTable2 = new JdbTable();
TableCellRenderer renderer = new rowcolor();
try
jdbTable2.setDefaultRenderer( Class.forName( "java.lang.String" ), renderer );
catch( ClassNotFoundException ex )
System.exit( 0 );
thanks -
Editing Chart legends: How to change the line structure within the legend?
Hi,
I have one problem: I have several charts in Numbers and since I need to print them in black/white, colors cannot be used to differentiate between the lines. So if I have a dotted line and a solid line, the legend only shows me solid lines as line symbols, so the line structure is not reflected within the legend. Can I change that?_This question was already asked and responded._
Put a text box with the true kind of line above the one displayed automatically.
Yvan KOENIG (VALLAURIS, France) samedi 1 mai 2010 16:52:44 -
How to change the links text color?
could any one tell me if it's possible to change the link text's color? instead we stuck with the defaut theme asigned color.
Ok Looking to do this manually I don't see all that you suggest I need to see.
.Body {
color: #181c01;
font-family: 'Palatino-Roman', 'Palatino', 'serif';
font-size: 14px;
font-style: normal;
font-variant: normal;
font-weight: normal;
letter-spacing: 0;
line-height: 19px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
opacity: 1.00;
padding-bottom: 0px;
padding-top: 0px;
text-align: left;
text-decoration: none;
text-indent: 0px;
text-transform: none;
.Header {
color: #6a6f75;
font-family: 'Palatino-Bold', 'Palatino', 'serif';
font-size: 29px;
font-style: normal;
font-variant: normal;
font-weight: bold;
letter-spacing: 0.16em;
line-height: 38px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
opacity: 1.00;
padding-bottom: 0px;
padding-top: 0px;
text-align: center;
text-decoration: none; NOTE THIS
text-indent: 0px;
text-transform: uppercase;
.Normal {
padding: 4px;
.graphicgeneric_body_textbox_styledefault {
background: transparent;
float: none;
margin: 0px;
opacity: 1.00;
.graphicgeneric_header_textbox_styledefault {
background: transparent;
float: none;
margin: 0px;
opacity: 1.00;
.graphictextbox_layout_styledefault {
padding: 4px;
.graphictextbox_styledefault {
background: transparent;
float: none;
margin: 0px;
opacity: 1.00;
div {
overflow: visible;
img {
border: none;
.InlineBlock {display: inline; }
.InlineBlock {display: inline-block; }
.tinyText {
font-size: 1px;
This is the welcome page css file, not the index file.
On my page I have white background, black text, when the arrow points to the link text it turns light brown, I am not so concerned about anything except the link text standing out in a differnt color, initially.
I am leaning quite abit.
So what do I do now
Thanks
Moncrief -
Hello All,
I was struggling with the Video Background Color as I was setting up my DVD. I'm new to DVD Studio Pro. I couldn't get the color to change from grey to the desired black. I was moments from asking for help, but thought to try just a bit harder. The answer lies under Preferences, Menu, Video Background Color. Just thought I'd share for future search strings by others.
Ahh, onward!
DGThe id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
Example:
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ChoiceBoxTest extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("Example 2");
final ChoiceBox<String> choiceBox = new ChoiceBox<>();
List<String> tempResult = new ArrayList<String>();
for (int i = 0; i < 10; i++) {
tempResult.add("Item " + i);
choiceBox.getItems().setAll(tempResult);
VBox root = new VBox();
root.getChildren().add(choiceBox);
final Scene scene = new Scene(root, 300, 250);
scene.getStylesheets().add("choiceBox.css");
primaryStage.setScene(scene);
primaryStage.show();
public static void main(String[] args) {
launch(args);
choiceBox.css:
@CHARSET "UTF-8";
#choice-box-menu-item:focused {
-fx-background-color: yellow ;
#choice-box-menu-item .label {
-fx-text-fill: black ;
Message was edited by: James_D -
How to change the JFileChooser's color on the title?
I have a open JFeileChooser and I don't know why but the color changed to green in the open dialog window.
you can have a limited color range like this
import javax.swing.*;
import java.awt.*;
class Testing
public void buildGUI()
JDialog.setDefaultLookAndFeelDecorated(true);
JFrame f = new JFrame();
f.setLocationRelativeTo(null);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JFileChooser fc = new MyFileChooser(".");
f.pack();
f.setVisible(true);
fc.showOpenDialog(f);
class MyFileChooser extends JFileChooser
public MyFileChooser(String currentDirectoryPath)
super(currentDirectoryPath);
protected JDialog createDialog(Component parent) throws HeadlessException
JDialog myDialog = super.createDialog(parent);
myDialog.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
return myDialog;
public static void main(String[] args)
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new Testing().buildGUI();
}other options to try
NONE
FRAME
PLAIN_DIALOG
INFORMATION_DIALOG
ERROR_DIALOG
COLOR_CHOOSER_DIALOG
FILE_CHOOSER_DIALOG
QUESTION_DIALOG
WARNING_DIALOG
Maybe you are looking for
-
FLV inserted to page no probs but plays too fast!
I've used the Insert Flash Video feature on dreamweaver 8 to add a video clip to one of my family web pages www.nzgreens.me.uk/house It has up loaded and plays, but is far too fast. We've moved to New Zealand and it's for our family and friends in th
-
HT204053 Multiple ID's - change into one?
I have a MobileMe/iCloud ID and also a separate Apple ID. How can I change them so that I only have one ID for both iCloud and Apple ID - for accessing iTune and ourchasing Apps?
-
Plan cost in Co03 - Cost Itemization
Hi all, I enter Co03 and Go to Cost - Cost Itemization - Plan Cost. This Plan Cost is constance after i TECO this order. So I want to know Where does SAP store this Constance Plan Cost (PLAN COST after Teco) ? Best Regard,
-
I bought att-locked but contract-free iPhone 4 from the Apple Store in the mall
Over 9 months ago i bought att-locked but contract-free iPhone 4 from the Apple Store in the mall. Now i live in Costa Rica so my question is can it be unlocked?
-
What's the iTouch Equivalent of Disk Mode and how can I Obtain a copy?
Apparently iPhones and iTouches have no Disk Mode. However, I am sure that there must be some way to get an iPhone equivalent. Does anyone have any idea what that might be?