Any default control for up-and-down dropbox?

Hi,all:
Can anyone tell me if I can use any default control for both up-and-down direction drop down box?
Thanks,

You might also consider a simple choicebox too if you don't need all the functionality of the SpinnerX.
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.scene.*;
import javafx.scene.control.ChoiceBox;
import javafx.scene.effect.ColorAdjust;
import javafx.scene.image.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class DropBoxExample extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(final Stage primaryStage) {       
    // create some choices.
    ChoiceBox choices = new ChoiceBox(FXCollections.observableArrayList(
      "64 kbps", "128 kbps", "256 kbps", "512 kbps", "1024 kbps"
    choices.getSelectionModel().select("128 kbps");
    // layout the scene.
    StackPane layout = new StackPane();
    layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10;");
    layout.getChildren().addAll(choices);
    primaryStage.setScene(new Scene(layout, 250, 100));
    primaryStage.show();
    // style the choice arrow.
    Node arrow = choices.lookup(".arrow");
    if (arrow != null && arrow instanceof Pane) {
      arrow.setStyle("-fx-shape: \"\"; -fx-background-color: transparent;");
      ImageView doubleArrow = new ImageView(new Image("http://aux4.iconpedia.net/uploads/923633044528065785.png"));
      ColorAdjust monochrome = new ColorAdjust();
      monochrome.setSaturation(-1); monochrome.setContrast(-0.3); monochrome.setBrightness(-0.3);
      doubleArrow.setEffect(monochrome);
      doubleArrow.setFitHeight(16); doubleArrow.setPreserveRatio(true);
      ((Pane) arrow).getChildren().add(doubleArrow);
}The code above replaces the default drop down arrow in the choicebox with an image of a double edge arrow pointing up and down, but, if needed, you can style the choicebox how you want using css (and the arrow via an svg shape if preferred - as is done in capian.css extractable from jfxrt.jar in the JavaFX runtime lib folder).

Similar Messages

  • Do we have any default port for XI?

    Hi All,
    Could you please tell me how to check whether XI is installed or not?
    Do we have any default port for XI?
    Regards
    Sara
    Message was edited by:
            Sara D

    Hi,
    >>>>>1. Is it necessary to keep both XI and SAP Logon in the same system?
    XI consists of two stacks - java and abap
    so to access XI you also need sapgui
    otherwise you won't be able o use XI
    >>>>2. Do we have any other alternative to find out the port?
    a) ask someone who installed this system
    b) if you know the system number of your XI
    then you can try: http://xiserver:5XX00
    where XX is the system number of XI
    Regards,
    michal

  • HT201406 IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even powe

    IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even power if off. I can't access the hardward ID which Apple support seems to require for Chat.
    It might have happened when I was accessing my camera bypassing the lock screen!
    All I know is that the thing is now useless and it looks like I will have to wait for the battery to run down to see if powering it back up afterwards will solve the problem.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • The artwork for our podcast, "Japan Baseball Weekly," recently disappeared. The RSS feed info appears to be in order, any particular reason for this and what can be done to rectify the situation?

    The artwork for our podcast, "Japan Baseball Weekly," recently disappeared. The RSS feed info appears to be in order, any particular reason for this and what can be done to rectify the situation?

    Please always post the URLs of the Store page and the feed when you have a question. For reference, your feed is at
    http://www.japanesebaseball.com/services/jbw-podcasts.jsp
    and the Store page is at
    http://itunes.apple.com/gb/podcast/japan-baseball-weekly/id443149184
    Looking at the Store page, the image appears there perfectly well. On subscribing there is no image associated with the episodes because you haven't embedded an image in the files - please see this page for clarification:
    http://homepage.mac.com/rfwilmut/notes/coverart.html

  • HT4972 I restore my Ipod touch but there is not any available upgrade for IOS and less IOS5

    I need a help: I restore my Ipod touch but there is not any available upgrade for IOS and less IOS5

    Which ipod do you have?
    ios 4.2.1 is the latest available for the 2nd gen.
    Identifying iPod models

  • Is there any backend file for maintaining and support BRTOOLS?

    Hi Gurus,
                      Is there any backend file for maintaining and support BRTOOLS.
    Thanks in Ad

    Not sure for your requirement here, but, were you looking for the following ?
    http://help.sap.com/saphelp_erp2004/helpdata/en/5d/803aba13a1fa4786e121dc1f7abfba/frameset.htm

  • Is there any default size for ArrayList

    The default capacity of Vector is 10.
    Is there any default size for ArrayList ??
    Vector v = new Vector();
    System.out.println("==> "+v.capacity()); // output is ==> 10
    java.util.List alist = new ArrayList();
    System.out.println("==> "+v.capacity()); // here the out put is ==> 0
    Regards
    Dhinesh

    No default size for arraylist.initially it's zero.
    I think u r comparing capacity with a size those two are different.
    Size- represents number of elements in the array.
    capacity- the capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size. As elements are added to an ArrayList, its capacity grows automatically.
    it depends on the ensureCapacity() method in the arraylist.

  • What is the default OS for iBook and iBook G4?

    What is the default OS for iBook and iBook G4?

    You can check the specs of ALL iBook models (G3 + G4) at everymac.com
    http://www.everymac.com/systems/apple/ibook/index-ibook.html
    If your iBook has a processor less than 867MHz it won't be able to run
    Mac OS X 10.5 Leopard, though methods exist to allow it unofficially.
    Old first model colors iBook G3 (not white dualUSB) have other limits.
    A reference app for Apple product specifications, download http://mactracker.ca
    Hopefully you can match your questions with the various databases online.
    Good luck & happy computing!

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • How to set default value for a drop down in Mobile Application Studio

    Hi,
    We have a requirement in which for a drop down - Transaction type (Activities), the value should be defaulted to 'Visit' and the Activity Category should be 'Sales Visit'. I tried debugging the code and got the piece of code where this value is referred, but i'm unable to find out the location where this value is picked from. Also while opening up the properties corresponding to this, there is a default value tab in the properties pane. I tried by giving this default value, but didn't work. When I'm trying to revert the changes i've made in the property, it is showing up an error.
    Any pointers on this would be of great help.
    Thanks in advance,
    Rasmi.

    Hi Rasmi,
    You can default the process type field of BOACTIVITY by different ways-
    1.In BOL, business object BOACTIVITY loaded event, check the parameter bIsNew and then default the value of process type if you want it only for new activities.
    Other attributes currently get defaulted in the attributechanged event of BOACTIVITY where field is processtype.So if processtype is defaulted it will try to default other attributes based on that.It will pick values from the customizing maintained in SPRO->CRM->Transactions->Basic Settings->Define Transaction Type->Customizing Header.
    2.You can also do defaulting in the UI.If you want to default one field based on a value selected for drop down, then write the code in the onselected2 event of the drop down.
    In your specific case, best way is to use option 1.
    Regards
    Vivek

  • Lenovo Miix 2 8" - Separating volume controls for headphones and speakers

    The sound options for the Miix 2 out the box combine the volume control for internal speakers and for headphone jack, i.e. there is only one volume control for both the speakers and the headphones on the mixer settings at the the volume icon at the lower right hand of the desktop.  So when headphones are plugged in, there is still only a "speakers" control shown.
    I work in an office and would like to have the speakers muted if the headphones are pulled out.
    Similar issues resolved on other devices directed to install an alternate sound driver (that offered separate controls) or pointed to some other settings in the sound driver properties menus where this could be manually done, but I'm having trouble applying any of them to this device. 

    Worked beautifully! Thank you very much!!
    nyxacith wrote:
    Tried it reverting to an older version of Skype.  Didn't work.
    But!  I believe I may have found the solution.
    Here are the steps I took to solve the issue:
    1. Right click on the audio volume control icon -> Playback devices.  The Sound window and Playback tab should be open.
    2. Set Speakers/HP as both the Default Device and the Default Communications Device.
    3. Go to Skype>Tools>Audio Settings.  Set Speakers settings to: Speakers/HP (IDT High Audio Definition CODEC).
    Hopefully this will work for anyone else who has the same or a similar problem.

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Bex Default template for Queries and Workbooks

    Dear All,
    We have a default template for all queries and workbooks.But this default template was created using a AP query and saved as a workbook.Now all the users having AR role are not able to execute queries or workbooks.Since this default template has a AP info provider associated with it.Is it possible convert this default workbook to a generic one without any security restrictions.Please provide a solution.

    In Bex analyzer, you have option to convert a template into a default template.
    Or you can create a copy of the existing template without AP infoproviders and assign it as default template.

  • Default values for files and columns when adding a discoverer porlet

    Hi, i'd like to know how to configure the default value for numbers of columns and files when i add a new discoverer porlet in a portal page.
    The actual default value is 10 files and 6 columns and i always have to increase it to at least 100x100.
    Is there any config file where i can change that?
    I've found a configuration.xml in $ORACLE_HOME/discoverer/config/configuration.xml
    with a section
    <!-- Discoverer Servlet configuration. Defines behaviour of both
    discoverer/plus and discoverer/viewer servlets -->
    but couldnt find a parameter for those items.
    Thanks in advance.
    Daniel Perez

    I think triggers are the best device.
    Scott

  • Can u tell me any predefined BAPI for change and creation of Material

    Hi,
        Can anybody tell me  predefined BAPI for change and creation of Materialmasterand Pricing?
    Thanks & regards,
    Gopianne.

    you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
    When changing material master data, you need enter only the material
    number.
    In the header data, you must select at least one view for which data is
    to be created. Depending on the view selected, you must maintain other
    required parameters. If you do not enter values for all of the required
    parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first
    be supplied with data by the calling program. An indicator must also be
    set for each of these fields so that the data is written to the database
    by the method. This requires the calling program to supply the
    corresponding field with the indicator in a checkbox table (for example,
    CLIENTDATAX). Checkbox tables exist for tables that do not contain any
    language-dependent texts (MAKT, MLTX), International Article Numbers
    (MEAN), or tax classifications (MLAN). Several data records for a
    material can be created in these tables.
    regards
    vivek
    reward points if it helps

Maybe you are looking for

  • SAP Legacy data Migration Starategy/Process

    Hi Friends I would request you, if anybody let me knwo the process of legacy data migration into sap. What are steps I have to follow while doing legacy data migration. My questions are: 1) How to upload GL balances from legacy to SAP 2) How to uploa

  • Taglib element not allowed in web.xml conforming to web-app_2_4.xsd ?

    Hello, I want to configure taglibs in my web.xml file. The beginning of the file looks like this: <web-app xmlns="http://java.sun.com/xml/ns/j2ee"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xsi:schemaLocation="http://java.sun.c

  • Compiler strange behavior

    Hi friends, I dont know whether this is the right forum page to post this topic. I've observed a strange behavior of the java compiler may be it is programmed for so. As we all know that java.lang.System.arraycopy(Object,int,Object,int,int) method ca

  • Can't sort song titles by clicking on title field column in MediaSource or Nomad explo

    I am currently using Creative MediaSource application ver 2.02.06 for my Nomad Jukebox Zen Extra model DAP-HD00, 40 Gig. I currently upgraded to latest Nomad Explorer version 3.0.0 from prior version 3.00.8 and upgraded my driver from Ver .23.0 to Ve

  • Software to burn a DVD video

    I have movies on my computer : file.mp4, format MPEG4 (copies of my old video tapes) Which software do I need, to burn these movies on DVDs to read them on a movie DVD reader connected to my TV ? A. Sourit