BootstrapFX, the early days - No Fluff Just Stuff

BootstrapFX, the early days

Posted by: Andres Almiray on September 5, 2015

I clearly remember back in 2007 when Ben & Dion mentioned at DesktopMatters: "Web is becoming more desktopy, and desktop is becoming more weby". The past few years have proved them right. Webapps continue to imitate the behavior of desktop applications, while desktop tries to emulate the ease of use and better experience found in web apps.

If someone told me years ago I'll be back to "web development" but targeting the desktop instead I wouldn't had believe it, but lately I've been working a lot with JavaFX, CSS, and SASS at may day job. Yup, that's right. It's surprising how fast one can change the look of an JavaFX application by using CSS, deceptively fast ;-) You can spend more than half the time tweaking borders and colors instead of writing business logic. Still, the experience is much better than writing custom renderers and UI delegates in Swing.

With this in mind, I decided to give a try at porting Twitter's Bootstrap to JavaFX. There have been a couple of prior attempts (mixed with ScalaFX even, something that does not play well with the rest of the JavaFX ecosystem) but no concrete releases just yet. Without further ado here are some screenshots and corresponding FXML files on what can be done after a few hours of tweaking Bootstrap 3.3.5 with SASS

buttons

labels

Granted, it's not much but buttons, labels, headers and badges are already working. With a few more hours of work I'm positive I can get tables and lists ready too. I'll post the CSS after reaching that milestone.

Keep on Groovying!

Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »