How can the opacity for a TitledPane header label be set?

A TitledPane is like a compound component that consists of a collapsible title control and a content component. Is it possible to set the background opacity of the title control and to set the background opacity of the content area itself? What I'm trying to achieve is the ability to make the background of both pars of the component transparent while keeping the foreground (text and content) completely opaque.
Any suggestions?
Cheers,
Jeff

Use css?
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.TitledPane;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
import queryfx.Dump;
public class TitledPaneDump extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(Stage stage) throws Exception {
    final TitledPane titledPane = new TitledPane();
    titledPane.setText("Hide and Show");
    titledPane.setContent(new Circle(100, 100, 75, Color.GOLD));
    StackPane stack = new StackPane();
    ImageView hiddenSmurf = new ImageView(new Image("http://ewpopwatch.files.wordpress.com/2005/06/84822__smurfette_l.jpg"));
    stack.getChildren().addAll(hiddenSmurf, titledPane);
    final Scene scene = new Scene(stack, 200, 200);
    StackPane.setAlignment(titledPane, Pos.TOP_CENTER);
    stage.setScene(scene);
    stage.show();
    Node title = titledPane.lookup(".title");
    title.setStyle("-fx-background-color: rgb(0, 100, 0, 0.5)");
    Node content = titledPane.lookup(".content");
    content.setStyle("-fx-background-color: rgb(0, 100, 100, 0.5)");
}

Similar Messages

  • How can i order a new printer head for my photoshop 7250e

    How can i order a new printer head for my photoshop 7250e  Is there a number i can ring to speak to someone or email address i can use or a web page where i can order one
    or a list of agents i can use to get it from
    Finding simple information seems impossible, no where does it mention spares or replacements 
    I have tried a lot of fault finding am convinced this is the problem  

    Hello NigelH1, 
    The Print Head for the Photosmart 7250  is not available outside HP.
    Please call HP Tech Support for further assistance.
    If you are in US , the toll free # is 1-800-474-6836 .
    If you are not in US , then log on to www.hp.com , at bottom-left corner there is a world map icon, click on it and then select the region you belong to, which would then provide support options for you for that region.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • I bought iPad air. How can I download for free the app : iPhoto, iMovie, Pages, Numbers and Keynote?

    I bought iPad air. How can I download for free the app : iPhoto, iMovie, Pages, Numbers and Keynote?

    Before you can download free apps:
    1. Make sure you are using IOS 7 (ignore)
    2. Make sure your iPad is registered in My Support Profile.
    https://supportprofile.apple.com/
    3. Try downloading again; it should be free.
    If you need serial number, it's here:
    Settings>General>About

  • How can I check for the existence of an XML file in Illustrator Javascript??

    I'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?

    Your first line just sets a variable to a string value… getFiles() is a method of Folder… so
    var InputXMLDir = Folder( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/" );
    Not a PC user so I can't remember if the colon is OK…? As you appear to know the file name why bother with a folder get files anyhow you could just check if the file exists then do some thing…
    alert( File( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/brackets_men_web.xml" ).exists );

  • HT4009 I purchased hipstamatic the other day due to an ad I read.  When I tried to use it, it didn't meet my expectations. I'm not going to use it at all. How can I apply for a refund please?  Thank you!

    I purchased hipstamatic app the other day. When I tried to use it, it didn't meet the expected features it advertised. How can I ask for a refund?

    If it's not workins as described in the store then you can try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, 24 to 48 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • How can the number of used computers used for itunes be updated? I had to reinstall itunes on a new hard drive

    How can the number of computers used for an iTunes account be updated? I had to reinstall itunes on a new hard  drive it and counted as an additional computer, against my 5 total computers.

    wait until you reach the limit of five authorized machines. then, once a year, you will be able to deauthorize all machines, following which you can reauthorize those computers you currently use/have access to.
    click here for more information.

  • How can I test for the bas unit enterd in a control?

    How can I to create a polymorphic vi where the user can enter either volume or temperature.
    how can Labwiev test for the base unit entered
    pseudocode example:
    input X
    if X.base_unit == m^3 do ....... 
    thanks for any suggestion to resolve or avoid my problem
    Solved!
    Go to Solution.

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Thank you for approving my feed iTunes . The only problem is, there is no art work, even though artwork was submitted correct sizes and formats were used. Why is this and how can the problem be rectified?

    Thank you for approving my feed iTunes . The only problem is, there is no art work, even though artwork was submitted correct sizes and formats were used. Why is this and how can the problem be rectified?

    Thanks for getting back. Hadn't got round to re uploading the amended feed. I just did it now.
    The only thing is, Feed Validator doesn't like it because of the picture size, and a couple of other things, it reeds the following:
    Sorry
    This feed does not validate.
    line 22, column 14: width must be between 1 and 144: 1400 [help] <width>1400</width>
                  ^
    line 23, column 15: height must be between 1 and 400: 1400 [help] <height>1400</height>
                   ^
    line 25, column 21: XML parsing error: <unknown>:25:21: not well-formed (invalid token) [help]
    <itunes:image href=http://www.whiteberg.com/Wdotfontitunes2.png" />
                         ^
    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
    Your feed appears to be encoded as "utf-8", but your server is reporting "US-ASCII" [help]
    line 4, column 114: Self reference doesn't match document location [help]... dcast.xml" type="application/rss+xml" />
                                                 ^

  • Living in apartment, here it has only wireless (no wired cable in the room). I've  an airport express (new ) so how can I do for extending signal (wireless) for using in myroom

    Living in an apartment, here it has only wireless (no wired cable in the room) signal using for the internet connection. I've  an airport express (new) ,so how can I do for extending signal (wireless) for using in myroom. because the wireless signal is so weak.

    Unfortunately, you won't be able to. In order to do so, you would have to configure both the AirPort Express and the other wireless router for a WDS. Since it will unlikely that the other router is another AirPort, nor will you have the ability to administer it, you won't be able to get this accomplished.

  • How can one search for a filename anywhere on the Mac?

    How can one search for a filename anywhere or everywhere on the Mac?

    You can configure Spotlight so it will also search in system files or you can download and use EasyFind 4.9.3 that doesn't require special configuration.
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • HT201365 How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID & password it won't do anything. Says waiting for activation!! Help!

    How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID &amp; password it won't do anything. Says waiting for activation!! Help!

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

  • Can the volume for downloaded music tracks be synced and how

    can the volume for downloaded music tracks from itunes be synced and how if so

    Hard to know what the cause is  because it's like this
    I know what I did to cause this. I upgraded my one of my hard drives, renamed the drive and moved the folder. The missing pictures it can't find were added with the option in the advance menu "copy photo to library" turned off.
    and this
    What I did is added a small SSD as my primary drive. Put the OS and all the apps on it.  Moved my iPhoto and iTunes libraries to an large external.  Most of the picture it is not having a problem wth.  Only certain ones.  Don't actually think I unchecked tha prefeence, but it's acting like i have.  
    seem to be written by two different people.
    This thread
    https://discussions.apple.com/thread/3216539?tstart=30
    has details on how one user hacked the SQL database to fix the issue. Not for the faint hearted. Back up first.
    Regards
    TD

  • How can I do for ESA work with token RSA, I mean when I entry the login the authentication with RSA

    Hi there,
    How can I do for ESA work with token RSA, I mean when I entry the login, the authentication ask me the token with RSA, Is it possible???
    Regards,

    Hello Miguel,
    RSA tokens are currently not supported for login, neither to the GUI/CLI or access to the spam quarantine. There is currently a feature request"Support SecurID via RADIUS" for the WSA, if you want you can open a ticket and have either add your company to that request, or have it extended for ESA as well.
    Hope that helps,
    Andreas

  • TS1646 my apps cannot be update because i owed apple money. how can i pay for the apps because now my card declined. tq.

    my apps cannot be update because i owed apple money. how can i pay for the apps because now my card declined. tq.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • How can I arrange for the Enter key to just drop d...

    How can I arrange for the Enter key to just drop down a line instead of posting the message?

    In Skype go to Tools -> Options -> IM settings -> Show advanced options. In the section “Pressing Enter will” select the option: Insert line break.
    Note that this option is only available with Skype version newer than 6.1. The currently latest Skype version is 6.3.0.107.

Maybe you are looking for

  • HP G71-340us With Several Power Issues

    My wife's HP G71-340us developed a problem with the power "brick" that came with the computer.  The part that plugs directly into the side of the notebook cracked open, exposing the wires inside the cord.  The cord itself began to fail, only supplyin

  • CONDITION TYPES  DEFAULT IN CONDTIONS TAB IN PO

    Hi I have to insert the conditon types in conditions tab in PO. every time. I have two conditons types which are required to be inserted for every PO. Is it posible to make the condition types to appear by default every time i prepare the PO. How to

  • My trackpad will swipe left between full-screen apps, but it will not swipe right

    My Trackpad on my imac will swipe left between full-screen apps, but it will not swipe right. How do I fix this? -m

  • Linking an image file

    In DTP programs (and also MS Word) you can insert an image file as a link to the actual file in the disk, so the graphic is not embedded in the document, instead when the document is opened the file readed from the external source. This method have t

  • My gmail will not show up in Safari.

    I have Safari 5.05 and OS 10.6.7.   My iMac is Intel Core 2 duo When I sign into my gmail account, a blank screen displays in Safari. I have Firefox on my iMac.  No problem with gmail on Firefox. Other Google products don't have a problem.  e.g. My G