Questions tagged [javafx-css]

CSS can be used to style a UI created with JavaFX. It is based on CSS version 2.1. This tag should be used for questions about styling JavaFX Nodes using CSS.

Useful resources

141 questions
0
votes
2 answers

e(fx)clipse css auto completion isn't working and unknown properties

I search the web and didn't find any sulution to help me. I did tried to check all what that java related in the 'Content Assistent'. I did tried to add css to the 'File Association', and I do have the JavaFX SDK Furthermore, it's not detect any css…
user5327287
  • 410
  • 4
  • 18
0
votes
1 answer

Javafx CSS: paint text with css

Is there a way to code in css like this image? transparent fill, blue stroke border, text in center. Sorry for my english.
0
votes
1 answer

Adding a CSS to multiple scenes in the application

I made a CSS .button{ -fx-pref-height: 28px; -fx-pref-width: 100px; } and I want to add this particular CSS to all the scenes in my application. How am I suppose to so? Glad for any help. To be accurate, I have a radio button in one scene…
Ziva
  • 21
  • 5
0
votes
0 answers

AnchorPane on mouse click padding

Is there any way to make AnchorPane containing button and few Text to do padding while clicked on it like a button? I`m using JavaFX and CSS and this is my code. Everything works but not padding FXML
Beforeu
  • 83
  • 2
  • 11
0
votes
2 answers

Java Fx - Zoom in functionality to a Real time Chart

I want to implement zoom in functionality to a real time line chart(chart will move every 50ms) with mouse drag or with zoom button. i want to zoom in the particular area..but whats the problem i faced is every time the (x,y) co-ordinate values are…
0
votes
0 answers

How can I give two different styles for the same series of a line chart?

I would like to use JavaFX to assemble a line chart such that when there is no data to plot in a series, the space is empty. Something like that: Chart Notice that I would like to keep myself in the same series, just by changing your style in one…
0
votes
1 answer

JavaFX CSS : Apply hover effect to Child nodes when Parent node is hovered on

Is it possible to apply the the hover effects a node's children, when parent node is hovered on, without having to hove over each child itself for its hover effect to take place? For example, suppose i have the following node: HBox -->…
DarkMental
  • 482
  • 7
  • 26
0
votes
1 answer

Change toolbar background color in javafx

I have created my application toolbar with application.e4xmi. And thereafter I tweaked my .css as below /* JavaFX CSS - Main CSS-File */ .root { -fx-base: rgb(222, 234, 247); -fx-background: rgb(222, 234, 247); } .tab…
aakib mogul
  • 53
  • 1
  • 9
0
votes
1 answer

How do I get JavaFX-CSS to work?

So, I am having trouble getting CSS-styling to work in my JavaFX-project. I have added an external stylesheet with: scene.getStylesheets().add("Style.css"); ... which links to the file Style.css in the same folder: .root{ -fx-background-color:…
0
votes
0 answers

JavaFX Shape CSS Properties

I´d like to know how to implement the properties of Shape Class as described in Reference Guide? Example: I have a custom checkbox css: .check-box-money .box { -fx-border-color: #d8d8d8; -fx-border-width: 4; -fx-background-radius: 0; …
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
0
votes
2 answers

Javafx Combobox CSS Padding

I´d like to reduce the padding to show my full text. I have tried it, but doenst work. .combo-box { -fx-background-color: -color-gray; -fx-text-fill: -color-primary; -fx-cell-size: 2.5em; -fx-font-family: 'Myriad Pro Light'; …
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
0
votes
1 answer

JavaFX Parallelogram CSS

How to create a parallelogram button with JavaFX CSS? Ex: Parallelogram
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
0
votes
1 answer

Removing tab selection border

Anyone know how to remove tab selection border? I mean this one: It's not so clear to see but if you focus you can see a gray (should be blue I think) border around presentation. Anyone knows how to remove it?
loryruta
  • 111
  • 3
  • 9
0
votes
1 answer

Jafa FX CSS Duplicates

I am new to JavaFX and CSS Styling and was just after some clarification on the optimal way to do the following. Essentially, I have two buttons which I have implemented Hover and Focus so the Border Color changes on both Hover (mouse) and Focused…
0
votes
1 answer

JavaFX add Image to title of TitledPane css only

I need to add an image to title. I know how to do that in java code. But I want to do that via css only. I tried: .titled-pane > .title{ -fx-graphic: url("imgs/general/logo.png"); } and .titled-pane { -fx-graphic:…
rvit34
  • 1,967
  • 3
  • 17
  • 33