Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create solid separator

I have looked around quite a bit and cannot find the solution.

I am adding a separator in SceneBuilder. This is easy. Now I want this separator to be a solid line.

This I am having issues with. I have tried :

-fx-border-style: solid;
-fx-border-width: 1px;

But this doesn't seem to work or any combination of this.

like image 348
blo0p3r Avatar asked Jan 15 '13 21:01

blo0p3r


People also ask

What is a solid separator?

A solids separator is a treatment component of a manure handling system that divides an influent waste stream into low. solids liquor and high solids cake. The mass or amount of material flowing into a separator must also equal the mass leaving the separator.

What is the process solid-liquid separation?

Several methods are available to separate solids from liquids: Sedimentation (solids settle by gravity). Mechanical separation. Gravity and mechanical separation are the two most common techniques used for this purpose.

What is the purpose of centrifugal separators?

A centrifugal oil separator utilizes centrifugal force to separate solids from a liquid phase. Drawing out solid particles from the processed fluid to achieve a smoother operation of the engine/application by reducing wear on engine components.


2 Answers

i think you missed line part in below css

.separator *.line { 
-fx-border-style: solid;
-fx-border-width: 1px;

}

with boarder width 5px

enter image description here

Tip : use CSS Analayzer to know css class/selector for particular part of node, you can find css analyzer in scenebuilder 1.1 view -> Show css Analyzer or ctrl+6 shortcut in windows.

like image 97
invariant Avatar answered Sep 21 '22 02:09

invariant


Its the solution of your problem, which was my problem too:

.separator *.line {
    -fx-border-style: solid;
    -fx-border-width: 0 0 1 0; /* its make really one-pixel-border */
    -fx-border-color: red;
}
like image 39
Fattan Labs Avatar answered Sep 22 '22 02:09

Fattan Labs