JFXperience.com

My thoughts on JavaFX, Java, RIA and other stuff …
  • rss
  • Home
  • About
  • Contact
  • RadioFX
  • TelemeterFX

Manual Resizable Rectangle

Yannick | August 12, 2009

Today I finished my first custom component in JavaFX!

For a personal project I’m going to develop, I could use a rectangle that can be manually resized in the horizontal direction. To do things the right way from the start I created the ManualResizableRectangle component.

It’s a normal Rectangle with the following extra features:

  • resizable in horizontal and vertical direction
  • the resizing can be enabled or disabled in both directions separately
  • a maximum and minimum size can be specified so the user can’t make it too large or too small
  • the rectangle can be moved around if this feature is enabled
  • a stepsize can be specified to make sure the rectangle is resized in certain steps (can be useful if you want to use it in let’s say a calendar component)
  • the width of the area used to resize can be configured

You can try it out here.
The source code can be found here.

How did I create it?

Read the rest of this entry »

Comments
1 Comment »
Categories
JavaFX
Tags
JavaFX, rectangle, resizable
Comments rss Comments rss
Trackback Trackback

Navigation

  • General
  • Java
  • JavaFX

Search

Archives

  • November 2009
  • September 2009
  • August 2009

Links

  • Blogroll
    • JFXStudio
    • LearnJavaFX
    • SteveOnJava
  • JavaFX
    • JavaFX
    • jfxtras
    rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox