Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7923719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:24:33+00:00 2026-06-03T17:24:33+00:00

I have a label with style class test in my javafx application. I wanted

  • 0

I have a label with style class “test” in my javafx application.
I wanted to add white border around this label, so in the css file I tried:

-fx-border-width: 2;
-fx-border-color: white;

but that didnt worked so then i tried to add:

-fx-border-style: solid;

but that didnt worked either, following javafx css reference I didn’t find anything useful.
what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:24:35+00:00Added an answer on June 3, 2026 at 5:24 pm

    Can you try:

    System.out.println(label);
    

    it should print something like

    Label@1858c80c[styleClass=label]
    

    Is your css class printing too after styleClass=label … ?
    Or can you remove css class of the label and try setting the label style in code directly by:

    label.setStyle("-fx-border-color: white;");
    

    if you can see the changes then maybe you are unintentionally overriding css class definiton in css file. Check it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a style applied to my whole application: AndroidManifest.xml: <application android:theme=@style/ApplicationStyle android:icon=@drawable/icon android:label=@string/app_name>
I have a form like this: <form class=category_form id=category_form method=post> <p class=ui-widget> <label for=birds>Birds:
I have the following: <div style=float: left; padding-right: 1%;> <label class=editor-label for=BrowserTitle>Browser Title</label> <input
Lets say I have CSS like this: div.form label input { /* some css
I have a label on my asp.net page, it looks like this: more info
I have a label component in a mxml file like below <mx:Label x=700 y=409
I was wondering, i have this HTML : <li> <span class=jqTransformRadioWrapper> <a rel=choices[choices] class=jqTransformRadio
I have this little test-case which is supposed to show two widgets, with one
I have a task to add a composite widget into the main ui.xml file,
I have the following: var test = dojo.byId(clientDivision); test.style.display = 'block'; in a function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.