How to change the value of a color picker?

Hi *,
I am currently working on a small project and I would like to use the colorpicker. When I initialize the colorpicker the, the widget is updated and shows the correct color, but when I try to change the value at runtime, nothing happens. Did I miss something?
Many thanks
package javafx.tests.colorpicker;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ColorPicker;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class ColorPickerChangeColor extends Application {
     public static void main(String[] args) {
          Application.launch(args);
     @Override
     public void start(Stage stage) throws Exception {
          VBox vbox = new VBox();
          vbox.setPadding(new Insets(10));
          vbox.setSpacing(10);
          Button button = new Button("Press me.");
          final ColorPicker colorpicker = new ColorPicker(Color.BLUE);
          button.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {
                    colorpicker.setValue(Color.YELLOW);
                    System.out.println("Set color of the picker to yellow.");
          vbox.getChildren().add(colorpicker);
          vbox.getChildren().add(button);
          StackPane root = new StackPane();
          root.getChildren().add(vbox);
          stage.setTitle("ColorPicker");
          Scene scene = new Scene(root, 200, 200);
          stage.setScene(scene);
          stage.show();
}Edited by: 963445 on Jan 3, 2013 12:23 PM

Yeah, it's a known bug:
http://javafx-jira.kenai.com/browse/RT-22538 "[ColorPicker] changing color using setValue() ... is not reflected by rectangle and text on control."
In fact, there are 34 known ColorPicker bugs:
http://javafx-jira.kenai.com/secure/IssueNavigator.jspa?reset=true&jqlQuery=%28summary+%7E+colorpicker+OR+description+%7E+colorpicker+OR+comment+%7E+colorpicker%29+AND+issuetype+%3D+Bug+AND+status+in+%28Open%2C+%22In+Progress%22%2C+New%29

Similar Messages

  • How to change the default hint box color?

    How to change the default hint box color on the default Metal LookAF?
    I'm trying looking for something with javax.swing.UIManager, but i just find ways to translate the UI.
    Any idea?

    [UIManager Defaults|http://www.camick.com/java/blog.html?name=uimanager-defaults] shows all the properties of the UIManager.
    Although there is no "hint box" component, so I don't know if it will help.

  • How to change the particular column background  color in jTable?

    I am woking with a project, in which I am using a jTable. Then
    How to change the particular column background color in jTable?

    Use a custom Renderer. This is the JTable tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to change the selected tabPane title color in JTabbedPane

    how to change the selected tabPane title color(or set bold) in JTabbedPane.
    Any advice will be appreciate.

    Hi,
    try
    // Set text color for the selected tab
    tab.setForegroundAt(tab.getSelectedIndex(), Color.red);Hope that helps

  • How to change the button's clicked color

    Dear all,
    How to change the button's clicked color
    I want it to be white in color as my button's background color is white
    Thanks

    How to change the button's clicked colorvia the UIManager

  • How to change the endeca studio chart color . version is 3.1

    how to change the endeca studio chart color

    See Configuring the color palette for the chart display and Enabling color pinning for the chart dimension values .

  • How to change the Value of a Varible while debugging in ECC 6.0

    Hi all,
    How can i change   and Save the Value of a varible while debugging a FM in ECC 6.0.
    I can able to change the Value of a variable by clicking the Pencil Icon (Change icon) which is there next to that value
    But i am not able to save that value
    Please give the suggestions
    Thanks in Advance
    Regards
    Ajay

    Ajay,
    I think you are changing more than one variable value at a time...this things generally happen in this case.
    Go step by step.....
    Press on the pencil button
    value filed becomes editable
    change the value
    and at once press the enter
    the ediatble field automatically becomes non editable, and hence retain the changed value.
    Pooja

  • How to change the background and font color of a particular row in table

    Hi,
       i need to change the background and font color of a particular row. I am using textview as table columns. I tried to do it using semanticColor property of textview  but the font color get changed for the whole column. But i want to change the color of a particular row only.
       If anybody knows please help me(give an example if possible).
           Thanks and regards.
            Pankaj Kumar.

    Hi Pankaj,
    In your data source context node (context node which is bound to dataSource property of Table UI elemennt) do following:
    If data source node is model node: create a value node under data source node, cardinality 1..1, selection 1..1, singleton false. In this new node add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor .
    If datasource node is value add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor.
    In calculated getter method put your color calculation depending on conditions, like:
    return <condition>
      ? WDTextViewSemanticColor.CRITICAL
      : WDTextViewSemanticColor.STANDARD;
    Bind new created attribute with property semanticColor of textview.
    Best regards, Maksim Rashchynski.

  • How to change the value of a variable in new ABAP debugger.

    Hi Guys,
                 I can't change the value of a variable in the new ABAP debugger.. when I change its revert back to old value. but this is not the case with the old version. How to do this..
    Cheers
    Senthil

    Hi,
    1. Dobule click in the variable in the variable tab.
    2. Click the Change icon in Detail.Dis.
    3. enter the new value and press enter
    Refer
    [http://www.sapdb.info/new-abap-debugger/|http://www.sapdb.info/new-abap-debugger/]
    [http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm]
    <removed_by_moderator_together_with_points>
    Regards,
    SB
    Edited by: Julius Bussche on Jun 24, 2008 8:21 AM

  • How to change the value of Valuation class.

    dear friends:
    i want to change the value of Valuation class in the material master .but system  warning info occurs .
    The valuation class cannot be changed
    Message no. M3 368
    Diagnosis
    You wanted to change the valuation class. However, this is not possible because one or more of the following already exist for the material:
    Valuated stocks in the current period or in the previous period
    Open purchase orders or delivery schedule lines
    Production orders for which a goods movement has already taken place
    System Response
    Your change is reset by the system.
    Procedure
    If valuated stocks already exist, you can change the valuation class only as follows:
    a) Post the stocks of the material to an interim account.
    b) Change the valuation class in the material master record.
    c) Post the stocks of the material back to their original account.
    If open purchase orders already exist, you can only change the valuation class if you first flag the corresponding purchase order items for deletion.
    If production orders exist for which a goods movement has already taken place, you can only change the valuation class if you first set the status of the production orders to Deleted.
    Procedure for System Administration
    In Customizing for the Material Master, you can switch the check for open purchase orders and/or for production orders to a warning. You do this in Define Attributes of System Messages by assigning the message type Warning to message MM 326 and/or MM 327 respectively. However, first ensure organizationally that further processing of the open purchase orders or production orders cannot result in inconsistencies.

    To resolve SAP error message M3 368 I would suggest that you refer to SAP note number 1967543. This note outlines the issue and a resolution to it:
    Please have a look at the description of the error M3 368. This error may occur if one or more of the following already exist for the material:
    1. Valuated stocks in the current period or in the previous period
    2. Open purchase orders or delivery schedule lines
    3. Production orders for which a goods movement has already taken place
    Resolution:
    If you have valuated stocks in the current period or in the previous period, you will get message "Stocks already exist.". You have to clear all the stocks both in current period and previous period. Please have a look at SAP Note 30656, it shows an example on how to clear the stocks in
    previous period. You can use transaction MIGO to execute this step.
    If you have open purchase orders or delivery schedule lines, you will get message "Purchase orders already exist.". You can find related purchase orders after you click 'Display Error' button. Please delete them in transaction ME22N.
    If you have production orders for which a goods movement has already taken place, you will get message "Production orders already exist.". Please archive these production orders. You need to set deletion flag for these orders firstly and go to SARA, use archiving object PP_ORDER to archive
    these orders.
    Kind regards,
    James

  • How to Change the Value Field Type of a Value Field

    Hi,
    How can I change the value field type from Currency to Quantity of a value field? I have tried to do it in KEA6. I can change the value field and its description, but not the value field type from currency to qty. If I change this config, is there any other changes that I need to make so there is no side issue of this change?

    Hi Prem,
    Once you created value field as quantity or currency, you can not change this nature of value field. Based on this, system creates lots of data and tables. For this reason system will not allow any changes in quantity or currency.
    Alternative way is to remove the old value field and  create a new value field assign to operating concern and put all your seetings.
    Please let me know if you require any clarifications.
    Thank you,
    Regards,
    Santosh
    Reward points if helpful.

  • How to change the value of Label in runtime

    Hi All,
    I want to change the value of the Label in runtime. Is it possible to change? If so then can you please let me know how to do it?
    Regards,
    Raghu

    Hi Ram,
    Check the below thread
    Dialog program - label problem
    The above thread has been updated just couple of hours ago only
    if it is Standard Screen then try using SHD0 Tcode , but this donot dynamically change the Field labels
    for more info go through Transaction Variants might be helpful,
    This demands Field Exits to be implemented
    Cheerz
    Ram

  • How to change the value of  COMPANY_NAME in "Subject:%COMPANY_NAME% Welcome to SAP Sourcing

    Hi All,
    Can some tell me How will I change the value of COMPANY_NAME which will reflect in subject of Final mail.
    For more clear picture the subjectis"
    Subject:%COMPANY_NAME% Welcome to SAP Sourcing .
    The change vlaue of COMPANY_NAME should refleat in final subject of the mail.
    Please help me in urgent.
    Thanks
    peeyush ranjan

    Hello Peeyush,
    Because I am unaware of your exact config, I'll try to provide a generic answer:
    1. Go to Setup -> Mail Configurations
    2. Identify the Mail Configuration for the Company you want to change
    3. Click on the highlighted Company link
    4. Change the highlighted Name:
    Regards,
    Bogdan

  • How to change the value from one input control to another input control?

    Hi Experts,
    I want to change the value from  one input control to another input control. For Example if i change month in first tab. it should reflect in second tab also. How should we acheive through input control or some other option.
    Here I attached screen shot.Please help me for this

    Hi,
    It is not possible to have Input controll in all tabs that will be set from another .
    But There is one workaround .
    Follow the link below .
    http://davidlai101.com/blog/2013/08/13/web-intelligence-input-control-that-affects-all-tabs/

  • How to change the value

    Respected,
              I want to change the value of a order which is predefined,how it is done reply with the procedure .

    HI
    my question is very simple if you make an order{va01} for material A it picks the value x in amount column. From where did this value comes from ,where it is stored,what is the transaction code.
    IF my assumption is correct like your asking about the value / Amount of that particular condition Type
    suppose Material is X and maintained the Condition Record (VK11) with your combination
    at the time of Sale Order if you enter the Material with Qty system will take automatically what you maintained in Condition Record
    rate as a amount whether is Price / Discount & Surcharge/ VAT
    if you want to change that value try to check the Corresponding Condition type (T-Code :V/06) select that Condition type and TICK the Amount /Percentage Field 
    At the time of SO system will pick the Pricing Procedure based on the Sales Area + Doc.pricing procedure for Sales Doc.Type + Customer pricing procedure
    if you want to know the table and field name put the Cursor on amount col mum and press F1 or otherwise check in the VBAK, VBAP
    if i am wrong clarify
    Regards,
    Prasanna
    Edited by: prasanna_sap on Sep 13, 2011 1:00 PM

Maybe you are looking for

  • Problem with Exporter for MS Access 3.2 in SQL Developer

    Hi, I have problem with exporting tables and data from MS Access to XML with Exporter for MS Access 2000. This error ocurr: 'Error #5 - XML Exporter' When I use Exporter for MS Access 2002 this error ocurr: 'Error #3478 - XML Exporter' Any leads how

  • How can I change my primary iCloud account

    Just bought a macbook air when setting it up I used the wrong apple id for my primary icloud account.  I have tried to delet it but because the find my mac is on it does not allow me to delete the accout and restart. Any ideas?? Thanks

  • Reader 11.0.2 crashes when user rt-clicks in the .pdf document

    When user right-clicks inside a fillable .pdf (i.e. as if to rt-click/copy or rt-click/paste) she gets the error "Adobe Reader has stopped working.  A problem caused the program to stop working correctly.  Windows will close the program and notify yo

  • How to access Hyper-V Client from Hyper-V Server to the new machines?

    Hi We have a small company in that we have 50 machines, i am having windows 2012 r2 server, i installed Hyper-V with that i have created virtual OS(winxp and win7) in the Hyper-V server. My question is how to access them in client Machines, Can Anybo

  • Problem with huge database

    I have a huge DB where there are upto 100000 rows I want to find the duplicate records from that table. My query is taking very long time to process. I waited for more than 50 mins for my query to process but still It didnt complete processing. When