2

Can you point me out good documentation/practices for developing custom controls? I checked the official doc, but it's not enough for me.

I would like to display a Label or a TextField and wrap it with a Path object to create a border.

Please find here a sample of what I want to create : enter image description here

From top to bottom, left to right :

  • Label, Textfield,
  • Label, Passwordfield (textfield with blur effect)
  • Label selectable (and clickable), and CheckBox with Label at the right.

(when textfield, passwordfield or checkbox are selected, the color is CYAN too)

I achieved to create that controls in a custom class extending Region, displaying a Text and Paths/Lines. And subclasses specialize by adding textfield/checkbox items in it.

PacDroid
  • 541
  • 1
  • 7
  • 22
  • http://stackoverflow.com/questions/19523341/adding-a-tilepane-instantiated-in-java-files-to-fxml/19705340#19705340 scene bilder can help you – Anshul Parashar Nov 20 '13 at 04:07
  • Ok, but I found the Control/Skin/Behaviour pattern for designing a custom control, anyone knows a good tutorial about it? – PacDroid Nov 20 '13 at 08:07
  • scene builder are design for make reliable and effective way to design fxml...its nice approch – Anshul Parashar Nov 20 '13 at 08:10
  • Ok, but I don't want particularly use fxml in my application. I want to design a new control with code. – PacDroid Nov 20 '13 at 08:16
  • http://www.youtube.com/watch?v=ts_b2mBix3U This presentation is quite good :) – PacDroid Nov 20 '13 at 08:18
  • @PacDroid: Can you provide a sketch of how your custom control should look like? Adding custom borders can be achieved with [css styling](http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html), too. – Jens Piegsa Nov 20 '13 at 17:15
  • I've added it, I don't know if it's possible to do in CSS, but it would be great. – PacDroid Nov 21 '13 at 08:58

0 Answers0