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 8320407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:38:26+00:00 2026-06-08T22:38:26+00:00

I like the 3D effect of a JTextField with Borders created by BorderFactory.createLoweredBevelBorder(). Now

  • 0

I like the 3D effect of a JTextField with Borders created by BorderFactory.createLoweredBevelBorder(). Now that I’m working with JavaFX instead, the L&F of the border is controlled by CSS. And the default look is just a simple line stroke border. I figured out how to edit the CSS file to thicken the border and change its color:

.text-field { -fx-border-color: color; -fx-border-width: #; }

But if you look at a Swing-generated lowered bevel effect it is created by having different colors on 2 of the 4 sides and having the edge barrier at a 45 degree angle. So how do I accomplish that with CSS?

  • 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-08T22:38:28+00:00Added an answer on June 8, 2026 at 10:38 pm

    The JavaFX CSS Reference Guide says:

    While the JavaFX CSS parser will parse valid CSS syntax, it is not a
    fully compliant CSS parser. One should not expect the parser to handle
    syntax not specified in this document.

    border or border-top and others are ones in this unsupported category.
    To have a lowered bevel border try

    .text-field {
        -fx-border-insets: 0;
        -fx-border-width: 2px;
        -fx-border-color: black lightgray lightgray black;
    }
    

    Or try with JavaFX-style way using inner shadow

    .text-field {
        -fx-effect: innershadow(three-pass-box, gray, 12 , 0.5, 1, 1);
    }
    

    However the real style you wanted can be achieved by -fx-border-style attribute IMO. Refer to it in over mentioned guide.

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

Sidebar

Related Questions

I really like the effect that makes the image and the text slide in
How to create the page fold effect like that in Maps and iBooks apps?
I am trying to get some toon shadding like effect for primitive types, ie.
I like the effect used in many iPhone apps where a semi-transparent help screen
How to make effect like drawing diagonal line in Flash using Action Script? I
i want to make typewriter effect like: http://img139.imageshack.us/img139/9775/screenshot0002mm2.gif dim s as string = 123
I want to do a effect like the switching windows from Win 7 [Win]+[Tab]
How to make an onhover popup box effect like on facebook, i don't know
Is there any jQuery plugin for progressive light glow effect like this ?
I need to create more than one UIView with MARQUEE effect like HTML <marquee>

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.