
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Maruthi Krishna has Published 870 Articles

Maruthi Krishna
228 Views
You can add an effect to any node object in JavaFX using the setEffect() method. This method accepts an object of the Effect class and adds it to the current node.javafx.scene.effect.InnerShadow class represents the inner shadow effect. This effect renders the shadow of the given content inside its edges, with ... Read More

Maruthi Krishna
1K+ Views
You can add an effect to any node object in JavaFX using the setEffect() method. This method accepts an object of the Effect class and adds it to the current node.javafx.scene.effect.DropShadow class represents a drop shadow effect. This effect renders the shadow of the given content behind it, with the ... Read More

Maruthi Krishna
377 Views
You can have multiple text nodes in a single flow using the TextFlow layout. To have different fonts to single text flow.Create multiple text nodes.Set desired fonts to them.Add all the created nodes to the text flow.Exampleimport java.io.FileNotFoundException; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.paint.Color; import javafx.stage.Stage; import javafx.scene.text.Font; ... Read More

Maruthi Krishna
272 Views
The javafx.scene.text.Text class has a property named fontSmoothingType, which specifies the smoothing type of the text. You can set the value to this property using the set setFontSmoothingType() method accepts two parameters −FontSmoothingType.GRAY − This specifies the default grayscale smoothing.FontSmoothingType.LCD − This specifies the LCD smoothing. This uses the characteristics ... Read More

Maruthi Krishna
8K+ Views
You can set the desired font to the text node in JavaFX using the setFont() method. This method accepts an object of the class javafx.scene.text.Font.The Font class represents the fonts in JavaFX, this class provides several variants of a method named font().as shown below −font(double size) font(String family) font(String family, ... Read More

Maruthi Krishna
423 Views
JavaFX provides a class known as Slider, this represents a slider component that displays a continuous range of values. This contains a track on which the numerical values are displayed. Along the track, there is a thumb pointing to the numbers. You can provide the maximum, minimum and initial values ... Read More

Maruthi Krishna
1K+ Views
In general, a slider is a component that displays a continuous range of values. This contains a track on which the numerical values are displayed. Along the track, there is a thumb pointing to the numbers. You can provide the maximum, minimum and initial values of the slider.The slider JavaFX ... Read More

Maruthi Krishna
367 Views
In addition to the local coordinate system for positioning its nodes, JavaFX provides an additional coordinate system for the text node.The textOrigin property specifies the origin of the coordinates of the text node in the parent coordinate system. You can set values to this property using the setTextOrigin() method. This ... Read More

Maruthi Krishna
4K+ Views
In JavaFX, the text node is represented by the Javafx.scene.text.Text class. To insert/display text in JavaFx window you need to −Instantiate the Text class.Set the basic properties like position and text string, using the setter methods or, bypassing them as arguments to the constructor.Add the created node to the Group ... Read More

Maruthi Krishna
2K+ Views
The line spacing property of the javafx.scene.text.The text class specifies the line spacing between the lines of the text (node) vertically.You can set the value to this property using the setLineSpacing() method. This method accepts a boolean value as a parameter and sets the specified space between the lines (vertically).Exampleimport ... Read More